Skip to main content

Questions tagged [xpub]

An "extended public key" can be used to generate additional public keys or sequences of public keys that all correspond to a single master private key. This scheme permits a counterparty or online device to derive many unique output scripts without having access to the private key material. It is a concept related to the "hierarchical deterministic wallet" scheme defined in BIP32. On mainnet, extended public keys use the prefix `xpub` in Base58 encoding.

Filter by
Sorted by
Tagged with
8 votes
2 answers
318 views

How to accept donation correctly?

Imagine a web page that wants to accept Bitcoin donations. A naive approach is to provide a single address on the page and that's it. The problem here is that the address is known to everyone and if ...
Wapac's user avatar
  • 1,074
8 votes
1 answer
744 views

Is it possible to use BitGo's wallet with other software (Electrum or else), what is the used derivation path?

BitGo wallets are based on a 2-of-3 multi-signature, the end user have access to: - Public key (xpub) of the 3rd signer (as the main wallet xpub) - Native Segwit (Bech32), bc1... addresses to receive ...
intika's user avatar
  • 81
6 votes
2 answers
854 views

XPRIV/XPUB type for P2TR

As far as I understand, there is a standard that describes what address types an extended private key or extended public key is intended to derive and it works as such: xpriv/xpub => Legacy ...
Dalit Sairio's user avatar
6 votes
1 answer
4k views

What makes an extended public or private key?

I was under the impression that an extended public key was comprised of the public key + chain code, and I'm unfamiliar with what comprises the extended private key. However this does not seem to be ...
arshbot's user avatar
  • 1,788
6 votes
1 answer
144 views

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

Consider these descriptors: 1: pk(xpub68Enqrw9EMhovqR93YKMGJ67JiNqVkMxggjzJY3ijcJmFv4TSBqUXg94GXN4UCEop1MAmUUucDzUphakwFQy8Da8ENoiz7cBRA2P11GeKVU)#rrz9d6nw 2: pk([b3d53e5f]...
torkel's user avatar
  • 466
4 votes
3 answers
5k views

XPUB, YPUB, ZPUB Converter Tools

I was wondering if there are any good X,Y,Zpub converter tools that any of you are aware of. For instance, a tool that could convert an Xpub into the equivalent Zpub. I was inspired to ask this ...
Jeremy Nau's user avatar
4 votes
1 answer
4k views

Converting xpub key to core format

I am experiencing some major issues which I honestly can't understand. When I am generating a wallet from Electrum the public key looks like this: ...
L. Mark's user avatar
  • 51
4 votes
2 answers
2k views

Derive Segwit Addresses From xPub or zPub using PYTHON

Summary I'm pulling my hair out trying to understand a couple of concepts. I would like to use a Segwit wallet in my Ledger Nano S to derive unhardened(?) child public keys (and thus segwit addresses) ...
mike-a's user avatar
  • 55
3 votes
2 answers
123 views

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

In book titled "Mastering bitcoin" 3th edition, on page 114, there is a sentence as below. Gabriel’s website does not contain any private keys and therefore any hack of it can only steal the ...
fa william's user avatar
3 votes
1 answer
92 views

Python Script not working / From Xpub to everything

I made a small webapplication to keep track of my wallets. So I want to grab everything i have, using my xpub. Looping through every adress. On the Internet I could find diffrent scripts, but I could ...
donbolli's user avatar
3 votes
1 answer
292 views

Can 2-of-3 multisig funds be recovered without one of the xpubs?

In a 2-of-3 multisig, the address list is derived from the combination of the three xpub keys. What happens if you lose one of the keys and its xpub? Technically, you'd be able to sign transactions. ...
Oliver Offing's user avatar
3 votes
0 answers
47 views

I know `xpub`, but what are `ypub` and `zpub`? [duplicate]

I am familiar with the concept of extended pubkeys. However, I sometimes see mention of "ypub" and "zpub". Are they related to xpubs? If so, what is the difference? How are ypubs ...
Murch's user avatar
  • 76k
3 votes
0 answers
96 views

What is the difference between singlesig and multisig xpubs?

When exporting the xpub from my SeedSigner, I'm asked whether to export the "singlesig xpub" or "multisig xpub." I understand the use cases for each but from a technical standpoint,...
Oliver Offing's user avatar
3 votes
2 answers
871 views

How to generate btc addresses from XPUB?

I have an xpub key and I'd like to generate the sequence of btc addresses in PHP based on the index. Is there a way to do that?
warcode360's user avatar
2 votes
3 answers
1k views

Best way to find list of UTXO related to xpub

Apparently the way to find a list of UTXO related to an xpub is to derive all addresses from the master private key and query a node with each and every one of them. It is possible to generate ...
RooSoft's user avatar
  • 157
2 votes
1 answer
212 views

Export Xpubkey from Bitcoin Core

How do I export my HD wallet's Xpubkey in Bitcoin Core? Do I construct it using the value of "hdseedid" returned by getwalletinfo?
Geremia's user avatar
  • 4,704
2 votes
1 answer
333 views

What's the difference between xpub and bpub?

I've seen extended public keys such as the one below xpub661MyMwAqRbcFLCsW67CH9AgprkK2MbeLbmdMiBRWb1Wamm6GjGhTFQChvPmwQGQh78MMd8Eu7CLJ7FEuwhsomD66XC74VnfgHdEx1NFSKL But now I've seen a bpub ...
arshbot's user avatar
  • 1,788
2 votes
1 answer
157 views

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

I'm generating new addresses for every payment I receive, but what happen when I transfer the bitcoins from my wallet to another address? is my xPub exposed when doing that (maybe to the bitcoin node?)...
Enrique's user avatar
  • 301
2 votes
1 answer
97 views

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

I have a raw 2of3 multisig transaction. In this transaction, one co-signer already signed. The signature is for only one input. ...
Sunny's user avatar
  • 147
2 votes
2 answers
424 views

Public Keys Prefixes and Derivation Paths

When importing an zpub, for example, to a wallet, does the wallet understand it should recreate a set of addresses using the derivation path "m/84'/0'/0'" and the script type "p2wpkh&...
le0's user avatar
  • 187
2 votes
1 answer
998 views

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

I'd like to add a master public key (any of xpub/zpub/ypub https://support.samourai.io/article/49-xpub-s-ypub-s-zpub-s) for tracking purposes to Sentinel watch-only wallet https://samouraiwallet.com/...
Patryk's user avatar
  • 131
2 votes
1 answer
1k 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? ...
Kyle Graham's user avatar
2 votes
1 answer
403 views

Need Help Deriving Extended Private Key from Bitcoin Root Extended Public Key and Non-Hardened Extended Private Key

I am currently working on a challenge that involves deriving a non-hardened extended private key for a specific search path in Bitcoin. The challenge provides the following information: Bitcoin root ...
Ankit Tiwari's user avatar
2 votes
1 answer
98 views

Zpub vs xpub not matching between seedsigner and sparrow?

Generated a multisig xpub via Seedsigner. Loaded this to sparrow via camera-reading of seedsigner's QR code. Sparrow & Seedsigner fingerprints match, as do derivation paths, but Seedsigner ...
Runeaway3's user avatar
  • 329
2 votes
1 answer
152 views

Does a set of private keys have a different XPUB and ZPUB for single signature and multisig?

I am experimenting with multisig wallets using Sparrow. I have two Nano Ledger hardware wallets each set up for single signature with different private keys. I used them to create a 2 of 2 multisig ...
Guru Josh's user avatar
  • 171
2 votes
1 answer
385 views

What's the point of hardened derivation when we can achieve the same effect using non-hardened derivation with a secret parent chain code?

We can use xpub (extended public key) if we want to generate a new public key (and further the address) on some insecure website for each new order without knowing the private key. We'll do this by ...
dassd's user avatar
  • 1,099
2 votes
1 answer
2k views

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 imported a segwit xpub6-key in Mycelium as a watch only address. It only shows address starting with 1 instead of 3, which makes sense. I retrieved a small amount on the legacy address and it shows ...
Letatcest's user avatar
2 votes
2 answers
10k views

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

I have a need to generate a new extended public key (xpub). Examples: xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz ...
toddmo's user avatar
  • 774
2 votes
2 answers
904 views

What options do I have to avoid API gap limit? I am using xpub keys

I am building a app, and the design is, the "welcome page" has a qr code allowing the user to purchase a single-use of the app. Blockchain.info conveniently allows you to use xpub to generate ...
patrick's user avatar
  • 233
2 votes
1 answer
3k views

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?
Kyle Graham's user avatar
2 votes
4 answers
2k views

Is there a Bitcoin Cash explorer that supports Xpub addresses? [closed]

As the title says... I've been unable to find a block explorer that supports Xpub for Bitcoin Cash(BCH). Does anyone know of any? In particular and preferably, one that will allow for fetching via GET ...
JVC's user avatar
  • 319
2 votes
1 answer
304 views

How to monitor specific derived addresses from xpub

I've exported my xpub from bluewallet and generated a few derived addresses from it using invoice numbers as derivation indexes. Then I sent a few sats to one of those address as a test. As I'm new ...
English Learner's user avatar
2 votes
1 answer
113 views

P2SH address as a product of public keys

Assuming the multisig 2 of 3, if I do have extended public keys (xpub) for all 3 cosigners (with proper derivations), can I somewhat get the result address (P2SH)? How to calculate the "script&...
Tony Sanak's user avatar
  • 1,699
2 votes
1 answer
261 views

XPub to YPub Converter (python) - Last digits wrong

The code below is generating an YPub from XPub with the last 6 digits wrong. How can I verify what's happening and fix this error? e.g.: It should be ...
le0's user avatar
  • 187
2 votes
1 answer
481 views

Electrum 2FA Wallet - Deriving the Third XPub

I'm working on a project which requires me to take an Electrum mnemonic, determine its type and derive the corresponding addresses for that wallet. I found lots of information on how to determine the ...
Tadej Gašparovič's user avatar
2 votes
0 answers
41 views

Receiving funds in multisig - is it enough to confirm the receive address on every signing device?

If I confirm the receive address displayed in my software wallet matches on EVERY signing device in my multisig setup, can I be confident that any funds sent to that address belong to an address I ...
chaulmianmints's user avatar
2 votes
1 answer
105 views

How to actually handle the xPub gap limit when receiving Bitcoin deposits?

I've read the other questions involving this, including How to solve Blockchain 20 address gap-limit problem? and Blockchain gap limit which don't actually remedy the issue in a practical sense, only ...
Ral's user avatar
  • 123
2 votes
0 answers
200 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.
user49396's user avatar
  • 245
1 vote
1 answer
884 views

What is the typical size for an extended public key?

What is the typical bytesize range for an extended public key? An extended private key?
arshbot's user avatar
  • 1,788
1 vote
2 answers
397 views

Is multisig wallet simply a combination of many singlesig wallets?

I’m trying to create a multisig wallet for the first time. My pre-understanding is that multisig wallet is simply a combination of many singlesig address. So for example I have 3 existing singlesig ...
bbnn's user avatar
  • 247
1 vote
1 answer
549 views

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

After reading Chptr 5, Wallets, from the Bitcoin Book, I have some questions: So I understand that the leak of an xpub+child priv key = compromised wallet. 1)How compromised is the wallet? Just from ...
Tasi Tele's user avatar
1 vote
1 answer
301 views

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

I heard Michael Flaxman say that if an attacker obtains your xpub key as well as any one of your child private keys, they can calculate your master private key? Why is this not a huge deal? Where are ...
chaulmianmints's user avatar
1 vote
1 answer
1k views

Create multisignature wallet from xpub keys in bitcoin core

I can create Multisignature wallet electrum with 2 xpub keys. How can I create bitcoin core to do that? Standart use; Add a multisig address from 2 addresses bitcoin-cli addmultisigaddress 2 "[\"...
Saim Neftci's user avatar
1 vote
1 answer
193 views

How might you detect if two extended public keys have the same root private key?

Say I derive three extended public keys1 (normal mode): Parent: Pubkey: 035f743ee7d73d27e8c80f6b2458e6d4e2a45f3d7dd35c4e4d84ff3d939d09f40c Chaincode ...
Lee's user avatar
  • 877
1 vote
1 answer
29 views

What is the "extended private masterkey" line of a dumpwallet file?

What is the "extended private masterkey" in a dumpwallet file? It begins with xprv.
Geremia's user avatar
  • 4,704
1 vote
1 answer
85 views

Why doesn't Casa use hardened derivation?

I've noticed that Casa uses non-hardened derivation paths for both their key and my HW keys. The path is the following m/49/0/1. Does anyone have an idea of why it's the case? I mean, the risk of ...
beefgroin's user avatar
1 vote
1 answer
157 views

If Multisig Xpub is compromised, but not the seeds or wallets

I have a multisig set up. My seeds and hardware wallets are secure. However, what would happen if someone got a hold of my Xpub file only? Am I correct they could view my holdings and transactions, ...
user135120's user avatar
1 vote
1 answer
738 views

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

I'm customizing https://coinb.in/ wallet. var compressed = coinjs.compressed; coinjs.compressed = true; var coin = coinjs.newKeys(); // keys are changing... var sw = coinjs....
Jozef Pintér's user avatar
1 vote
1 answer
471 views

Regex for validating xpubs

I am wondering if someone can help me with regex for validating all types xpubs like: xpub (mainnet P2PKH or P2SH) ypub (mainnet P2WPKH in P2SH) Ypub (mainnet P2WSH in P2SH) zpub (mainnet P2WPKH) ...
Dan's user avatar
  • 27
1 vote
1 answer
512 views

Could be possible to get the Xpub from a Bitcoin Core wallet using RPC commands?

I know in the Bitcoin Core wallet there is no easy way to extract the xpub from a wallet, but maybe with the latest changes that have been made to the core (such as the exit descriptors), there are ...
decentralized.b's user avatar