Questions tagged [bip32-hd-wallets]

BIP32, or Hierarchical Deterministic Wallets. HD wallets are wallets that can be shared amongst different wallet implementation with or without the ability to spend coins. https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

71 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4 votes
1 answer
1k views

Generate addresses from Trezor's xPub using Python

I am trying to generate BIP32 HD addresses from my Trezors xPub key. I keep getting errors with most of the libs our there. What am I missing? pywallet: from pywallet import wallet xpub = '...
Katafalkas's user avatar
3 votes
0 answers
463 views

Electrum Seed Purpose for MultiSig Wallet

I'm curious as to what exactly is protected by the seed that Electrum generates for a multisig wallet. My knowledge of the protocol implementation is rather basic, so please correct me where I'm wrong ...
John Dorian's user avatar
2 votes
0 answers
40 views

HD wallet usage in Bitcoin & Lightning combined wallets

Is there a best practice / recommendation for a Bitcoin & Lightning combined wallet, regarding the HD wallet used in the Bitcoin wallet and the HD wallet used in the Lightning wallet? no relation,...
OptOut's user avatar
  • 344
2 votes
0 answers
59 views

Is BitCoin developer page's HD Wallet image wrong

Here is the image I copied from the https://developer.bitcoin.org/devguide/wallets.html#id9 What I understand is that M/0'/1' can derive M/0'/1'/0. M/0'/1' can't derive M/0'/1'/0'. To derive M/0'/1'/0,...
juhyung park's user avatar
2 votes
1 answer
233 views

Reusing bitcoin hw wallet infrastructure as a PGP replacement?

A lot of people who own Bitcoin are already know how to securely generate, store and use their BIP32 + BIP39 wallets, and own hardware wallets. Are there any existing projects/standards trying to bolt ...
dpc.pw's user avatar
  • 281
2 votes
0 answers
156 views

Is there a simpler form of BIP32-like key derivation?

I've read about BIP32 key derivation functions, and also: Any Elliptic Curve could work in the BIP32 scheme. The only property of a Curve that BIP32 relies on is that a * G + b *G = (a + b mod N) * G,...
fadedbee's user avatar
  • 143
2 votes
0 answers
39 views

Ypub test vectors missing for mainnet

Following extended key derivation scheme in BIP49 is there a publicly available test vector repository for mainnet? The test vectors in https://github.com/bitcoin/bips/blob/master/bip-0049.mediawiki#...
Tony Sanak's user avatar
  • 1,689
2 votes
0 answers
356 views

How to send & receive bitcoin using bitcoinjs-lib?

First I create HD Wallet using BIP32 using mnemonics. Now I want to generate new child addresses with private key using xpub & xpriv for every receive. Then for example, I received BTC in 2 ...
Monarth Sarvaiya's user avatar
2 votes
0 answers
197 views

What are segwit extended key prefix bytes for regtest?

I need the HD version bytes for equivalent of ypub, zpub, Ypub, Zpub but on the regtest network. I also need Ypub on testnet. All the rest I can find in slip132, but it is incomplete. thanks.
user49396's user avatar
  • 221
2 votes
0 answers
500 views

Stateless vs Stateful wallets

Stateless wallet are wallets that do not store any information locally on the device. Stateful wallets are wallets that store information such as index of unused address. According to my ...
Infinity's user avatar
  • 183
2 votes
1 answer
809 views

BIP32 HD Wallets: HMAC vs. "just" Hashing the Seed

In A. Antonopoulus' Mastering Bitcoin (2nd edition) on page 106, there is a nice illustration showing how the basis for a BIP32 HD Wallet is generated: So here is the one thing I don't understand ...
Dalit Sairio's user avatar
1 vote
1 answer
57 views

multiple multisigs with minimal cold devices

I want to maximize security but minimize complexity. Let's say I have large enough sums of BTC that need to be secured into three buckets: KYC Personal BTC Non KYC Personal BTC (mined) KYC Company ...
Francis's user avatar
  • 11
1 vote
1 answer
388 views

Webpack issue with tiny-secp256k1 and ECPair

I am developing a browser extension using Webpack v5 and incorporating the bitcoinjs-lib and ecpair libraries to create a Bitcoin wallet. However, I am encountering an error when attempting to load ...
Vaibhav Patel's user avatar
1 vote
0 answers
54 views

Is there a way to make a provably non-fake HW wallet?

With the current hardware wallets, there is AFAIK no way for a customer to verify if the HW wallet indeed generates secure, private addresses. All checks actually just use various methods to verify ...
Aleš Janda's user avatar
1 vote
0 answers
88 views

Is there such a bip32 function?

I have this code: const bip32 = utils.BIP32Factory(utils.ecc) const mnemonic = utils.bip39.generateMnemonic(256); const seed = utils.bip39.mnemonicToSeedSync(mnemonic); const masterNode = bip32....
AlexCav's user avatar
  • 51
1 vote
0 answers
72 views

Could the Bitcoin Core descriptor wallet recover and start spending UTXOs by only scanning the UTXO set?

In the case where you import a previously used BIP32 seed into a Bitcoin Core descriptor wallet, at the moment if I understand correctly, the only way to recover the UTXOs and spend them is by first ...
nolan's user avatar
  • 11
1 vote
0 answers
233 views

Importing BIP-84 keys to Bitcoin Core or similar?

I generated a mnemonic and keys using the BIP-84 scheme and sent funds to a public address from that scheme over time. I have been using this as a paper wallet, unattached to any wallet software. I ...
bbuck's user avatar
  • 11
1 vote
0 answers
56 views

What are valid BIP32 version bytes in descriptors & optional key origin defaults?

BIP49 & BIP84 defined different BIP32 version bytes so that serialized xpubs start with ypub/zpub/upub/vpub. This led to some incompatibility in the past with wallets and libraries that used (or ...
landabaso's user avatar
  • 248
1 vote
1 answer
421 views

Generating HD Wallet Addresses in Java Using Bitcoinj

Is there some method that can be used to get the address, private and public key for any type of supported coin in a HD wallet? I can correctly generate these for Ethereum, which I verified on https://...
Bob Marshall's user avatar
1 vote
1 answer
251 views

developing hd wallet using bip32 and bip 39

I'm developing a HD wallet using C#. I want to use this wallet for multiple blockchains like bitcoin, ethereum, dogecoin etc... I've read that I should use bip32 for my wallet. i know what's bip32 but ...
amir's user avatar
  • 11
1 vote
0 answers
142 views

Should I use one `hsm_secret` for both the mainnet and the testnet?

When I launch lightningd it generates hsm_secret in ~/.lightning/bitcoin whereas launching lightningd with network=testnet generates hsm_secret in ~/.lightning/testnet. These two files seem to be ...
John Smith's user avatar
1 vote
0 answers
111 views

Deriving children of a 2-of-3 multisig address with 3 xpubs as the starting point

I want to derive the children of a HD Multisig address using each of the xpubs following BitGo specs, currently, I have 3 xpubs and can get to the point where I can derive main address very similar to ...
Not My Real Name's user avatar
1 vote
2 answers
565 views

Storing entire seed from bip39 mnemonic using WIF

I'm using the bitcoinjs collection of libraries, specifically https://github.com/bitcoinjs/wif, https://github.com/bitcoinjs/bip32 and https://github.com/bitcoinjs/bip39 with nodejs. I have a mnemonic ...
Infinite Recursion's user avatar
1 vote
0 answers
113 views

Java bip32 library

I'm looking for java library that will cover bip32 address derivation (xpub to P2PKH, P2SH, P2WSH, P2WPKH, P2SH-P2WPKH). There seem to be a lot of libraries covering P2PKH, but not much else (like ...
Tony Sanak's user avatar
  • 1,689
1 vote
0 answers
227 views

Why bother with 'account' in derivation path?

After lots of wallet testing, I'm thinking that only account level 0 should be used. Especially, when you consider restoring a wallet from the seed phrase. m / purpose' / coin_type' / account' / ...
Donn Lee's user avatar
  • 143
1 vote
0 answers
79 views

Generating HD wallet seed phrase

got a new hardware wallet and thinking of using my own set of bip39 words instead of wallet generated one, combined with a passphrase.
Anand Kumar's user avatar
1 vote
0 answers
52 views

How to store hd wallet seed in production server

I've developed a cryptocurrency payment gateway, which is a web application that generates new addresses for users, I've developed a HD wallet as a hot wallet for my application, and all addresses for ...
farzin fattahi's user avatar
1 vote
0 answers
56 views

How to calculate and spend funds received from derived addresses

Assume I have a xpub for path m/44'/0'/0' and I generate receive addresses from it like m/44'/0'/0'/1 to m/44'/0'/0'/n where n could get really large as time passes. My question is: Where does these ...
Ali rezvani's user avatar
1 vote
0 answers
1k views

How to get the compressed WIF of my key?

I'm a trying to understand the different encoding on the private keys. What format is used by the iancoleman validator and why? How can I reproduce it? All my Data is valid. According to the bitcoin ...
MadeInDreams's user avatar
1 vote
2 answers
260 views

Working Implementations of BIP85

Can anyone point me to working implementations of BIP85? The only one I'm aware of is the Coldcard Wallet implementation.
KiSBitcoin's user avatar
1 vote
0 answers
280 views

How are the prefixes for EXT_PUBLIC_KEY and EXT_PRIVATE_KEY derived?

I want to know how the prefixes for EXT_PUBLIC_KEY and EXT_PRIVATE_KEY are derived. For example in bitcoin you have: base58Prefixes[PUBKEY_ADDRESS] = std::vector<unsigned char>(1,0); ...
MisterSir's user avatar
1 vote
0 answers
138 views

Does Electrum reveal a wallets public key to Electrum Servers?

When Electrum Bitcoin wallet queries a random Electrum Server does it send the public key to the server or does it send a batch of addresses to check? For instance, after setting up Electrum Personal ...
bar17's user avatar
  • 51
1 vote
0 answers
161 views

Bitcoin core read-only

I have system where users can generate addresses and bring some coins, and get bonuses after. I want to make my core read-only. For this I have a second bitcoin core which have not connected to ...
Yur Gasparyan's user avatar
1 vote
0 answers
46 views

Lightning Network: are all keys pre-generated in the base row of the merkle tree?

From the whitepaper, page 41: Keys are generated in a merkle tree and are very deep within the tree. For instance, Alice pre-generates one million keys, each key being a child of the previous ...
Paul Razvan Berg's user avatar
1 vote
0 answers
82 views

How to list non-HD addresses in bitcoin core?

Let's say I imported some private keys, how do I distinguish between those and addresses generated from the HD master key?
Freek's user avatar
  • 121
1 vote
0 answers
346 views

Creating HD wallets with BouncyCastle in C#?

I'm trying to write a class that can be used to generate public/private key pairs for bitcoin (and any of its 'clones'), I found some code elsewhere that uses BouncyCastle to generate keys, here's the ...
Alex Ashmore's user avatar
1 vote
0 answers
2k views

How to dump all private key from wallet.dat (walletversion > 130000)?

I tried to use pywallet and it can't dump all of the wallet's private keys. When I send 10 transactions & decode raw transactions, I will get 10 new addresses, but I can't dump all of the private ...
JokerCatz's user avatar
1 vote
0 answers
206 views

HD P2SH Wallets Compatibility with P2WPKH

Are BIP32 Hierarchal Deterministic compatible with P2SH addresses? Not as multisig but instead for the new P2WPKH?
m1xolyd1an's user avatar
  • 5,626
1 vote
0 answers
496 views

I forgot the index of my BIP32 key

I had chosen at random an index for storing some bitcoins. My key derivation path is Bip32 m/0h/1 How would I go about generating all 2 billion keys and check which one has the funds I stored? The ...
xordaniel's user avatar
1 vote
1 answer
3k views

Create addresses in bulk; and check balance

I am new to Bitcoin; our company wants to use bitcoin for payments. We need to create a address for each transaction. so we need to create many public address. First, I need to generate many public ...
Osiris's user avatar
  • 11
0 votes
0 answers
33 views

Understanding signrawtransactionwithwallet and the Transaction Signing Process

I would like to understand all the advantages of a descriptor wallet. I comprehend that the wallet safeguards the user by not exposing the private key. However, when I use bitcoin-cli listdescriptors ...
monkeyUser's user avatar
0 votes
0 answers
31 views

An efficient algorithm for multi-address transactions in a deterministic wallet

I am developing my Bitcoin wallet (testnet) on Python using the Cryptos library. I started integrating support for deterministic wallets and mnemonic words. Now I have enabled users to generate ...
Xemi's user avatar
  • 1
0 votes
0 answers
22 views

Can I use 2 individual private keys to spend from my Bip32 HD 2 or 2 multisig?

Example keys are fake: If I build a 2 of 2 in Sparrow or any Bip32 Determ wallet, with P2WSH native segwit, and ONLY send funds to the very FIRST receiving address: m/48'/0'/0'/2'/0/0: ...
George's user avatar
  • 1
0 votes
0 answers
36 views

Is it fair to say that a derived unhardened child key should be used when it is desirable to express a public relation between signers?

I'm trying to consider cases of using derived unhardened child keys. My understanding is that this type of key within a tree can be created without the master extended private key i.e. can be created ...
Nicholas Sandomeno's user avatar
0 votes
1 answer
760 views

Does the used standard (BIP44, BIP49, BIP84) define the type of addresses used?

I have a few questions regarding wallets and BIP44/49/89 standards. In many places I found that BIP44 is used for traditional addresses (P2PKH) and that the path is m/44'/.... Also, if we want another ...
dassd's user avatar
  • 1,049
0 votes
0 answers
37 views

Difference in security of key generation for Armory Wallet vs BIP32

I have been studying Armory’s key derivation path vs BIP 32 (thanks Pieter!) and am trying to determine if there is any increased security with BIP 32 or strictly convenience gains. If the entropy ...
Rex Everything's user avatar
0 votes
0 answers
73 views

Master Node(BIP32 Root Key) to xpriv and xpub

I struggle to make a python script that can make xpriv and xpub (extended public and private key) from the Master Node (BIP32 Root Key). I've derived the Master Node from the BIP39 seed with ...
Peder Rustad's user avatar
0 votes
1 answer
80 views

How to implement stake.com model of deposit & withdraw flow for my crypto poker casino?

In stake.com for each user they generate separate bech32 address for deposit & displays the deposited amount as balance in top of the navigation bar. Similarly for withdraw they just ask for the ...
Kimi Raikkonen 9790's user avatar
0 votes
1 answer
571 views

get extended public key from extended private key in python

Can anyone tell me how I can get the extended public key from an extended private key in python. I know that I need to get the public key from the private key and that the public key + chain key = ...
Julian's user avatar
  • 13
0 votes
0 answers
256 views

How are crypto wallets derived? Specifically the BIP32 Root key

I realize this is a very broad question. I'm not getting helpful resources from anywhere. White papers don't really explain the code, YouTube videos are vague or abstract, demonstration sites don't ...
SquishyRhode's user avatar