Skip to main content
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 ...
Ava Chow's user avatar
  • 71.5k
13 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)...
Ava Chow's user avatar
  • 71.5k
8 votes

XPRIV/XPUB type for P2TR

The concept of an xpub originates from BIP32, where it denotes an extended public key, from which multiple child keys can be derived. At the time of BIP32, there was really only one address type ...
Pieter Wuille's user avatar
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
  • 17.2k
7 votes
Accepted

Is there any point in including XPUB fingerprints in wallet descriptors?

The fingerprint (usually together with the full derivation path for that key, which gives the full key origin information) only helps to identify the origin of a certain key. It does not affect the ...
salvatoshi'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
  • 17.2k
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.
Ava Chow's user avatar
  • 71.5k
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,428
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,666
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
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
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,709
4 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 ...
Ava Chow's user avatar
  • 71.5k
4 votes
Accepted

How can a hacker steal the funds received in the future when there is only an xpub on the server?

For websites selling goods for bitcoin it is a common practice to use xPub to derive a new address for each customer. This has two benefits 1) using a fresh address protects the merchants privacy as ...
Juha Siivikko'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 ...
Ava Chow's user avatar
  • 71.5k
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,579
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 ...
Ava Chow's user avatar
  • 71.5k
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.
Ava Chow's user avatar
  • 71.5k
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 ...
Ava Chow's user avatar
  • 71.5k
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
  • 2,017
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,666
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 ...
Ava Chow's user avatar
  • 71.5k
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
  • 18.3k
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.
Ava Chow's user avatar
  • 71.5k
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.9k
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

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