Questions tagged [xpub]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
8 votes
1 answer
614 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 ...
  • 81
7 votes
2 answers
294 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 ...
  • 1,034
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,588
5 votes
1 answer
465 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 ...
4 votes
3 answers
3k 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 ...
4 votes
1 answer
3k 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: ...
  • 51
4 votes
2 answers
1k 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) ...
  • 55
2 votes
1 answer
198 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?
  • 4,449
2 votes
1 answer
126 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?)...
  • 301
2 votes
1 answer
82 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. ...
  • 147
2 votes
2 answers
297 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&...
  • 187
2 votes
1 answer
933 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/...
  • 131
2 votes
1 answer
918 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? ...
2 votes
2 answers
8k views

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

I have a need to generate a new extended public key (xpub). Examples: xpub6CUGRUonZSQ4TWtTMmzXdrXDtypWKiKrhko4egpiMZbpiaQL2jkwSB1icqYh2cfDfVxdx4df189oLKnC5fSwqPfgyP3hooxujYzAu3fDVmz ...
  • 774
2 votes
2 answers
870 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 ...
  • 203
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?
2 votes
1 answer
180 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 ...
2 votes
1 answer
71 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,646
2 votes
1 answer
204 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 ...
  • 187
2 votes
1 answer
443 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 ...
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 ...
  • 309
2 votes
1 answer
88 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 ...
  • 123
2 votes
0 answers
175 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.
  • 181
2 votes
2 answers
527 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 vote
3 answers
875 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 ...
  • 127
1 vote
1 answer
701 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?
  • 1,588
1 vote
1 answer
303 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 ...
  • 1,588
1 vote
2 answers
195 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 ...
  • 227
1 vote
1 answer
935 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 "[\"...
1 vote
1 answer
50 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
52 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, ...
1 vote
1 answer
240 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
1 answer
280 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) ...
  • 27
1 vote
1 answer
305 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 ...
1 vote
1 answer
376 views

How to convert xpub ypub and zpub in Ruby

I'm looking to convert a Bitcoin extended public key from one format to another in Ruby. In JS I've found https://github.com/jlopp/xpub-converter/blob/master/js/xpubConvert.js and Python https://...
1 vote
1 answer
416 views

How to calculate the checksum of an extended public key?

Very difficult to find definitive info on this. From what I can find on google and looking at BIP32 it seems like the process to calculate a checksum for an extended key is to decode the base58 ...
  • 476
1 vote
2 answers
1k 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 ...
1 vote
2 answers
1k views

Is there an equivalent to the Xpub/Zpub for multisig wallets?

When I have a typical wallet, I can give my Xpub to someone to generate addresses whenever they need. ("they" here could be an instance of BTCPAY server or some other application that I don't want to ...
  • 221
1 vote
1 answer
413 views

Importing an arbitrarily created Master Private key to Bitcoin Core

I've created a Master Private key (xpriv) on an airgapped machine along with an Master Public key (xpub). Now I'm running Bitcoind on my Ubuntu server and I want to use my newly created keys on a new ...
1 vote
1 answer
334 views

I provided my XPUB and YPUB to Trezor support - should I continue to use my Trezor?

I have a Trezor. In attempting to find out why I have have not received Bitcoin Gold coins Trezor Support asked for my XPUB - I gave it to them along with the YPUB too. Is this safe? Should I move ...
  • 225
1 vote
1 answer
298 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: ...
  • 13
1 vote
1 answer
266 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:...
  • 55
1 vote
1 answer
122 views

Libbitcoin How to generate addresses on demand from xpub?

Well, I am really new to this. Just installed libbitcoin and I am reading trough the wiki and everything. Could someone really quick hint me how to generate addresses whenever I want from xpub that ...
  • 27
1 vote
2 answers
469 views

import multisig wallet into bitcoin core, Vpub keys are not valid. how to?

I'm trying to import an HD multisig wallet created with Electrum into Bitcoin core v0.21.0.0. I managed to do so with the fantastic cryptoadvance.specter server, but I also would like to import it ...
  • 121
1 vote
1 answer
729 views

I need help with an bitcoin open book exam

I am completely new to bitcoin and by extension cryptocurrency, but I am slowly getting my head around certain things. My problem is I am currently doing an open book exam and I am free to use any ...
user avatar
1 vote
1 answer
236 views

How to generate transaction history from all addresses that are part of common xpub/ypub without having the xpub/ypub?

I have 20 addresses generated which are part of a common xpub/ypub. I want to create a combined transaction history of all addresses similar to that of how trezor has the export CSV function. I ...
1 vote
2 answers
250 views

How to use UTXO of xpub derived addresses?

I'm new in Bitcoin, this is something I'm confused with. If we are deriving children, i.e. public keys, from xpub, without private keys, for the purpose of receiving outputs, how are we able to spend ...
  • 111
1 vote
1 answer
547 views

Hardened address generation with BIP44 watch-only wallet with xpub

I am puzzled by the hardened key derivation from a watch-only BIP44 wallet. Let me first explain what I am trying to do. I am implementing a 2-of-3 multisig scheme I am using Bcoin node and wallet ...
  • 149
1 vote
2 answers
607 views

Derive next HD segwit address from xpub/ypub

I've been using the smartbit api to derive the next receiving address for a while now. However it only works for Legacy addresses and not Segwit addresses. I now have a Ledger Nano s and need a ...
  • 113
1 vote
1 answer
613 views

Xpub for HD wallets

I have a cold storage in my one of the computers.Also in my project server I have run bitcoin-cli. So I want to remove priv key from here and set the public key from cold storage. I read that it will ...