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
5
votes
1answer
3k views

How can a deterministic wallet have one private key but multiple public keys

If we take for example bread wallet. There is one mnemonic to remember, which means one private key? But when you use the app, your public address constantly changes. So more than one public key? ...
1
vote
2answers
163 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
4answers
2k views

How to get compressed public key with ECKey

Here some java code. What i need to change to get compressed public address in getPublicAddress? import com.google.bitcoin.core.Address; import com.google.bitcoin.core.ECKey; import com.google....
3
votes
1answer
1k views

How to generate scriptPubKey?

My address is 389CLh5Ect2i7U5116gqjBSLykYHRmdcgZ. In request from site i see this scriptPubKey, how i can generate this scriptPubKey from my Address {scriptPubKey: "...
3
votes
1answer
4k 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 '...
0
votes
1answer
938 views

Get public key of SegWit address

I'm using bitcoin-cli and I need to get the public key of one of my SegWit addresses. My first attempt was to use 'validateaddress' command and take the 'scriptPubKey' field but that doesn't seem to ...
1
vote
2answers
452 views

Private key exported from Electrum, unable to recreate Address with Python

I have created a new Electrum wallet, and here is an address: 1JkZLnmFfpVFLT2ZMtKzc6BuXMdmY41EHA By right-clicking on it, I choose "Private key" which gives: ...
1
vote
1answer
62 views

How to access funds from a fork? [closed]

So I want to access funds from various bitcoin forks, and I have my keys. Are there any sites, or services that allows me to enter my keys to get access to the funds from the forks? Point me in the ...
2
votes
1answer
224 views

Why does ScriptSig contain public key, since it can be recovered from the signature and message?

Using ECDSA, given a signature and the message signed, it is possible to recover the public key. So it seems to be a waste of up to 65 bytes in each transaction. Why does bitcoin do it? Which ...
0
votes
0answers
291 views

Multi signature wallet I'll know the private key

So my situation is I have to create a multi-signature address for our business (was going to do something like this: https://github.com/anders94/bitcoin-2-of-3-multisig). My question is if I make it ...
1
vote
1answer
4k views

ecdsa - Create Private key and Bitcoin Address

I have the following code: import binascii import hashlib from fastecdsa import keys, curve # generate a private key for curve P256 priv_key = keys.gen_private_key(curve.secp256k1) print (priv_key) ...
2
votes
1answer
64 views

Complete Tech Spec

Where can I find a comprehensive description of exactly how Bitcoin works. I'm not interested in an analogy, I want to know everything, including the maths.
2
votes
1answer
315 views

Electrum 2FA Wallet - Deriving the Third XPub

I'm working on a project which requires me to take an Electrum mnemonic, determine its type and derive the corresponding addresses for that wallet. I found lots of information on how to determine the ...
2
votes
2answers
382 views

Can Bitcoins be duplicated if two private keys share the same public key?

Although statistically impossible, imagine that two different private keys share the same public key. Would that addresses be able to create new Bitcoins? Let's say that private keys A1 and A2 have ...
1
vote
1answer
1k views

Bitcoin - Is the <pubKeyHash> in scriptPubKey already hashed?

In Bitcoin protocol, to set the output of a transaction you need a scriptPubKey which is in the following format. scriptPubKey = OP_DUP OP_HASH160 <pubKeyHash> OP_EQUALVERIFY OP_CHECKSIG Is &...
0
votes
3answers
103 views

What prevents a miner from stealing inputs when they are still in the working pool ?

I understood that transactions have one or more addresses as input and one or more addresses as output. When an address is specified as input in a transaction in the working pool (pending to be ...
1
vote
1answer
1k views

bitaddress.org: is the public key the same as the Bitcoin address?

For paper wallets generated at bitaddress.org, are the public keys and BTC addresses the same thing?
2
votes
2answers
968 views

How to list all addresses in a deterministic wallet?

Deterministic wallets generate a key space following established standards, using a random passphrase as seed. I have a couple of questions: How many keys can be generated by a deterministic wallet? ...
2
votes
0answers
426 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
1answer
1k views

Electrum TESTNET public key

I'm running Electrum in test mode (electrum --testnet) and have therefore created a new wallet for it. I've also successfully received some coins via Faucet. But when checking the public key for the ...
1
vote
3answers
228 views

Standard CLI tool to calculate a public key out of a private key

Is there a standard, or at least well-accepted, CLI tool that calculates the public key out of a private key? I've done my homework erading How do you get a Bitcoin Public Key from a Private Key, but ...
0
votes
1answer
211 views

What python code is necessary to convert the integers of a bitcoin public key into the proper hex version thereof?

If I get a public key of two integers, x and y values what code is necessary to convert them into their hex versions without any additional letters, or numbers? This is half a Python programming ...
1
vote
1answer
2k views

Is there a BTC Address generator that will check first blockchain if unused?

I'm looking for a working implementation of a Bitcoin address generator that would accept string or integer then it will check the blockchain if the address is unused before it will print the keypairs....
2
votes
2answers
757 views

Backing up Bitcoin using only private keys?

So I'm really new to Bitcoin and cryptocurrencies, and I don't truly understand realtion between Bitcoin private and public key, and address! I understand that for every private key, there is a ...
1
vote
1answer
1k views

Help! I've sent ltc to bcc address [closed]

I've been stupid.. I've sent ltc's from one wallet (litebit) to a bcc address from my other wallet (btc.com) by mistake. The btc.com wallet only supports BTC and BCC The address is ...
2
votes
2answers
298 views

the real purpose of mod inverse in bitcoin for creating public key

I understand the function of mod inverse, however I really have no idea why this is important with process of creating public key. What does this function do, what value do we get it? Can someone ...
14
votes
3answers
7k views

Key derivation in HD wallets using the extended private key vs hardened derivation

I am reading the book Mastering Bitcoin and confused about wallet key derivations in Chapter 4. Keys, Addresses, Wallets. The book first mentions a private child key derivation where the child ...
3
votes
1answer
283 views

How do you regenerate all 2-of-2 multisig addresses from two xPrivkeys?

If I want to get the private and public keys of all transactions that have happened on my multisig wallet. How would I do that? It's a 2-of-2 multisig setup. I have an xPrivkey on my computer and an ...
1
vote
1answer
36 views

Are there any places where should not use compressed public keys?

It is always worthwhile to use compressed keys to save size. Or somewhere in the Bitcoin code, exactly uncompressed keys are needed?
1
vote
1answer
146 views

How is address recognized between wallets

Lets assume I create a wallet in Jaxx and Bittrex for ETH token which in turn creates public & private key pair. I am able to transfer coins between different wallets. How is the address ...
2
votes
3answers
935 views

Electrum: How to generate hardened public addresses with HD BIP32 wallet

Please comment on the accuracy of this explanation. Scenario: The master public key is compromised and so all non-hardened public addresses can be generated and monitored by a third party. This ...
-1
votes
2answers
86 views

How in the Bitcoin world one prove that a public key is authentic?

I am trying to understand how Bitcoin works, and was wondering how can you prove that a public key is authentic. Here´s what I have in mind to provide more context to my question. Let's suppose I ...
2
votes
1answer
3k views

Recovering ECDSA public key from the signature

How to recover ECDSA public key from the signature? I know that all is need is a hash of the unsigned message and signature. But may be there is some detailed method for to calculate ECDSA public ...
1
vote
1answer
61 views

How exactly would compromising a private key cause you to lose your coins?

When someone sends me coins, they must send it to my wallet address, which is nothing but my public key hashed. It's generally understood that losing your private key implies losing access to your ...
0
votes
1answer
37 views

is it possible to replace the cryptography and public key algorithms in Bitcoin?

Is it possible to replace the cryptographic algorithms used in Bitcoin, such as the hash algorithms and the elliptic curve public key cryptography? Does this require a soft fork or a hard fork?
1
vote
1answer
367 views

Is it possible to have a cryptocurrency based on email address?

I would like to know if there is any existing cryptocurrency that lets you control the public and private keys generated. I just don't like the fact that cryptocurrency keys are randomly generated. ...
1
vote
1answer
831 views

Obtaining 12 word mnemonic from Private & Public Keys

After a recent upgrade to Jaxx wallet my Litecoins and my transaction history are lost. The 12 word mnemonic opens up a wallet with zero Litecoin balance even though the public key address from the ...
0
votes
0answers
132 views

What is the easiest way (user experience wise) to get xpub?

I'v got monitoring app going for my hardware wallet and am planning to release it to public. Biggest pain point right now is asking users to enter their xpub key. It can be done, but there is no ...
8
votes
3answers
15k views

Is it possible to use xpub address to monitor balance from previously generated addresses?

I'm trying to find a way where I can view balance of my ledger nano s wallet without always attaching it to computer all the time. I found something called xpub address which allows me to generate ...
2
votes
1answer
80 views

Is it possible to check if an Address was generated from an HD Public Key.

Suppose I know a specific address and I know a full HD Public Key. Is it possible to determine if the address is a hash of one public keys generated from the HD public key in constant time, or in ...
2
votes
1answer
4k views

Can I restore a Litecoin wallet with Public / Secret?

I apogolize if this has been asked, I have spent several hours trying to figure this out. I found an old document of my with a Litecoin Public and Secret key. I don't have a *.dat file, is this a ...
1
vote
1answer
82 views

Is there are written code for mapping public address to an user?

I read about 2 theoretical ways we can do it 1) When a single transaction has multiple input addresses, we can assume that those addresses belong to the same wallet, thus to the same user. We should ...
6
votes
1answer
7k views

How to get public master key of a Ledger wallet?

I have a ledger Nano S and would like to know how to extract the public master key of its wallet, in order to do HD key derivation in an external process. Is there a way or is this info never exposed ...
0
votes
1answer
78 views

How do you check the validity of a signature while only having the hash of the public key

So far as I understand it, a Bitcoin transaction is signed with a private key and the rest of the network can then use the public key to verify that it is indeed signed by the right private key. ...
0
votes
1answer
1k views

Wallet: how to generate public extended key?

As far as I understand, when I want to create an HD Wallet, do I need a private key that is derived into an extended public key? So, my question is, if I am coding a portfolio of bitcoin in java, how ...
1
vote
1answer
67 views

If newer versions of bitcoin and or bitcoin cash don't allow 0x04 uncompressed public keys, what do you do if you have an address based on one?

So if you have an address with coins in it that uses an uncompressed public key (preceeded by a "04") then how can coins from that wallet be utilized with a network that doesn't allow such public keys?...
1
vote
1answer
809 views

How to generate random addresses from public key such that they're recoverable later using pub key only

I head that from a public key, you can generate random addresses just by adding a nonce to the public key. Then, you can regenerate all these addresses again when you need, right? If my wallet has ...
0
votes
0answers
3k views

To get Public key from Private key

How can I get the corresponding public key of a particular private key using bitcoin core console commands? , just as we can have private key of particular address using dumpprivkey and public key ...
1
vote
1answer
81 views

Bitcoin public key pre-0.6 length before hashing

As I understand, since bitcoin 0.6.x, compressed and uncompressed public keys are supported. And the process from the public key to the address has the step that puts a byte in front of the public key ...
2
votes
1answer
1k views

When creating a transaction, how can you prove that you own your address without exposing your private key?

I'm trying to understand how Bitcoin works under the hood, but there's something I don't get at all, and can't find it. Suppose I own address A (I have the public key, A-public, and the private key A-...

1
3 4
5
6 7
9