Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [address-generation]

Collects technical details on the process of creating new addresses.

0
votes
2answers
33 views

Why is there a finite amount of bitcoin addresses and how is the range of possible addresses determined

My first question is what the precise logical/theoretical reason is that there are only a fixed amount of possible bitcoin addresses. Secondly, I can generate a bitcoin address by using address(sha256(...
0
votes
1answer
31 views

“bitaddress.org”: It generates a BTC or BCH address?

(1) Is the address generated by www.bitaddress.org a BTC address? Or BCH address (Bitcoin Cash) ? (2) Is there a general method to recognize BTC address from BCH address?
0
votes
0answers
12 views

Bitcoin.com Wallet: How to export separately addresses and private key from json file?

I created a wallet by Bitcoin.com Wallet application for Windows. And then I generated 3 BTC addresses for this wallet. I then exported this wallet using Export Wallet and and chose File/Text option, ...
0
votes
1answer
29 views

Why the normal mode exist in BIP32

Suppose the BIP32 normal deviation is not safe enough. Suppose the xpub is deployed on the server, we assume it is public, then the leak of any derived private key is the leak of the parent private ...
0
votes
1answer
28 views

The risk of sending money to a xpub generated address

Suppose the owner of xpub share the xpub to others, and someone send some money to a xpub generated address. If the owner of xprv does not know the path used to generate that new address, is that ...
0
votes
2answers
50 views

Bitcoin HD Wallets with hardened derivation and watch-only addresses

I'm learning about the details of how HD wallets work. After reading the BIP32 and BIP44 documents thoroughly and supplementing it with Mastering Bitcoin there's still on aspect that I can't figure ...
7
votes
2answers
2k 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 ...
1
vote
1answer
28 views

Does Bitcoin Core accepts uncompressed address generation?

So one priv key express uncompressed and compressed pub key. Does the latest Bitcoin Core client accepts importing it to express uncompressed address? or it automatically express compressed address? ...
0
votes
1answer
33 views

How many rounds of HMAC-SHA256 needed to generate the master key in BIP32

In the BIP32, it does not define the round of HMAC-SHA256. In http://bip32.org/, it use 50,000 rounds. In "mastering Bitcoin", it use 2048 rounds. Is there any explicit standard, or what we ...
1
vote
2answers
58 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 ...
0
votes
1answer
24 views

How to generate a large number of accounts via hw wallet and save addresses to file?

I work in a company which uses a ledger blue hw wallet. They need to generate bitcoin and eth accounts to send to users to deposit to. Currently they have people generating one account at a time in ...
2
votes
1answer
173 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....
0
votes
2answers
33 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 ...
0
votes
1answer
9 views

Is it required to broadcast the addresses generated locally to the bitcoin network?

Like the transactions are broadcasted to the bitcoin network , is it required that locally generated addresses also need to be boradcasted to the bitcoin network ?
3
votes
1answer
94 views

Where are new addresses stored?

When a user generates an address using Bitcoin Core, is that address by default stored on the blockchain or will it only be stored after it is used in a transactions
0
votes
1answer
45 views

Adding an external key pair to a local bitcoinj wallet

I need to add a vanity address to a local wallet that I maintain using bitcoinj APIs. I'm not able to search for the vanity using bitcoinj APIs directly, on my local PC, because my vanity is too fancy....
1
vote
1answer
102 views

Generating private key/bitcoin address based on a “password”

Since the private key is basically a random large number, would I be able to pick a password and have that converted into an address? For example: pick "mysecretpwd". Have it sha256ed, obtain a large ...
0
votes
1answer
33 views

Why bitcoin addresses have different number of characters?

With the help of bitcoin wiki I learned that every bitcoin address stands for a number and that shorter addresses are valid just because they happen to start with zeros, and when the zeroes are ...
0
votes
1answer
193 views

Possible attack vector of BIP32 HD wallet

I've been reading about BIP32 HD wallet and it's implementation and came across a few questions regarding the possible known "attack" vector of leaked private child keys and known xpub parent key ...
0
votes
1answer
34 views

Bitcoin explorers don't show my addresses transactions

I'm creating bitcoin addresses for a wallet we're building. To make sure the addresses are valid I went to a couple of bitcoin explorers and they reported, correctly, that the address does not have ...
1
vote
1answer
46 views

Is there any way to revoke or update private key?

Suppose my private key corresponding to an address is stolen. Is there any way to revoke private key or update the private key?
0
votes
1answer
65 views

Print all states of getting from a random 256 bit private key to a corresponding encoded BTC address

I wonder if it is possible to print what's going on under the hood regarding the process of getting from a random binary number to a BTC address. It will look something like this: Input: a random ...
0
votes
1answer
59 views

Whether I have to scan all types of addresses to discover BIP44 wallet from mnemonic?

Let's assume that I am going to create a new address in bitcoin HD wallet knowing only mnemonic words and that previously addresses were generated according to BIP44. BIP44 gives an algorithm how to ...
1
vote
2answers
79 views

Can one recover the full list of public keys generated in electrum with the seed/private key?

I used the wallet.change_gap_limit command in the electrum console in order to generate some 20.000 public keys. Would I be able to recover all of these using my seed after completely removing ...
1
vote
1answer
116 views

OpenSSL bitcoin addresses generation

Using OpenSSL ver 1.1.0h on win 8.1 - 32 bit Im trying to recreate this post using cmd: OpenSSL generate Bitcoin address But on step 3: openssl ec -in c:\keys\private.pem -outform DER|tail -c +8|...
1
vote
1answer
194 views

bitcoin address from xpub key

I want to create bitcoin address from extended public key, without exposing private key but did not get any success till now. Do someone know how to do it? I am using bitcore-lib package
1
vote
1answer
240 views

How to generate a dash address?

How can I generate a simple dash address from a public key? How many address formats are there in dash?
1
vote
1answer
228 views

BIP 32 child key derivation “stops working” after a certain index (i)

Here's my code to get a child public key from a parent HD key. I adapted it from freedomnode: public function address_from_master_pub($path = '0/0') { if ($this->xpub === NULL && $...
0
votes
1answer
247 views

Number of Trials Required For Brute Force Attack To Have x% Of Success?

I'm making an informational video about how unlikely it is for an attacker to successfully brute force a specific bitcoin address. Obviously, it will deal with impossibly huge numbers ("not in earth's ...
2
votes
1answer
59 views

Checking the first and last characters of a cryptocurrency address?

When confirming that an address entered on a site/app is what I expect it to be, I often check the first and last 3-4 characters to see if they match. Is this practice dangerous? Could an attacker ...
0
votes
0answers
47 views

What's the difference between all kinds of bitcoin addresses (Single, multisig, etc…) also compared to all bitcoin forks?

Bitcoin addresses start with 1. Multisig/Script addresses start with 3. Other forks of bitcoin have single letters that are different at the beginning. Is this letter simply and only prepended to the ...
2
votes
1answer
107 views

Hypothetical Scenario - Address collision with address with already confirmed outgoing transaction

In a typical case of finding a collision with an address, as long as the private key provided has a consistent public key that hashes to the address, then the coins in that address can be spent. The ...
0
votes
2answers
58 views

How to generate an address for bitcoin?

I installed bitcoin core and I am generating an address using getnewaddress. To get the private_key of the address I am using dumpprivkey. To get the unspents I am using listunspent. Till here ...
0
votes
1answer
62 views

Can I generate an address without using bitcoin core?

I am running bitcoin core in my mode. I am using getnewaddress to generate an address and then I am using unspent to get the unspent of an address which returns the unspent successfully. If I created ...
1
vote
1answer
112 views

How are 21 words seeds generated

Apologies for the noobie question. I was wondering how a range of wallet addresses (eg. BTC address 33ELbMhwHw5AaKHU4u3MzVSFvvK7aa7HZL) is algorithmically converted into seeds (eg. 12 words). Any help?...
0
votes
1answer
197 views

Generate QR code for multiple cryptocurrency addresses

I want to generate my own QR code with my main cryptocurrency addresses without using an online solution, is there maybe a command prompt way or particular piece of software I cam download for this, ...
1
vote
1answer
551 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?...
1
vote
1answer
286 views

Benefits of generate address from sha256 hash than random address

Is there any benefits (eg: better security) of generate a address from SHA 256 hash vs generate a random hash? Generate adress from a SHA 256 hash var value = Buffer.from('correct horse battery ...
1
vote
1answer
962 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, ...
2
votes
1answer
621 views

How to generate a Litecoin testnet addresses (Segwit also) (Derivation path, bip32)

I'm creating a wallet that generates address for litecoin mainnet in two ways. One is using bitcoinjs-lib. This library has an object with all the data need it to create private keys and address: ...
1
vote
1answer
802 views

How can I generate bitcoin cash addresses programmatically? [duplicate]

If I'm a mobile developer who wants to integrate bitcoin cash in an app, how can I generate Bitcoin Cash addresses programmatically, without relying on a 3rd party service, like Coinbase?
1
vote
3answers
799 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 ...
1
vote
0answers
135 views

bitcoinjs-lib seems to skip a step in deriving addresses from a BIP 44 wallet

According to this wiki page to create a bitcoin address, 1) you have your public key of the properly derived path 2) Then SHA256 it 3) Then RIPEMD-160 it, Add version byte at the front and boom ...
0
votes
0answers
805 views

How login in Bitcoin wallet using private key

We're working with a ICO project based on NEO Blockchain. We've requirement of getting payments through NEO, ETH and BTC. We're using deposit address concept to get payments from the users, and for ...
0
votes
2answers
266 views

base58 cannot get 34 chars results (as Bitcoin address does) but 68 chars

I am trying to convert public key hex to Bitcoin address. From this website http://gobittest.appspot.com/Address, I can do some test. For example, I have this public key: ...
0
votes
0answers
107 views

Would it be possible for an 8-bit microprocessor to create a bitcoin keypair?

Context for question: With the latest security breaches around modern CPU's (Spectre / Meltdown) I was wondering if we could generate ECDSA keypairs on cheap, small and/or simple air gapped (micro)...
0
votes
1answer
199 views

Zcash wallet generation

How to generate Zcash address and private key by a mnemonic seed, in nodejs or python? Is there some lib like bitcore-lib or ethereum-bip44?
0
votes
1answer
109 views

bitcoinTestnet Network returning a mainnet address

I'm using this code to get a new address from an extended public key: $index = 97; $change = false; $key = HierarchicalKeyFactory::fromExtended($tpubaddress, NetworkFactory::...
0
votes
1answer
81 views

Does copay accepts multiple payments?

I am a bit confused as to whether copay wallet accepts multiple payments to a single address based on the phrasing "wallet generates new addresses automatically once you use a bitcoin address once"......
2
votes
2answers
2k views

How to generate a new extended public key (xpub)?

I have a need to generate a new extended public key (xpub). Examples: xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz ...