Hot answers tagged

13 votes
Accepted

What makes an extended public or private key?

The extended public key contains just a bit more information than the public key and chaincode, but the public key and chaincode are all that matter for key derivation. The rest is just metadata about ...
Andrew Chow's user avatar
  • 68.6k
10 votes
Accepted

XPRIV/XPUB type for P2TR

There is no ypub/zpub similar thing for Taproot. The recommendation is to use xpriv/xpub along with some extra information indicating that the script to create is Taproot, (e.g. with a tr() descriptor)...
Andrew Chow's user avatar
  • 68.6k
7 votes
Accepted

Best way to find list of UTXO related to xpub

The balance checks are cut short based on a gap limit. A gap limit is usually set to 20, and is defined as a consecutive block of addresses with no transactions. Since HD wallets only give out a new ...
Raghav Sood's user avatar
6 votes
Accepted

What's the difference between xpub and bpub?

bpub appears to be the extended private key prefix for the Blockcypher testnet. Bitcoin addresses and private keys usually have a prefix to help differentiate the network/type of key. The original ...
Raghav Sood's user avatar
6 votes
Accepted

What is the typical size for an extended public key?

An extended public or private key is always 78 bytes of data. When Base58 Check encoded, this results in a string that is up to 112 characters in size. The format of the data is defined in BIP 32.
Andrew Chow's user avatar
  • 68.6k
6 votes

Converting xpub key to core format

The electrum public key xpub661MyMwAqRbcG8Zah6TcX3QpP5yJApaXcyLK8CJcZkuYjczivsHxVL5qm9cw8BYLYehgFeddK5WrxhntpcvqJKTVg96dUVL9P7hZ7Kcvqvd is a BIP32 extended public key. This can be used to derive child ...
JBaczuk's user avatar
  • 7,328
6 votes
Accepted

Export Xpubkey from Bitcoin Core

It does not have one. Bitcoin Core uses hardened derivation, so there is no way to compute the addresses it will use externally. Support for that will likely be added in upcoming versions, but ...
Pieter Wuille's user avatar
5 votes

XPUB, YPUB, ZPUB Converter Tools

Jameson Lopp has a tool on his github that performs this function. Paste your xpub into the text box, and select the type you want from the drop-down and click convert. Demo: https://jlopp.github.io/...
m1xolyd1an's user avatar
  • 5,596
4 votes
Accepted

Best script/pseudocode to convert xpriv to xpub?

If you are comfortable with using the command line then libbitcoin-explorer is a great utility for converting your bitcoin HD keys. It even works completely offline. Once you have bx installed, you ...
lastcanal's user avatar
  • 616
4 votes

XPUB, YPUB, ZPUB Converter Tools

There's a command line electrum option convert_xkey. If you're on linux or macosx you can see the documentation for it via electrum help convert_xkey. Alternatively you can use the console tab of ...
Abdussamad's user avatar
  • 2,679
3 votes
Accepted

Create multisignature wallet from xpub keys in bitcoin core

This will be mostly possible in the upcoming Bitcoin Core 0.18 release. First you need to understand that the sequence of such paired multisig addresses (with public keys generated from 2 xpubs in ...
Pieter Wuille's user avatar
3 votes
Accepted

What does 44' mean in BIP44?

I believe 0x8000002C is 128 as an integer ... No, it isn't. First of all, it already is an integer, just represented in hexadecimal. In decimal it is 2147483692. How did you get 128? how does this ...
Andrew Chow's user avatar
  • 68.6k
3 votes
Accepted

How to import an extended public key into bitcoin core 0.16

It's not possible in bitcoin core right now. You can use electrum and import your xpub as a watch-only wallet.
Mike D's user avatar
  • 3,529
3 votes

Can I export a xpub/zpub/ypub key in bitcoin core?

You cannot. Bitcoin Core does not allow you to import master keys nor can you export extended public keys. BItcoin Core does not use extended public keys since it uses hardened derivation which does ...
Andrew Chow's user avatar
  • 68.6k
3 votes

How do we know which co-signer signature is in raw hex in multisig?

The only way to know which signers signed is to verify the signatures against the public keys. Each signature will only verify with one of the pubkeys.
Andrew Chow's user avatar
  • 68.6k
3 votes

is my xPub published when I make a payment? (wallet privacy)

No, the xpub is not published anywhere. Only individual public keys are published and those are permanently stored in the blockchain. There is also no way for someone to figure out the xpub and any ...
Andrew Chow's user avatar
  • 68.6k
3 votes

XPUB, YPUB, ZPUB Converter Tools

Blockonomics has a conversion tool that can convert xpub to ypub or zpub https://www.blockonomics.co/views/segwit_xpub_convert.html
dark knight's user avatar
  • 1,997
3 votes

How exactly can hardened keys work?? (HD Wallets!)

How compromised is the wallet? Just from that leaked child down the tree or?? With unhardened derivation, knowing the parent xpub, a child private key, and the index of the child allows for the ...
Andrew Chow's user avatar
  • 68.6k
3 votes

Is multisig wallet simply a combination of many singlesig wallets?

There seems to be some variation in the question on wallet vs address. In any event a multisig address is simply a script created by m-of-n public keys (not addresses or wallets). When you build a raw ...
m1xolyd1an's user avatar
  • 5,596
3 votes
Accepted

Would you need to access your cold wallet to generate a taproot xpub?

I assume you mean that you have something like a hardware wallet where you have a seed and different kinds of addresses generated using xpubs derived from that seed. Assuming that the xpub will be ...
Andrew Chow's user avatar
  • 68.6k
3 votes
Accepted

Xpriv can be calculated from the xpub + child private key?

Simply put, it does not appear that a generic solution to this problem is possible within the realm of discrete logarithm based cryptography. Solutions exist, but they would require a different type ...
Pieter Wuille's user avatar
3 votes
Accepted

Is multisig less secure than single sig, since only one xpub needs to be swapped by an attacker to lose funds?

since a single malware infected hardware wallet still compromises the entire setup, but now instead of an attack surface of 1 hardware wallet, you now have 3 (from different brands with different ...
Pieter Wuille's user avatar
2 votes

How do I use the XPub to generate the Public addresses

Given the XPub and an address, can I write an algorithm to say whether or not that public key was derived from that XPub and consequently belongs to the same user? [Edit: my terminology was off, ...
chytrik's user avatar
  • 18k
2 votes

Importing an arbitrarily created Master Private key to Bitcoin Core

It is currently not possible to import a master private key into Bitcoin Core.
Andrew Chow's user avatar
  • 68.6k
2 votes
Accepted

I provided my XPUB and YPUB to Trezor support - should I continue to use my Trezor?

XPUB refers to an extended public key, and because it is only a public key, you have not compromised your private keys. Thus it is safe to continue using, yes. You have, on the other hand, compromised ...
meshcollider's user avatar
  • 11.8k
2 votes

Is there an equivalent to the Xpub/Zpub for multisig wallets?

A multi-sig address is a hash of a script that combines multiple separate keys. In other words the purpose of it is to require multiple signatures from multiple keys that are stored (and usually ...
Coding Enthusiast's user avatar
2 votes

Can you retrieve funds send to a legacy address created with a Segwit extended private key imported in Mycelium from a Ledger Nano S?

I actually discovered the answer: The answer is described on Reddit: https://www.reddit.com/r/ledgerwallet/comments/7d39pu/legacy_to_segwit_wallet_transfer_nightmare/ But if that answer would ever ...
Letatcest's user avatar
2 votes

How to calculate the checksum of an extended public key?

it seems like the process to calculate a checksum for an extended key is to decode the base58 string to data, If raw_xpub = version + depth + fingerprint + child + chain + DATA than to make the ...
Tony Sanak's user avatar
  • 1,664
2 votes

Public Keys Prefixes and Derivation Paths

It all depends on the wallet. There is no rule saying they should even accept these strings or know what they correspond to and there is no consensus among wallets. Wallet A could accept zpub and know ...
Coding Enthusiast's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible