We changed our privacy policy. Read more.

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
1answer
102 views

Why MakeNewKey in key.cpp isn't called when getnewaddress or generate

Hi I'm student studying bitcoin-core. I tested bitcoin regtest mode, and I want to know when CKey::MakeNewKey() is called. when I do this, bitcoin-cli -regtest createwallet "wallet1" ...
0
votes
1answer
26 views

Can you use un-tweaked public key with P2TR?

Given some public key, is turning it into a working P2TR address and then going back from P2TR to get the same pubkey possible? I've read about the tweaking but don't really get it - do you need to ...
0
votes
2answers
110 views

Signature doesn't prove that the owner of a Private Key produced a given message

Let's assume I am a developer of Bitcoin wallet. If I create a private key without implementing a seed phrase methodology (not using the principles of BIP32 and BIP39), is there at least the slightest ...
-2
votes
1answer
58 views

Private key (hex) from public key [duplicate]

Guys who know how to get private key (hex) if I know public key (hex) ?Thx for support
2
votes
0answers
52 views

Can I receive different cryptocurrencies on the same public key? [closed]

The main question I have is: Can I receive different cryptocurrencies on a same public key? For example: I instruct the person A to send me BTC on a public key X. I also instruct the person B to send ...
0
votes
0answers
52 views

In SECP256k1 arithmetic, why is |a*b| - |a*(b+1)| very large?

First, I multiply two scalars on SECP2561 curve using secp256k1 java calculator: E7D2AF2FC9FF9CAF795D2EED256567679873FC547A513AA85A8A2E2776AB88D9 * db09b0615ad40a0 = fc07a1825367bbe but then I add or ...
2
votes
1answer
64 views

How does a Wallet Create a Transaction when a Public Address Is Provided?

Given a public Bitcoin wallet address 1BdYVvwoxTWMGqJS2Pg6NkVD7RnENVjSac; is pasted into a wallet to send Bitcoins to. How does the wallet create an output to send coins to the public key associated ...
1
vote
2answers
193 views

As a developer, what steps do I need to take to generate private-public keys?

When developing (I'm using Apple Swift), what steps are needed in order to independently create my own pair of private-public keys (with the ability to restore a private key from a mnemonic phrase)? ...
0
votes
1answer
44 views

RIPEMD 160 Hashes

I have observed that BTC Address 1111111111111111111114oLvT2 has the public key RIPEMD 160 Hash is 0000000000000000000000000000000000000000 whereby 111111111111111111112BEH2ro has the public RIPEMD ...
1
vote
0answers
66 views

How do you Derive Addresses from a BIP49 Master Public Key using P2WPKH-P2SH?

I am trying to derive addresses from a master public key (aka extended public key) in python. I don't fully understand the math behind the key derivation, but have been able to decode the master ...
1
vote
2answers
61 views

Does every private key have two public keys (ie Y and negated Y?) (secp256k1)

given a private key Z that multiplied by the generator point G gives a public key P fulfills x^3 + 7 being a square, is it safe to say that either (x,y) is a valid point / pubkey, or (x, curve p - y) ...
1
vote
1answer
39 views

How can I get transction destination address from raw transaction data?

I am writing a program that reads Bitcoin transactions from .blk files and performs some analysis on them. I would like to get transaction destination address (like in some transaction explorers: link....
3
votes
1answer
214 views

How can I generate expiring transactions?

I want to generate a transaction that spends funds to a wallet controlled by a third party, but for this transaction to only remain valid for a certain window of time. This could mean a transaction ...
0
votes
0answers
34 views

Nothing-Up-My-Sleeve BTC Addresses [duplicate]

I've been researching some crypto related concepts and came across "Nothing-Up-My-Sleeve Numbers" and from what I understand I can generated a Bitcoin address that basically comes with an ...
0
votes
1answer
40 views

What are the ways to obtain public key of a wallet with no outputs

I was wondering if there is a way to obtain public key of a public address where the address does not have any output transaction
0
votes
0answers
20 views

Why can't bitcoin be stolen in the following manner? [duplicate]

Assume I'm a miner. I would have the complete UTXO set with me. Let us say I try generating random keys and hash the public keys generated and compare it with the utxo set until I find a match. When I ...
1
vote
1answer
57 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 ...
2
votes
1answer
55 views

Are a new set of keys created for each UTXO, or can multiple UTXOs be locked by the same PubKey?

I understand that each transaction, new pairs of keys are generated, usually derived from a master key say in an HD wallet. If your change for a transaction or received BTC Is in multiple UTXOs, are ...
0
votes
0answers
15 views

How to sync AirGap Vault with its Wallet

How long does it take to sync AirGap Vault/Wallet together and does the syncing process require internet? And is it possible to sync Airgap Vault with electrum wallet?
1
vote
1answer
39 views

Why these 2 pubkeys start equal?

I generated a seed into my coldcard, wrote down its pubkey: xpubABCDEFGHIKL--------------------------------------------------- then I erased everything and generated a new seed, and wrote down its ...
2
votes
1answer
61 views

Is it possible to find additional key pairs resulting in the same address that I already control?

I'm not really well versed in the necessary terminology to get the answer I need from searching. As I understand, there are 2^160 possible addresses, and 2^256 possible private keys, so each address ...
0
votes
2answers
125 views

What is extended master key fingerprint on coldcard?

On coldcard on Advanced -> View Identity, there's extended master key fingerprint I though this was the xpub from my seed, but even after I changed seeds, it remained the same. What is it?
0
votes
1answer
78 views

Can you get the seed phrase of a HD wallet from the private key of one of the wallets?

Let us say I have a HD wallet. Can I get it’s seed phrase from the private key of one of its wallets? Also are seed phrases just easy to remember private keys? If so does that mean that from the seed ...
0
votes
1answer
66 views

Orderly Transition Away from ECC? Or Bitcoin to zero?

Let's say asymmetric public key cryptography is wide open, and can be broken using a public key or the signature. Namely, that I can determine the private key using the information revealed in a ...
1
vote
1answer
84 views

How do you generate a Bitcoin wallet by hand?

I am interested in the exact process for generating the various components of a Bitcoin wallet by hand. Specifically, the components I'm interested in are: Private Key Public Key Public Key Hash ...
0
votes
0answers
70 views

public key from private key math

Please guide me if following is the actual math to drive public key from a private key then how would this apply to generate public key from private key 1 please guide me step by step Private keys and ...
0
votes
1answer
152 views

I bought bitcoin years ago and now the website that I bought from is unavailable!

I bought bitcoin years ago and now the website that I bought from is unavailable! I only have a key that I don't even know whether it's a public key or a private key or some useless key generated by ...
0
votes
0answers
55 views

Safe way to create a mnemonic and address in golang

I have been looking over internet in the different repos of btcsuite but had no luck in finding a way to generate a 12 word mnemonic and convert this to an address using the go language. It needs also ...
0
votes
1answer
37 views

How do I restore the public key?

Let say, I create wallet and have two public key and one private key. And I remove the first public key from the wallet. Can I restore and use my first key again? Or it's removed at all. Sorry for the ...
0
votes
1answer
148 views

How do many public keys correspond to one private key?

I have read online that hardware wallets can generate new public keys to facilitate transactions. Ie if someone has BTC on an exchange and they want to send that BTC in different installments to a ...
1
vote
1answer
56 views

Libbitcoin How to generate addresses on demand from xpub?

Well, I am really new to this. Just installed libbitcoin and I am reading trough the wiki and everything. Could someone really quick hint me how to generate addresses whenever I want from xpub that ...
0
votes
0answers
70 views

How Create Bitcoin wallet from a private key works?

I'm trying to understand how i can create a pair of bitcoin private key and public key with : https://github.com/Destiner/blocksmith for example : import blocksmith kg = blocksmith.KeyGenerator() ...
0
votes
0answers
29 views

Bitcoin creating wallet without seeing private key

I would like to create a Bitcoin paper wallet for a friend. However, I know that I should not have the private key as well. Is it possible to create a wallet but where I only have the public key and ...
1
vote
1answer
61 views

Bitcoin public key — why do we have a compressed and uncompressed version?

My understanding is that the public key can start with 04 if it's uncompressed, or 02 or 03 if it's compressed. What's the purpose of this? It appears that you'd have greater entropy if it's ...
0
votes
0answers
12 views

Does the protocol ensure that pair keys wallet are unique? [duplicate]

What mechanism for proof unique pair keys (public key and private key) when creating a wallet with several sources(such as "wallet.btc.com", "wallet.bitcoin.com", "www....
3
votes
1answer
82 views

Why aren't public-private keys sufficient to build a block chain? Why do we need proof of work/stake?

Taking the simple case of Bitcoin here: If all nodes can validate published transactions by checking the signature (created using the private key of the sender) of the transaction against the public ...
0
votes
0answers
47 views

Retrieving a WIF bits private key

Suppose I have a Wif private key from Electrum 4.0.9: L2pt3eVopnxfBBvMwrJV2saZeAyQfF77UQSH5WGj5q9LBS6WWBmN ( this one or the other generated from the seed is non used of course ) with a corresponding ...
0
votes
0answers
40 views

Cryptocurrency Wallet 3rd party access

Do Crypto wallets such as Exodus etc have something like an API? For example is it possible to perform a cryptocurrency transaction directly from the web browser client (using the specified amount and ...
1
vote
1answer
154 views

How to convert xpub ypub and zpub in Ruby

I'm looking to convert a Bitcoin extended public key from one format to another in Ruby. In JS I've found https://github.com/jlopp/xpub-converter/blob/master/js/xpubConvert.js and Python https://...
0
votes
0answers
15 views

Coinbase missing Bitcoin [duplicate]

So someone sent me Bitcoin cash but the sender did not tell me it was Bitcoin cash. So I sent a Bitcoin address. I use Coinbase. Is my money lost? I can’t seem to get a private key or a public key ...
0
votes
1answer
75 views

How to retrieve a public key from all types of transaction?

Is there a way to get sender's public key based only on the raw transaction data no matter the P2... type?
0
votes
0answers
22 views

what is math behind elliptic curve? (duplicate) [duplicate]

I have seen many videos regarding the math behind the bitcoin elliptical curve but none of them showing the public key generation they are just defining few steps. i need complete math behind the ...
0
votes
2answers
24 views

Public Key in Use Verification

This may be a bad question, but I am just getting started and you have to start somewhere. I have seen it discussed that generating the same public key as someone else is theoretically possible but ...
0
votes
3answers
297 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
3answers
294 views

Is there a simple python script for xpub generation from private key

I need a python script to verify, in an air gapped system, that my 24-word (or 12-word) mnemonic seed indeed generates the xpub that my wallet is showing me. Is there a simple script that does that, ...
0
votes
1answer
50 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?
0
votes
0answers
55 views

need help generate single publickey on cuda device

I am trying to generate a public key from a hash on a cuda device. I couldn't find a ready source for that task. So I want to try to modify/ create a new function for this task. the source code I want ...
0
votes
2answers
198 views

import multisig wallet into bitcoin core, Vpub keys are not valid. how to?

I'm trying to import an HD multisig wallet created with Electrum into Bitcoin core v0.21.0.0. I managed to do so with the fantastic cryptoadvance.specter server, but I also would like to import it ...
1
vote
2answers
227 views

secp256k1 recovery id and how does the code work

Here I have some questions regarding the recovery id (recid) defined in secp256k1 implementation. I had found few posts about how the recid is defined and what does it mean, also the source code (...
0
votes
1answer
70 views

Public key Exceeding Mod P? A Clarification Request On The Discrete Logarithm Problem

I tried to observe / implement the discrete logarithm problem but I noticed something about it; but before I get into it let me give some clarification which is open to correction. a = b^x mod P ...

1
2 3 4 5
9