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

66 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
4
votes
1answer
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 = '...
3
votes
1answer
265 views

Python library for Multisignature HD wallets

Is there is any python library is available that allow creation of Multisignature HD wallets ?
3
votes
0answers
433 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 ...
2
votes
0answers
40 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,...
2
votes
1answer
176 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 ...
2
votes
3answers
667 views

Search Derivation Path for an Address

Has anyone written an utility or something able to search/identify which Derivation Path an Address belongs? For example, giving a mnemonic like "unaware open elite rabbit grunt spread session ...
2
votes
0answers
69 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,...
2
votes
0answers
27 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#...
2
votes
0answers
42 views

What hierarchical deterministic derivation path is used for FIDO authentication on a Ledger Nano S?

What hierarchical deterministic derivation path is used for FIDO authentication on a Ledger Nano S? Does it ask for a different key each time or is it always the same key? If I connect to Google for ...
2
votes
0answers
247 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 ...
2
votes
0answers
138 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.
2
votes
1answer
521 views

How can I recover last word of BIP-32/39 mnemonic copay second signature multisig wallet

I've got a multisig 2of2 wallet in copay. I've one wallet correct but have lost second wallet and only have 11 of the 12 words of the seed.I'm pretty sure I miss the last one. I've got some of the ...
2
votes
1answer
610 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 ...
1
vote
0answers
50 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 ...
1
vote
0answers
24 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 ...
1
vote
0answers
31 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 ...
1
vote
0answers
79 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' / ...
1
vote
0answers
46 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.
1
vote
0answers
32 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 ...
1
vote
0answers
41 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 ...
1
vote
0answers
420 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 ...
1
vote
0answers
161 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); ...
1
vote
0answers
103 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 ...
1
vote
0answers
117 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 ...
1
vote
0answers
38 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 ...
1
vote
0answers
324 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 ...
1
vote
0answers
74 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?
1
vote
0answers
294 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 ...
1
vote
0answers
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 ...
1
vote
0answers
163 views

HD P2SH Wallets Compatibility with P2WPKH

Are BIP32 Hierarchal Deterministic compatible with P2SH addresses? Not as multisig but instead for the new P2WPKH?
1
vote
0answers
372 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 ...
1
vote
1answer
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 ...
0
votes
0answers
26 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://...
0
votes
0answers
47 views

How to write down an entire Bitcoin Core wallet through text

I have unclear ideas and I write because I would like some good soul to clear them up. I'm looking for a way to be able to recover a wallet created with Bitcoin Core, having only a short sequence of ...
0
votes
1answer
65 views

Can you recover a wallet with only BIP39 seed or BIP32 root key?

Can we access and withdraw BTC if we have bip32 seed and bip32 root key? But we don't have the bip39 passphrase
0
votes
1answer
50 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 ...
0
votes
0answers
18 views

HD Wallet child randomness

for a given extended private or public key, is the expectation/intention that when creating a new child, that it will be unique? Reading https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#...
0
votes
0answers
46 views

HD wallet root seed length

Mastering Bitcoin describes the process of generating the HD wallet seed: "1. Create a random sequence (entropy) of 128 to 256 bits." ... 6. The mnemonic code is the sequence of words. ... 9....
0
votes
0answers
57 views

How does Ed25519 fit in with BIP32/44 HD wallet paths?

From my understanding, BIP39/32/44 all use the secp256k1 elliptic curve standard from Bitcoin. But I noticed that cryptos such as Polkadot and Cardano have their own registered coin type path for ...
0
votes
0answers
149 views

In bip32-utils for bitcoinjs, node.getAddress is not a function

I am trying to run the example code in the bip32-utils taken here (https://github.com/bitcoinjs/bip32-utils) of: const bip39 = require('bip39') const bitcoin = require('bitcoinjs-lib') const ...
0
votes
2answers
73 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 ...
0
votes
0answers
31 views

Signing a Transaction with Master Node for Derived Account

I am trying to learn HD Wallets. For that purpose, I build something on Solana. I've created derived accounts and can sign transactions with their private/public keys. Here is my code: const ...
0
votes
0answers
123 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 ...
0
votes
2answers
164 views

Private Key not recognized by Electrum

I'm in a bit of a pickle :-). I recently discovered I still have a few dollars worth of BTC, which I bought in 2017. I transferred the BTC from Coinbase to my Electrum Wallet (a client, which I no ...
0
votes
0answers
17 views

Adding wallet descriptor in Electrum

Is it possible to add a wallet descriptor in Electrum? I'm trying to make a watch only wallet that can sign transactions from a hardware device. Thanks.
0
votes
0answers
35 views

Consolidating BTC across multiple address but same account

Say a user generates three "linked" addresses (e.g. m/44'/0'/0'/0/0, m/44'/0'/0'/0/1, m/44'/0'/0'/0/2) using an HDWallet and receives 1 BTC to each unique address. For each of the addresses ...
0
votes
1answer
110 views

Verify that WIF corresponds with bip32 extended public key

I have a bip38 encrypted private key that I lost the password to, and I have its corresponding extended public key. I want to brute force passwords as I have an idea of what it might be, but I need to ...
0
votes
0answers
438 views

Mycelium - understanding of keys

Under the Accounts tab in Mycelium, it says that Account 1 "Contains 3 private keys." My understanding is that a public/private key pair is generated for each address type/format (p2sh, ...
0
votes
0answers
39 views

Mycelium - multiple accounts

Are there best practices for when you'd create multiple accounts? What are examples of meaningful names for accounts?
0
votes
1answer
163 views

Import private key in HSM Luna SA

I need some clarification on how keys are imported into a HSM Luna SA. I should import BIP 32 private keys of multisign wallets. There are currently two keys: one for the user and one held by the ...