Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [xpub]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
171 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
  • 833
1 vote
1 answer
21 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,650
3 votes
2 answers
114 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
-1 votes
1 answer
204 views

deriving the master public key and the btc address from seed phrase of electrum wallet

I am searching for an exact python code that can take a standard wallet seed as input and output the the root key or xpub master public key. I had tried several codes but none of them gave me the '...
he lo's user avatar
  • 3
6 votes
1 answer
137 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
  • 446
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
  • 75.7k
0 votes
1 answer
73 views

Meaning of xPub in SegWit wallet on blockchain.com and their legacy-type addresses

According to my understanding, an xPub of a Legacy sub-wallet should begin with xpub... and of a SegWit sub-wallet with zpub.... And the addresses begin with 1 and bc1 respectively. But on blockchain....
JoZeff's user avatar
  • 9
2 votes
1 answer
378 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
94 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
0 votes
0 answers
38 views

Getting everything from an xpub

I wrote a small Web Application to display data to the user. I want a crawler in the background, fetching all the data (transaction etc) on all addresses. All the user enters is his xpub. I know this ...
donbolli's user avatar
3 votes
1 answer
90 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
0 votes
0 answers
37 views

Is it fair to say that a derived unhardened child key should be used when it is desirable to express a public relation between signers?

I'm trying to consider cases of using derived unhardened child keys. My understanding is that this type of key within a tree can be created without the master extended private key i.e. can be created ...
Nicholas Sandomeno's user avatar
1 vote
1 answer
170 views

Segwit Taproot xPub switchup

I'm hoping someone can help me out here. I added a new wallet to my BTCPayServer, but I did not add "-[taproot]" to the end of the xPub. I assume that it then was perceived as a Segwit ...
Buster Mønster's user avatar
2 votes
1 answer
148 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
0 votes
0 answers
21 views

Question About Xpub WRT jb55's Github Example

First of, thanks for jb55's wonderful tool for making dumping a c-lighting key easy. However, this is not the point of this post. What i am here to ask is if you look at his example here: ...
Jim Quick's user avatar
2 votes
1 answer
362 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
0 votes
0 answers
100 views

Master Node(BIP32 Root Key) to xpriv and xpub

I struggle to make a python script that can make xpriv and xpub (extended public and private key) from the Master Node (BIP32 Root Key). I've derived the Master Node from the BIP39 seed with ...
Peder Rustad's user avatar
0 votes
0 answers
56 views

accssing funds after converting zpub to ypub

Sorry for my bad English first of all, I'm using ltc but didn't find a litecoin forum, however, my issue apply to btc situation as well, and very new to this. I have a wallet in electrum "...
user143304'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
3 votes
0 answers
94 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
1 answer
284 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
0 votes
2 answers
212 views

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

Scenario: (2 of 3 multisig) one of the hardware wallets is running malware and uses an attackers xpub instead of the one derived from the recovery phrase. This swapped xpub is reported to all the ...
chaulmianmints's user avatar
1 vote
1 answer
299 views

Can 2 of 2 multisig funds be recovered without the xpubs

Background: I read that in a 2 of 3 setup, all funds would be considered lost in the event that even a single xpub was completely lost. if you can no longer derive the public keys of all cosigners, ...
chaulmianmints's user avatar
1 vote
1 answer
293 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
0 votes
1 answer
41 views

Are fees smaller to transact to addresses generated from a zpub master public keys compared to xpub?

Will it affect the fees in any way when one sends money to an address generated from zpub master public key compared the xpub? What might also be part of this question is, understanding whether it is ...
Meglio's user avatar
  • 289
0 votes
0 answers
78 views

bitcoin core generate xpub (not hardened) from pubkey

I am a vendor in a marketplace that accepts bitcoin. In bitcoin core that I run, I retrieved pubkey of my wallet by running getaddressinfo. Now, I need to generate an xpub key and pass it on to the ...
Meglio's user avatar
  • 289
0 votes
2 answers
913 views

Access BTC balance using xpub key

I am using the exodus wallet and I exported the xpub key because I used it for a shop to receive payments using btc. Someone bought my product and sent btc to a address generated with my xpub key but ...
bana28's user avatar
  • 1
1 vote
1 answer
83 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
152 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
0 answers
127 views

CLI Tool or API for btc address generation given a xpub

I'd like to script a short tool on the commandline. Therefore I need all used addresses of my wallets derived from a given xpubs. Don't like to implement it by myself. Is there an already implemented ...
steff123's user avatar
  • 153
1 vote
1 answer
307 views

Is there a way to get all addresses from an xpub key?

Hi I am trying to implement a feature where a user can enter their xpub key and get a list of their transactions and their balance. To do this I think I need to get all the wallet addresses from the ...
user136352's user avatar
1 vote
1 answer
663 views

Generate Public Keys from Extended Public Key in python

I want to get a normal Public Key from an extended Public Key in Python. Actually I want to get the same result as here in the Extended Public Key Children section. I know I need this structure: ...
Julian's user avatar
  • 13
1 vote
0 answers
304 views

nunchuk.io - "To create new wallets, additional XPUBs from the key are needed."

I'm trying to start using Nunchuk (nunchuk.io), so I created 3 software keys on 3 different devices for my account, and then was able to create a wallet using those 3 keys as signers. But when I try ...
pbotas's user avatar
  • 111
1 vote
2 answers
2k views

How to find xPub from wallet address

I'm trying to find a master public key (I believe this is the xPub) of an electrum wallet I no longer have access to. This is ok, I've moved all BTC from there. The thing is, I need the public key to ...
b.lyte's user avatar
  • 111
1 vote
1 answer
706 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
0 answers
414 views

Solution for P2SH non-standard derivation paths

Creating P2SH (Nested Segwit) addresses from an imported BECH32 (Native Segwit) XPUB, when running Bitcoin Core (pre-2020 software) wallet (as watch-only, with private keys disabled) can lead to non-...
DesertTraveller's user avatar
0 votes
1 answer
242 views

I convert My Xpub To Youb address And Now can't Recover Fund

I convert my Blochchain.com Wallet Legacy xpub to Ypub Using This website: [https://www.blockonomics.co/views/segwit_xpub_convert.html] But Now I can't recover My Fund It still Stack In Given address. ...
Fahm Hasan's user avatar
2 votes
1 answer
283 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
0 votes
1 answer
173 views

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

If you would like to generate a taproot wallet with your deep cold wallet seed, would you need to access the wallet to generate it? Say if the seed/master pubkey is already used for native or nested ...
Bertram Lund's user avatar
1 vote
1 answer
466 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
6 votes
2 answers
838 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
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
1 vote
1 answer
365 views

Does Ledger Nano S Have an xPub or a zPub for Bitcoin wallets?

{ "xpub": "tpub-big-long-key-that-starts-with-tpub", "index": 1, "freshAddressPath": "84'/1'/1'/0/0", "id": "libcore:1:...
mike-a's user avatar
  • 55
1 vote
2 answers
392 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
0 answers
124 views

Java bip32 library

I'm looking for java library that will cover bip32 address derivation (xpub to P2PKH, P2SH, P2WSH, P2WPKH, P2SH-P2WPKH). There seem to be a lot of libraries covering P2PKH, but not much else (like ...
Tony Sanak's user avatar
  • 1,689
1 vote
1 answer
507 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
1 vote
1 answer
538 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
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
2 votes
1 answer
112 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,689
0 votes
1 answer
654 views

Is it ok and safe to import master public key from electrum wallet into bluewallet to be a watch-only wallet?

I want to use my iPhone (Blue wallet) to be the watch-only wallet for my offline wallet generated on electrum. So that I can generate unsigned transaction on the bluewallet and send it back to my ...
bbnn's user avatar
  • 247