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 ...
user avatar
  • 61.3k
9 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)...
user avatar
  • 61.3k
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.
user avatar
  • 61.3k
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 ...
user avatar
  • 7,060
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 ...
user avatar
5 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 ...
user avatar
  • 16.5k
5 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 ...
user avatar
  • 16.5k
4 votes

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 ...
user avatar
  • 601
4 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/...
user avatar
  • 5,223
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 ...
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 ...
user avatar
  • 61.3k
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 ...
user avatar
  • 61.3k
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.
user avatar
  • 61.3k
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 ...
user avatar
  • 61.3k
3 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 ...
user avatar
  • 2,540
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 ...
user avatar
  • 5,223
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, ...
user avatar
  • 17.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.
user avatar
  • 61.3k
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 ...
user avatar
  • 11.3k
2 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.
user avatar
  • 3,185
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 ...
user avatar
  • 1,584
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 ...
user avatar
2 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
user avatar
  • 1,892
2 votes

How to convert xpub ypub and zpub in Ruby

I'm not sure about ruby, but here's what's happening in practice. Take any xpub: xpub6DBfkACRRWo6B9Fo31Ko6P7M92Yb3rdbuXb81Ls7aDCaZsMr1tyvZWHAHz1exRZuTBspafkPTynwoWL5o3i4WiJX4P3SyGQxNpxQLaUnB2c ...
user avatar
  • 5,223
2 votes

How to accept donation correctly?

Great question! For each anonymous visitor who clicked [Donate]: generate a new, high-entropy URL that is public to access but impossible to guess (additionally, it can expire after some time) derive ...
user avatar
2 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 ...
user avatar
  • 61.3k
2 votes
Accepted

Regex for validating xpubs

The following regex should work for validating that a string starts with one of xpub, ypub, Ypub, zpub, Zpub, tpub, upub, Upub, vpub or Vpub and is followed by 79-108 characters that are one of ...
user avatar
  • 1,992
2 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 ...
user avatar
  • 61.3k
2 votes
Accepted

Generate Random Bitcoin Addresses from my own Extended Public Key with Coinb.in Wallet

Xpubs do not create random addresses. They are part of the Hierarchal Deterministic wallet structure. Coinbin uses his own library or wrapper so it may not work as you expect when trying to hack it. ...
user avatar
  • 5,223

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