Questions tagged [address-generation]

Collects technical details on the process of creating new addresses.

Filter by
Sorted by
Tagged with
69 votes
5 answers
74k views

What happens if your bitcoin client generates an address identical to another person's?

Here's a what-if scenario: Person A has a Bitcoin address with 25BTC. Person B opens up their Bitcoin client: which may or may not have the complete blockchain (the latter would mean no copies of ...
Austin Burk's user avatar
  • 1,109
30 votes
5 answers
19k views

How are public & private keys in an address created?

I understand the high level concept I am more interested specific details. How is a private key generated. How exactly is public key generated, how is address generated from public key.
DeathAndTaxes's user avatar
29 votes
4 answers
15k views

Is each Bitcoin address unique?

I am wondering whether each bitcoin address is unique. I would assume yes. Then, how is this enforced given the distributed address generation? As I understand it, each time an address is generated, a ...
dexter's user avatar
  • 393
24 votes
1 answer
8k views

Is it possible to convert a taproot address into a native segwit address?

A few days ago I requested a BTC withdrawal on Binance, I used a bc1p address and the request went through as usual without any issue or warning. (my first time using taproot address). Binance checked ...
Mario's user avatar
  • 243
21 votes
4 answers
21k views

How are different addresses generated from the same private key?

I was reading in the "Technical background of version 1 Bitcoin addresses" that addresses are a function of the private key. More or less: Private Key -> Public Key -> Address If the ...
ciczan's user avatar
  • 313
19 votes
2 answers
10k views

Can two private keys generate the same (public) Bitcoin address?

I know that private key is generated randomly by wallet. Is it possible that wallet generate the same address which is used in Bitcoin? In other words: Given two private keys ka ≠ kb, is it ...
user3473712's user avatar
13 votes
3 answers
1k views

What's stopping someone from taking over all the bitcoin addresses?

Anyone can generate unlimited bitcoin addresses. Presumably, there's a limited number of these (even if it's a very very large number). What's stopping someone from taking over all the bitcoin ...
thanks_in_advance's user avatar
13 votes
1 answer
2k views

Is any 256-bit combination a Bitcoin private key?

I've recently been implementing a simple Bitcoin wallet and some libraries seem to disagree with address derivation from the same WIF private key, and thus wouldn't sign transactions. After that, I ...
kuco 23's user avatar
  • 255
12 votes
2 answers
23k views

How do I create a new address in Electrum?

In Electrum, there is no "New Address" button to be found. I tried under the tab Addresses, but nothing there. If I go to Console and try create(), then it returns: Traceback (most recent call last): ...
user's user avatar
  • 1,093
10 votes
3 answers
4k views

How can I manually (on paper) calculate a Bitcoin public key from a private key?

I am interested in generating a Bitcoin address by hand for security's sake. After I choose/generate a private key, how do I generate the public key? From there, how would I double check my work? ...
Peter Bergman's user avatar
9 votes
2 answers
4k views

Is a bitcoin address collision possible if generating 90 million addresses every 4 hours?

I am running a test to see if I can obtain a successful bitcoin address collision after generating billions of addresses. I am not entirely sure how I would check them yet. Basically I have an extra ...
Anonymous's user avatar
  • 193
8 votes
3 answers
27k views

How to generate a testnet address?

Bitcoin addresses can be generated on this site https://www.bitaddress.org, but the test network needs m or n at the beginning of the address, where can those be generated?
zhou's user avatar
  • 83
8 votes
1 answer
2k views

Replacing ECDSA (SECP256k1) with Schnorr signatures

On March 23, 2017 the Bitcoin Core team published a technology roadmap, expressing their intent to replace ECDSA (SECP256k1) with Schnorr signatures: https://bitcoincore.org/en/2017/03/23/schnorr-...
shmuli's user avatar
  • 295
8 votes
2 answers
11k views

What is the difference between your address and your public keys

I'm beginning to learn about cryptocurrencies, and I'm having a lot of trouble because some terms are used in different contexts. I know that public keys are generated through a private key. So, are ...
Andre's user avatar
  • 181
8 votes
4 answers
5k views

HD wallets and address reuse

HD wallets create a series of addresses, and then when one address has received an input it will give you a new address that hasn't received inputs yet So in the idea of you sending yourself bitcoin ...
CQM's user avatar
  • 1,590
7 votes
3 answers
14k views

More receive addresses with electrum

I cannot find any documentation or an option anywhere in the electrum client to put it into expert mode. I'm not even sure it can be done any longer, and it is important I raise the gap limit. It like ...
John Tate's user avatar
  • 267
7 votes
2 answers
6k 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, ...
Gal Grünfeld's user avatar
7 votes
2 answers
2k views

Is it possible to use a PGP key as a bitcoin address?

Both bitcoin and encrypted emailing are based on public key cryptography. However, they use different implementations, so I assume that a public PGP key cannot be used as a bitcoin address directly. ...
jnnk's user avatar
  • 1,906
7 votes
1 answer
1k views

Key Pools and best practices

I'm wondering about what the best practices are around generating and maintaining key pools for a wallet. What is the maximum number of keys/addresses that can be created for a single wallet? Phrased ...
Loourr's user avatar
  • 3,050
6 votes
1 answer
4k views

Why is Bitcoin address encoded in base58?

Why does bitcoin address encoding use base58 instead of, for instance, base64? I don't see it is useful in any way.
dafunkizdiz's user avatar
6 votes
3 answers
8k views

Can same private key generate multiple addresses?

Is this possible using some clever bitcoin script? The intention is to get more privacy. I can give different addresses to different people still no one can guess how much I make in total. I can do ...
balki's user avatar
  • 295
6 votes
2 answers
14k views

How to generate addresses in PHP

I need some PHP code to generate bitcoin addresses from a given public key. I can only find algorithms to generate addresses from the master private key but according to https://en.bitcoin.it/wiki/...
Gianluca Ghettini's user avatar
6 votes
1 answer
808 views

How many possible addresses per bitcoin private key?

Based on my research every bitcoin private key (compressed or uncompressed) can have 4 different addresses: P2PKH compressed and starts with 1 P2PKH uncompressed and starts with 1 P2SH and starts ...
GMaster's user avatar
  • 187
6 votes
1 answer
3k views

Is there a way to generate a brain wallet from the command line or console?

Is there complete solution for console to generate brain wallet? Something like: echo "sausage" | xxd -r -p | sha256sum | awk '{print $1}' | rmd160 -x | blablabla I'm read this article: https://en....
6 votes
1 answer
2k views

Generate paper wallet SegWit address

I am trying to generate SegWit paper wallet address from WIF: My WIF is L5mHKZsCLS27nSoGM3RdAwuxjvg7XhJdP25LgqdXe6zF11wpWdbT. I am converting WIF to compressed public key: Compressed public key: ...
Jakub Fedyczak's user avatar
5 votes
3 answers
3k views

ELI5: What is Base58Check encoding?

I've seen posts on how to do it and I've read the wiki on what it is, however these explanations are too complex. Can someone explain what it is and why it's called Base58Check encoding? Are addresses ...
arshbot's user avatar
  • 1,768
5 votes
1 answer
1k views

How does the Bitcoin protocol deal with address collisions in wallets?

I understand that one can create a Bitcoin wallet as a pair of numbers (public & private key) with the right specifications and this is done quite easily in places like bitaddress.org I also ...
Calcutta's user avatar
  • 153
5 votes
1 answer
994 views

How are Electrum addresses connected to my private key?

I've started using Electrum and created my first wallet. I saved the private key seed on a piece of paper. I also created a new address by going to the Receive tab and clicking "New Address"....
Taimoor Ahmad's user avatar
5 votes
1 answer
566 views

Can you detect that the addresses generated by an HD wallet came from a single wallet?

Can someone who is looking at the blockchain detect that 2 or more addresses generated by a single HD wallet are actually generated by that single seed/HD wallet ? Can someone who does know that 2 or ...
user avatar
5 votes
1 answer
230 views

How can I protect my funds in the event a quantum computer breaks the ECDLP that Bitcoin relies on?

An interesting question was posted recently, discussing the idea of hashed addresses being (not meaningfully) quantum resistant. As Andrew's answer on that question points out, paying to a hashed ...
chytrik's user avatar
  • 18.1k
5 votes
1 answer
12k views

What's the relationship of Bitcoin addresses to public keys?

A Bitcoin wallet can handle multiple private keys. In ECC, you can have 2^256 private keys, and for each key, you can have 2^256 public keys. Assuming that's right (please correct me if I'm wrong), ...
forkd's user avatar
  • 63
5 votes
6 answers
2k views

If I were to generate an address and it happens to collide, legally speaking, would a transfer constitute theft?

Let's say that somehow I generate a new address which happens to already be "taken". I realize the chances of address collision are extraordinarily low as per Is it possible to brute force bitcoin ...
JJ Geewax's user avatar
  • 355
5 votes
1 answer
2k views

Generate addresses without private key: Stealth addresses vs Master Public Key

In my case a store owner has different POS terminals. On none of the terminals should be a private key stored! The owner has one wallet, where he wants to get all transactions aggregated, done on the ...
Stefan's user avatar
  • 405
5 votes
1 answer
853 views

Coin address generation for all coins

We are developing UI for coin trading. We have a plan to use all the coins present in coinmarketcap. I am greatly confused how to generate coin address for all coins. I knew that from cryptsy.com, it ...
Jsd's user avatar
  • 338
5 votes
2 answers
3k views

Is it possible to discover the set of bitcoin addresses from a public key?

I'm trying to find the set of bitcoin addresses from a public key associated with a user just to analyse this user transaction. Is there any way to derive/find all the addresses that have been ...
Saulo Ricci's user avatar
4 votes
3 answers
796 views

Is the SHA256 value in the bitcoin address wiki accurate?

From the wiki page https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses the example of "How to Create Bitcoin Address" shows the SHA256 of: ...
cloudnthings's user avatar
4 votes
2 answers
2k views

Unknown Address Format Parsing Bitcoin Addresses from Blockchair Data

I've obtained a list of all current Bitcoin addresses with balances from Blockchair, which is downloadable from their data repository located here. I have downloaded the Bitcoin / Addresses TSV ...
Martin's user avatar
  • 329
4 votes
3 answers
12k views

How does one create a brain wallet from a seed using SHA256?

How does one create a brain wallet from a seed using SHA256? Is this possible? Could you please explain using the example seed "coinbase is awesome" (no apostrophes)? What is the resulting address?
user289394's user avatar
4 votes
3 answers
9k views

Generate address (for receiving) on GNU/Linux without Bitcoin client?

If I understand it correctly, I could generate a valid Bitcoin address (key pair) following this algorithm. With an address generated in such a way I would be able to receive Bitcoin without ever ...
unor's user avatar
  • 316
4 votes
2 answers
240 views

How many addresses can be generated from a ranged descriptor?

I'm trying to wrap my head around ranged descriptors. The docs in the bitcoin/bitcoin-repo says that a ranged descriptor can generate keys/address "in a configurable range (0-1000 by default)&...
max's user avatar
  • 173
4 votes
2 answers
5k views

How to get the derived public key from xpub?

Here I'd like to generate the other address use xpub. Is there any library (python) could help to derive the new address from extended key? such as: gen_new_pub(xpub, new_path) to get the derived ...
Carpemer's user avatar
  • 301
4 votes
1 answer
3k views

How to generate a native Segwit address and P2SH Segwit address from a standard WIF?

Can I have the steps to generate a native Segwit address from a standard WIF? And the steps to generate a P2SH Segwit address from the same WIF? How do these two formats differ and why are there two?...
arshbot's user avatar
  • 1,768
4 votes
1 answer
4k views

How to generate a zcash vanity address?

Is the main network address version for zcash already known? Is it possible to generate a mainnet address already? This could allow miners to start from minute 0 to mine on a anonymous pool. The ...
q9f's user avatar
  • 1,444
4 votes
2 answers
3k views

Using Python: create a private key of my choosing, then generate public key and address

I'm looking for a simple, easy to use Bitcoin library for Python. What I want to do is verify I can enter a hex private key that I want, and get the expected pubkey in compressed format, and the 1Btc....
James Young's user avatar
4 votes
4 answers
5k views

How can I generate a bitcoin address?

Is there any way to generate bitcoin addresses other than the Blockchain API? (given the fact that it is not public)
Coup de Grace's user avatar
3 votes
2 answers
625 views

How do blockchain explorers know if the address is really generated?

I am studying how the Bitcoin addresses generation works. As far as I learned, a Bitcoin address appears in the blockchain only after it has been involved in its first transaction. If an address has ...
Alex's user avatar
  • 33
3 votes
2 answers
4k views

How to sweep a segwit bech32 private key?

I'm testing segwit bech32 addresses and generated the following using bitcoinjs: address: bc1qc7u5njf4nf2rj3zys642mfc7nct6kdven8j4e9 private key: 5Kkzs8XrJNAmf9VQDFeGBfaRvSByAvPK6DbDXw5BVqswWaXSG2Y ...
Patoshi パトシ's user avatar
3 votes
1 answer
5k views

What is the maximum of receive addresses the default wallet can handle?

I guess there is no limit. But on tests, what is the maximum before the bitcoind start to slow down in a specific machine?
Felipe's user avatar
  • 1,738
3 votes
2 answers
7k views

How is a Litecoin address generated?

How is a litecoin address generated? What hashing do they use? For example, bitcoin addresses are generated like so: https://en.bitcoin.it/wiki/Technical_background_of_version_1_Bitcoin_addresses I ...
Jim B's user avatar
  • 31
3 votes
2 answers
856 views

What kind of random numbers source does getnewaddress in Bitcoin Core API (bitcoind) uses?

Is it an internal PRNG? Is it fed from /dev/random or /dev/urandom? How secure is it? If I have a hardware (TRNG) plugged in feeding my /dev/random will this source of entropy get used by bitcoind?
Felipe's user avatar
  • 1,738

1
2 3 4 5
7