Questions tagged [xpub]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
75 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 ...
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 ...
0 votes
1 answer
44 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....
6 votes
2 answers
768 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 ...
3 votes
2 answers
826 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?
-1 votes
1 answer
76 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 '...
6 votes
1 answer
113 views

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

Consider these descriptors: 1: pk(xpub68Enqrw9EMhovqR93YKMGJ67JiNqVkMxggjzJY3ijcJmFv4TSBqUXg94GXN4UCEop1MAmUUucDzUphakwFQy8Da8ENoiz7cBRA2P11GeKVU)#rrz9d6nw 2: pk([b3d53e5f]...
-1 votes
1 answer
931 views

How can I generate public address from an xpub key in Java?

I have an xpub key with which I want to generate all addresses which have been used or will be used and then find out the keys which have balance. Here's a sample xpubkey with balance- ...
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 ...
2 votes
1 answer
324 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 ...
0 votes
1 answer
593 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 ...
2 votes
1 answer
47 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 ...
3 votes
1 answer
86 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 ...
0 votes
1 answer
225 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. ...
1 vote
1 answer
829 views

HD Wallets, XPUB and child private key leaks

So some generalisations on xpubs and current wallet providers. Ledger and Trezor wallets can create xpubs which can show all transactions of a wallet When a passphrase is added, this counts as a new ...
0 votes
0 answers
33 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 ...
2 votes
1 answer
123 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 ...
1 vote
1 answer
117 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 ...
0 votes
0 answers
36 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 ...
0 votes
0 answers
20 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: ...
2 votes
1 answer
300 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 ...
0 votes
0 answers
75 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 ...
0 votes
0 answers
49 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 "...
2 votes
0 answers
39 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 ...
1 vote
1 answer
278 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 ...
3 votes
0 answers
85 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,...
3 votes
1 answer
226 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. ...
1 vote
1 answer
235 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, ...
-2 votes
2 answers
367 views

Looking for JS/Node.js code example to sign a transaction (with multiple UTXOs) with only the extended private key

Is there any Javascript code out there or examples on how to sign a transaction by using the extended-private-key? What I am essentially looking for is code that will help derive the private key, ...
0 votes
2 answers
177 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 ...
1 vote
1 answer
257 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 ...
0 votes
1 answer
40 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 ...
0 votes
0 answers
67 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 ...
0 votes
2 answers
629 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 ...
1 vote
1 answer
80 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 ...
1 vote
1 answer
127 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, ...
2 votes
1 answer
100 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&...
1 vote
0 answers
108 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 ...
0 votes
1 answer
292 views

What's going to happen if someone has access to my Bip32 root key?

Can my bitcoin get stolen if someone else has access to my Bip32 root key?
2 votes
4 answers
1k 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 ...
1 vote
1 answer
559 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: ...
1 vote
0 answers
253 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 ...
1 vote
1 answer
623 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....
1 vote
0 answers
368 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-...
2 votes
1 answer
254 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 ...
0 votes
1 answer
167 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 ...
1 vote
1 answer
435 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) ...
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 ...
1 vote
2 answers
2k views

How to see the entire history of my Ledger wallet?

I followed the instructions from this Reddit post on how to find my xpub address and tapped the wrench icon button and then "Detailed logs" in Ledger Live. The problem is that this xpub value works ...
8 votes
2 answers
316 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 ...