Stack Exchange Network

Stack Exchange network consists of 174 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 [bip32]

BIP32, or Hierarchical Deterministic Wallets. https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki

2
votes
0answers
21 views

Python library for Multisignature HD wallets

Is there is any python library is available that allow creation of Multisignature HD wallets ?
2
votes
1answer
23 views

Should Account-level in BIP32/BIP44 be Hardened?

Let's say we have an ETH trading exchange where we employ BIP32/BIP44 to generate a unique wallet address for each user. For simplicity, each user uses the same wallet address (unique to each user) ...
2
votes
1answer
77 views

A couple of questions on Schnorr sig

In the BIP by Pieter Wuille it is told that the key prefixed version of Schnorr signature is needed when the scheme is used in combination with BIP32's unhardened derivation. Could someone provide an ...
0
votes
3answers
70 views

What is the advantage of HD Wallets?

I have read man resources and questions about HD Wallets. As pointed out in this question on SO, it won't be possible to send funds of a derived child address using the master private key. In my ...
0
votes
1answer
96 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 ...
1
vote
1answer
81 views

General private/public key generation

Not sure if this is the correct forum to ask, but I couldn't find a general one for all cryptocurrencies I wanted to get an idea on how the whole cold-storage private/public key generation works for ...
0
votes
1answer
39 views

Can I recreate the xpub key if I have multiple public addresses with their corresponding private keys?

Is it possible to recreate the xpub key if I have multiple public addresses with their corresponding private keys? All the keys were created from the same HD wallet. I was hodling and watching my ...
1
vote
1answer
51 views

Is there a list of coins that are bip-32 compatible?

BIP 32 allows me to derive keys based off a root key pair, and all these keys will be on the secp256k1 curve. That means I'll be able to use BIP 32 for other coins that are also based on your curve. ...
0
votes
1answer
79 views

BIP-32 - how can parent extended public key exposed parent extended private key?

The below is the snippet from bip-32. I do not understand under what circumstance would 'parent extended public key' be exposed? In the case of e-commerce a 'child extended public key' is derived from ...
0
votes
0answers
106 views

How to make hd wallet in node.js?

I am trying to make HD wallet such as BTC, ETH and LTC in node.js. Which package are used? I didn't find the correct answer. If anyone know it, please help me. Thanks.
0
votes
1answer
35 views

Is auditing a BIP32 tree only possible if it is non-hardened?

BIP 32 allows you to to implement the auditor use case: Audits: N(m/*) In case an auditor needs full access to the list of incoming and outgoing payments, one can share all account public ...
1
vote
0answers
31 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.
1
vote
1answer
186 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
124 views

Golang how to derive address from bip32's xpubkey?

i'm trying to derive HD address of bitcoin using Golang. I have extended private/public key. The problem is i'm unable to find any library in Golang that can generate/derive address from the xpubkey/...
0
votes
1answer
48 views

Access custom BIP32 paths on trezor

So I really have 2 problems now: I took xpub address for Dash from trezor and used it with blockcypher API to generate addresses with paths like m/0, m/1, etc I sent some money to that addresses and ...
1
vote
0answers
26 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
1answer
462 views

How to generate public and private key pairs from the 12 seed words in python

I basically followed the instructions here How to generate mycelium addresses from the 12 words in python So my code is similar: from bip32utils import BIP32Key from bip32utils import BIP32_HARDEN ...
2
votes
1answer
39 views

How are bip44 coin identifiers assigned?

There is a list of bip44 identifiers for altcoins here. It uses the term registered coin types. My question is, is there anything in code for each coin that the bip44 number is derived from, or this ...
1
vote
2answers
83 views

HD Wallets Difference between a CKDpub and CKDpriv from the path notation

I' m still trying to grasp the conventions used in HD wallets, so I have a couple of questions: What's the difference between CKDpub and CKDpriv from the path notation. What I know is the path just ...
0
votes
1answer
106 views

HD Wallet Child Private Key Derivation Function

I was trying to understand the specs on CKD function from both the bip32 standard and Mastering Bitcoin book, I couldn't understand how a private key is derived from the left side of the extended key. ...
4
votes
1answer
178 views

In HD Wallet recovery how does the wallets know which addresses to recover

I have been reading the BIP32 proposal explaining how HD works but it didn't mention on any point how one wallet in one phone can recover from a simple mnemonic seed. Does it just try all possible ...
0
votes
0answers
80 views

Custom derivation path

Instead of using bip32 or bip44 paths what if I use a custom derivation path, For example: m/0/0/55/1/1/0 I am thinking even if the private key is exposed then can someone guess the derivation path ?...
2
votes
1answer
485 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: ...
0
votes
0answers
24 views

How to get private key from 12-word backup and public key? [duplicate]

It turned out, to one 12-word backup, billion address could belong. It is not always sure app like Copay found all the address contains money. Is it a way to infer the private key from 12-word ...
1
vote
1answer
73 views

BIP32 Neutered function

Can the following be clarified, where I am wrong: The Xpriv can derive a hardened xpriv. It can also derive a non hardened xpriv, which we will use with the neutered function to make it an xpub. ...
0
votes
2answers
82 views

If Two Cryptocurrencies use different curves, Can They be in the same HD Wallet?

I was looking through some code for HD Wallets and I saw that they used curve param.N which is specific for whichever curve is used. Does this mean that when using HD Wallets to derive Private keys, ...
0
votes
1answer
278 views

BIP44 external and internal accounts

Below I may be a bit verbose, so that if my understanding is wrong, it will be glaringly obvious. Consider two external accounts: The external accounts are used to receive bitcoin. When we search ...
2
votes
1answer
124 views

What does 44' mean in BIP44?

After reading BIP44, I saw Purpose is a constant set to 44' (or 0x8000002C) following the BIP43 recommendation. I believe 0x8000002C is 128 as an integer, how does this equate to 44' however? ...
0
votes
1answer
81 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::...
2
votes
1answer
188 views

How Do HD Wallets Keep Track of all accounts?

If a HD Wallet generates 1,000 accounts for example. How would they keep track of all of the account's balances, if someone for example, paid into the 455th account, they would want to update the ...
2
votes
2answers
1k views

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

I have a need to generate a new extended public key (xpub). Examples: xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz ...
0
votes
1answer
145 views

BIP 44 master private key sign tx

I have this Bip44 path implemented m / purpose' / coin_type' / account' / change / address_index Is it possible to use the Master private key to sign all the tx ie. Bitcoin TX, Etherum TX or do I ...
0
votes
1answer
122 views

Electrum 2of2 multisig both cosigners share the same priv key

I set up this wallet on the same machine online. Thinking that was it, it was only until i sent funds to this wallet and tried to spend them that i could only partially sign the transaction. I opened ...
4
votes
2answers
249 views

BIP32 recommends a 256 bit seed. Why do most Bitcoin wallets only use a 128 bit seed?

According to BIP32's "Master key generation" section, "256 bits is advised". See https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki#Master_key_generation Why did BIP32 consider 256 bits ...
0
votes
1answer
116 views

Does BIP44 key derivation path protects private keys derived within same account?

I understand that with Un-hardened parent extended public key child private key This will leads to compromise of parent private key and so all the private keys of siblings BIP44 suggests the path ...
0
votes
1answer
259 views

How many combinations are there from the BIP32 mnemonic list?

As I understand for BIP32. There are 2048 words. 12 words would give you 2048^12 combinations. However, not all combinations are valid because of the checksum, so how do i calculate the actual space?...
0
votes
1answer
98 views

Public Chain Code and MPK

When the Master Private Key and the Master Public Key are generated, can I disclose the chain code as say BIP32? If not, how can is possible verify a child public key with public parameters? This is ...
0
votes
1answer
47 views

Can I retrieve funds in a derived address with a high index?

I sent funds to a derived address, but I didn't know about the gap limit and how the addresses should be used incrementally. I've used a huge value for the index but wallets only check the first few ...
0
votes
0answers
62 views

How to calculate HD wallet balance? [duplicate]

HD wallets can have infinite numbers for addresses derived from them. Recently i discovered that blockchaine.info have an API that return the balance of a specific XPUB I wonder how they do that ? ...
0
votes
1answer
276 views

How can i switch from BIP32 to BIP44 using bitcoinj

i am working on a wallet that is using BIP32 for creating Accounts, addresses, xpub, public keys, transaction and etc. but now i want to switch from BIP32 to BIP 44. how can i do this using bitcoinj i ...
0
votes
1answer
220 views

Can I use root used to create multiple BIP32 addresses, to spend transactions belonging to these multiple BIP32 addresses?

I want to accept BTC from different clients during an ICO, for this, I'm planning to use a combination of BIP32 and BIP39. var bip39 = require("bip39"); var bitcoin = require("bitcoinjs-lib"); var ...
0
votes
0answers
114 views

HD to EC private key in JavaScript

I'm exploring bitcoinjs-lib and the library has been very useful thus far. Is it possible to create a private EC key from a private HD (BIP32) key?
1
vote
1answer
130 views

What is the meaning and application of the apostrophes in derivation paths of BIP32 / BIP44?

Can we please clarify if there is any difference (because apparently some technical documentation explicitly requests to include apostrophes) between a derivation from extended private key (xprv) or ...
1
vote
1answer
328 views

generate HD addresses using publicKey Bip44

I'm just wondering if it's possible to generate HD address using xPub? I tried to create HD address using BitWASP-PHP with the following path: m / purpose' / coin_type' / account' / change / ...
0
votes
0answers
437 views

How do I cash out my Bitcoin Gold from my Bread Wallet?

I tried to extract bitcoin gold out of Bread Wallet. I tried to enter the 12 seed words into Jaxx, but it didn't show any balances, even for BTC. I tried to install the official BTG client, but it ...
0
votes
1answer
336 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 ...
0
votes
1answer
115 views

BIP32 child addresses - anyway to corelate them?

Since BIP32 child keys are derived from a master xpub key, and child addresses are the pubkey hash of the child private keys, so is it possible/anyway to correlate that two address are derived from ...
1
vote
1answer
155 views

Seed recovery strategy

I got locked out of my Ledger Nano S. When setting up the device I was given a 24 words seed passphrase, which I wrote down. The device asked me to verify 3 of the 24 words and my input was valid. It ...
0
votes
0answers
42 views

Accessing funds in derived btc wallets

First time setting up Mycellium gear. I am using android Mycellium wallet on testnet and a mycellium gear gateway which is all working fine. When I make a payment the money goes into a wallet that ...
2
votes
1answer
485 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 = '...