Questions tagged [public-key]

This tag should be used for questions regarding public keys. A public key is the public half of the public/private keypair. Anyone can use a public key check that a signature is correct, but they can't generate the signature themselves with the public key.

Filter by
Sorted by
Tagged with
1 vote
1 answer
64 views

Is the G in elliptical curve same for bitcoin and ethereum

Is the G in elliptical curve same for bitcoin and ethereum? If yes then why can't we send bitcoin and ethereum to same public address? If no then what's the reason behind implementing like that? if ...
2 votes
1 answer
487 views

Why do compressed and uncompressed public keys have to produce different addresses?

I am reading through the "Mastering Bitcoin" book. I understand that in the beginning the public key was both the x and y on the elliptic curve. Then it was optimized to only contain the x, ...
2 votes
1 answer
53 views

Fail at coding my private to public key converter (Pyhon)

Fail at coding my private to public key converter script for Bitcoin (Secp256k1) Currently going through the book "Programming Bitcoin by Jimmy Song", got stuck on page 61 (Chapter 3), but ...
1 vote
1 answer
48 views

Generate Public Keys from Extended Public Key in python

I want to get a normal Public Key from an extended Public Key in Python. Actually I want to get the same result as here in the Extended Public Key Children section. I know I need this structure: ...
0 votes
1 answer
87 views

Is there a service that shows up used addresses containing a substring?

Is there a service that searches the blockchain with a string or possibly a regex to find out a set of possible addresses, say if I only know a half of a public address?
-1 votes
1 answer
44 views

suppose if I derived a public key from another algorithm instead of elliptical curve will the node reject my tx?

Or I changed the value of G in EC (K=k*G) what will happen
4 votes
2 answers
5k views

What are the chances of getting duplicate wallet using bitcoinlib in python3?

I am using bitcoinlib in python to create bitcoin wallet as shown here. My question is that how random private keys are which are generated by bitcoinlib? For example Alice has private key '...
1 vote
2 answers
43 views

Can I verify a child public key derived from its parent public key without involving any private keys and child index?

I have a extended private key, I'm creating multiple child private key / public key pair. If want to verify that the child public is derived from the parent public key. Can I do that? Thanks in ...
2 votes
1 answer
492 views

Is a wallet simply a folder of private keys?

I try to understand how a wallet actually works. I know there are lots of resources around the internet, but I still can't find simple and concise answers for basic questions about wallets and ...
0 votes
1 answer
49 views

How the extended key in wallet is 512 bits?

For extended private key it is 512 bits but for extended public key how it is 512? It will be 264+256 right? And why in the book mastering bitcoin they said extended key is either 512 bits or 513 bits
1 vote
1 answer
48 views

Why this witness doesn't seems to contain a public key?

I am learning how transactions are coded in the blockchain, so I used a python script to compute bitcoin address from public key. This works with the public key: ...
2 votes
1 answer
48 views

How does ECDSA work when generating the public key?

I know the curve has formula y^{2}=x^{3}+ax+b. However, some websites are saying that a=0 and b=7 for secp256k1? What is secp256k1? Is it the curve that is always used or does it generate the field in ...
2 votes
2 answers
106 views

Why can't I reverse secp256k1's public key point in order to determine the private key?

I understand that the public key q is generated by the point addition of g (some secp256 k1 constant) u times such that u is a big number (private key). This process can be simplified in this diagram ...
0 votes
1 answer
43 views

How does the bitcoin network use public and private keys when one wants to transfer funds?

I am familiar with Public keys, private keys and addresses. But, I don't understand how they are used when I want to transfer funds to a different wallet. For example, what is the process that is ...
2 votes
1 answer
275 views

Y coordinate of PubKey on elliptic curve prefix

Public keys in the form of 04[x,y] can be compressed since the x axis is symmetrical. Hence we only need the x-coordinate with the 02/03 prefix which states if Y is odd or even. I don't understand the ...
1 vote
1 answer
26 views

Import Bitcoin core pubkey into Electrum for multisig setup

Background I have a service running on a server using bitcoin core that is signing transactions from a Bitcoin wallet automatically. However, if anyone were to get access to this server, they'd have ...
1 vote
1 answer
71 views

Baffled by endianness: How do I compute the HASH160 of the public key of a base58 address?

Given an address as follows: > spend_address=$(btc-cli getnewaddress '' legacy) > btc-cli getaddressinfo $spend_address spend_address info { "address": "...
2 votes
1 answer
330 views

Where can I look to see a revealed public key?

I've read that pub keys aren't exposed until they're spent from. Can someone show me an example of a transaction prior to the pub key being exposed and then after? Where do i look?
3 votes
1 answer
192 views

Key Derivation - CKDprv & CKDpub

I would like to replicate this derivation of keys. Chain m ext pub: xpub661MyMwAqRbcFtXgS5sYJABqqG9YLmC4Q1Rdap9gSE8NqtwybGhePY2gZ29ESFjqJoCu1Rupje8YtGqsefD265TMg7usUDFdp6W1EGMcet8 ext prv: ...
2 votes
1 answer
75 views

How to calculate the public key, compute point P and create signature using ECDSA?

I'm quite new to the intricacies of bitcoin cryptography and ECDSA and elliptic curve cryptography has me quite stymied. I am faced with a curve with the equation: y^2 = x^3 + 7 of order N=39 with ...
0 votes
1 answer
2k views

How to generate Hash160 from a private key with the Bitcoin module

I want to fix the script code. The script generates from a random private key Bitcoin Address by function (pubtoaddr) and works on the Bitcoin module: https://github.com/primal100/pybitcointools/blob/...
2 votes
1 answer
2k views

Does signing a message weaken the address' security?

Will signing a message (without doing any $ transaction) reveal the private key to the blockchain just the same/similar way the private key is revealed to the blockchain when you do a $ transaction? ...
2 votes
2 answers
236 views

Can one trace a criminal with his Pubkey?

Say FBI arrested a guy who bought some drugs using bitcoin. Then, is it possible for FBI to trace a drug dealer using the arrested guy’s PrivateKey and his transaction histories? If my understanding ...
1 vote
1 answer
90 views

GPG Suite cannot find Thomas Voegtlin's public key for Electrum

I'm trying to reinstall Electrum but cannot find Thomas Voegtlin's public key using GPG Suite, so cannot verify the downloaded Electrum software. Do I just need to keep trying or is there an ...
0 votes
1 answer
147 views

How to check if one transactions is from the same wallet (public key) as a previous one

I wonder how to figure out whether one Bitcoin transaction is from the same wallet (public key) as any previous transaction in order to proof the ownership of a wallet.
0 votes
1 answer
805 views

How can I generate public address from an xpub key in Java?

I have an xpub key with which I want to generate all addresses which have been used or will be used and then find out the keys which have balance. Here's a sample xpubkey with balance- ...
1 vote
1 answer
74 views

Why is the Generator Point G for secp256k1 curve typically indicated in (y,-x) quadrant?

Generator Point G for the secp256k1 curve is typically indicated below where the curve intersects the y-axis. At x=0, y=sqrt(7) and -sqrt(7), which are both small numbers less than 3, but G is an ...
1 vote
1 answer
79 views

Is it feasible to calculate EC private key k from public key K for very low values of k?

If an EC private key k is very small, say "1", is it feasible to calculate the private key k from its public key K, since there would only be one step back to generator point G and therefore ...
1 vote
0 answers
35 views

WitnessPubKeyHash to address

I'm trying to derive address from pubkeyhash in GoLang. Current i'm getting invalid address Current i'm getting SegWit address but mine chain doesn't support Segwit. addr, err := btcutil....
0 votes
1 answer
161 views

Addresses in Electrum wallet start bc1 but other tool gives addresses starting 1

I am using the Electrum wallet for Bitcoin on Windows 10. I'm able to get the private key of my main receiving address. I'm sure this address works to receive BTC as I've been able to before. I was ...
0 votes
2 answers
62 views

What is the difference between a 'hot' and 'cold' wallet

Problem I don't understand the difference between a 'hot' crypto wallet, and a 'cold' crypto wallet. Assumptions My understanding of blockchains is that they use public/private cryptography in order ...
0 votes
3 answers
747 views

What is the math behind Bitcoin's elliptic curve?

I have seen many videos regarding the math behind the bitcoin elliptical curve but none of them show the public key generation. They are just defining few steps. I need the complete math behind the ...
0 votes
1 answer
41 views

Keypath spending: Verify destination address across address formats

In a Tapscript Keypath Transaction (there is an unrelated Scriptpath too) I can have outputs to all possible address? (I.e. to P2PKH, P2SH, P2WPKH / P2WSH and P2TR) I have a list of addresses in all ...
1 vote
1 answer
118 views

How to get Private Keys for the corresponding HD generated Child Public Keys?

If we take a look at the Mastering Bitcoin book by Antonopoulos it is explained how to derive child keys as described in BIP-32: From this image it is easily visible that we can use parent public key ...
0 votes
0 answers
42 views

PHP Blockcypher error validating generated transaction: Error running script for input 0

Attempting to use Blockcypher's /txs/send endpoint using detailed here: https://www.blockcypher.com/dev/bitcoin/#creating-transactions and I'm getting the following error: Error validating generated ...
0 votes
2 answers
51 views

How can I manually connect a bitcoin network and create a bitcoin account?

I am not sure that I'm 100% technically correct, but I want to create a key value pair which is essentially my Bitcoin account. Please correct me if I am wrong. So what does it take me to make my ...
1 vote
0 answers
34 views

How to calculate modulo (%) of bitcoin publick key?

Good day. How to calculate modulo (%) of bitcoin publick key ? Absolutely any methods are welcome, please. Br
0 votes
1 answer
91 views

Bitaddress.org gives me legacy address instead of Bech32 address

I have my private key, but when I put it into bitaddress.org, it gives me a legacy address (starting with "1") and not the Bech32 address (starting with "bc1") that I was expecting....
1 vote
2 answers
64 views

If I have a public wallet address can I calculate its other wallet addresses?

Lets say someone else generates 100 bitcoin addresses using the same private key. If know one of the public addresses, can I deduce the other 99 public addresses?
1 vote
1 answer
45 views

What will be the security risks if we persist "e" as part of schnorr signature=(r,s,e) and extract publicKey from signature at verification

We know unlike ecrecover, it is impossible to get to public key given schnorr signature = (r,s) since rG = sG-eP . So, would like to understand what are the security risks, if we say signature=F(r,s,e)...
11 votes
3 answers
42k views

How do I get my public address in Bitcoin Core?

In a world of pain at the moment. I downloaded Bitcoin Core, and before I realised I'd need the complete downloaded Blockchain, my friend transferred some coins to my address. I did some research ...
0 votes
1 answer
54 views

Using EQUALVERIFY with different public keys, but generated from the same seed

I am building certain system that involves Bitcoin and therefore I need to understand well how it works under the hood. In order to receive funds, for every new transaction new public key and its hash ...
0 votes
0 answers
61 views

My Public Key on MultiBit Classic is 34 digits long

My public key, as it's displayed in MultiBit Classic, has remained unchanged in the last eight years since I bought my bitcoin in Jan 2014. I'm now looking to move my bitcoins from MultiBit Classic ...
7 votes
2 answers
5k views

python-bitcoinlib | Create Private Keys, Public Keys and Addresses - How to Do It?

I'm trying to use the python-bitcoinlib library but its docs aren't entirely clear to me. I'm a programmer but quite new to Python, and not very versed in the Bitcoin protocol. What's the process, ...
1 vote
1 answer
114 views

How to generate a public key in wallet rpc commands

I'm trying to generate a public key associated with a wallet. How would I do this using the wallet rpc commands, I couldn't find a command in reference docs which does this. Thanks.
0 votes
1 answer
61 views

What happens to the public and private keys after a transaction? Specifically, how (and why) do they change upon payment?

Feel free to answer/address as many of these topics as you like: In particular, I am interested in how bitcoins can be stolen, e.g., the 2016 Bitfinex hack. If I am not mistaken, the only way to steal ...
0 votes
1 answer
35 views

Where is the revelead public key in a spending transaction?

I am pursuing a deeper understanding of Bitcoin. Reading Grokking Bitcoin now. I am trying to asess the understanding of different concepts by exploring a BTC RPC explorer. I got some understanding ...
0 votes
2 answers
112 views

Is it possible to have multiple receiving addresses (bc1q) related to the same public key hash

I am trying to get the big picture of the bitcoin entities starting from seed to btc receiving addresses in Hierarchical deterministic wallets without being too technical about hash functions or too ...
0 votes
2 answers
54 views

Does a pass phrase uniquely identify public and private keys?

If I go to bitaddress.org and create a paper wallet with BIP38 and a pass phrase, what it doing with that pass phrase specifically? Since it can make multiple paper wallets from one pass phrase, the ...
0 votes
1 answer
45 views

How Bitcoin browsers update balance of an address?

Suppose i have a Bitcoin address for the first time and Alice sends me 1 Bitcoin using P2SH. As far as I know, Bitcoin browsers will scan the entire blockchain. In this case, my public key is not ...

1
2 3 4 5
10