Skip to content

Commit 8445b77

Browse files
author
pythcoiner
committed
add core
1 parent 74bc9d4 commit 8445b77

File tree

1 file changed

+34
-0
lines changed

1 file changed

+34
-0
lines changed

doc/XPUB.md

+34
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,40 @@ in our case:
5151
```
5252
[f25bdff6/48'/0'/0']xpub6E3wdqR3xPHvUKBWwUik5cpy9pMdrdEYVHBxKx7nbT2ZTnzizbNAWe9uuPX4A4nUsamM2Tn9F6ccK5Fmrt6ResBSRWDnb9J8bpi1WKcD158
5353
```
54+
## bitcoin core
55+
Bitcoin core not yet have a simple command to export descriptor (see [#22341](https://github.com/bitcoin/bitcoin/pull/22341)
56+
and [#29130](https://github.com/bitcoin/bitcoin/pull/29130)) so you have to use `listdescriptors` command that will
57+
give you output descriptors that contains xpubs:
58+
59+
here we using `grep` command to keep only output containing descriptors and `rpcwallet=main` where 'main' is
60+
the wallet name (you can lists your wallets using `bitcoin-cli listwallets` command):
61+
```
62+
bitcoin-cli --rpcwallet=main listdescriptors | grep '"desc":'
63+
```
64+
65+
output should looks like this:
66+
```
67+
"desc": "pkh([b6128dcb/44'/0'/0']xpub6CLAT4xwEBFHRfPqsBojCP2xCbv8kn3VoD7CG59D3Gt5a7Ba3yKsYjpusaWEmDqafb8Gg7ebv5Lg4vvrhMTiKcwJyH6kUk4J2GWARHHkvSo/0/*)#cd54nta7",
68+
"desc": "pkh([b6128dcb/44'/0'/0']xpub6CLAT4xwEBFHRfPqsBojCP2xCbv8kn3VoD7CG59D3Gt5a7Ba3yKsYjpusaWEmDqafb8Gg7ebv5Lg4vvrhMTiKcwJyH6kUk4J2GWARHHkvSo/1/*)#fe35w7dx",
69+
"desc": "sh(wpkh([b6128dcb/49'/0'/0']xpub6C75FRg1ZLnZ8uEfqWf9wyrZmaKPTqimaCnjMjQA3iKE8gLHC9HKttCcY5zHhAPc5uh8JE6JnJyVCQnVJyWvuVsPBhCFovKxUrYYkgGYik6/0/*))#70zrx66e",
70+
"desc": "sh(wpkh([b6128dcb/49'/0'/0']xpub6C75FRg1ZLnZ8uEfqWf9wyrZmaKPTqimaCnjMjQA3iKE8gLHC9HKttCcY5zHhAPc5uh8JE6JnJyVCQnVJyWvuVsPBhCFovKxUrYYkgGYik6/1/*))#twv4790x",
71+
"desc": "tr([b6128dcb/86'/0'/0']xpub6CV5jTV3fvR3h5Abv3FZabKUUm7S33cWg86dgUZ132aGZ9wGFCw6s65ACKcWXSjVt12oaWHLu6pFGp28HJtHteCkWxSyHhbjvfbyR7XooUn/0/*)#25anguum",
72+
"desc": "tr([b6128dcb/86'/0'/0']xpub6CV5jTV3fvR3h5Abv3FZabKUUm7S33cWg86dgUZ132aGZ9wGFCw6s65ACKcWXSjVt12oaWHLu6pFGp28HJtHteCkWxSyHhbjvfbyR7XooUn/1/*)#mqcj4fvr",
73+
"desc": "wpkh([b6128dcb/84'/0'/0']xpub6Bno9fbj6kSaQsrGzbSBLwuBPSQD8FErJHDAHuDarKQbPh5brv6pMHv68xbm9kxCNruPNYQ35QWiBgCEzoP3RbnRFrE2LgZAd9zDUTFTY6y/0/*)#03d4qhze",
74+
"desc": "wpkh([b6128dcb/84'/0'/0']xpub6Bno9fbj6kSaQsrGzbSBLwuBPSQD8FErJHDAHuDarKQbPh5brv6pMHv68xbm9kxCNruPNYQ35QWiBgCEzoP3RbnRFrE2LgZAd9zDUTFTY6y/1/*)#79g5azjp",
75+
```
76+
77+
here you can use first taproot (`tr(...)`) or segwit (`wpkh(...)`) descriptor and extract the xpub, for instance if you
78+
take first taproot descriptor:
79+
80+
`tr([b6128dcb/86'/0'/0']xpub6CV5jTV3fvR3h5Abv3FZabKUUm7S33cWg86dgUZ132aGZ9wGFCw6s65ACKcWXSjVt12oaWHLu6pFGp28HJtHteCkWxSyHhbjvfbyR7XooUn/0/*)#25anguum`
81+
82+
the xpub you can load in `Liana` will be :
83+
84+
`[b6128dcb/86'/0'/0']xpub6CV5jTV3fvR3h5Abv3FZabKUUm7S33cWg86dgUZ132aGZ9wGFCw6s65ACKcWXSjVt12oaWHLu6pFGp28HJtHteCkWxSyHhbjvfbyR7XooUn`.
85+
86+
87+
5488
## Sparrow
5589

5690
![Sparrow.png](assets%2FXPUB%2FSparrow.png)

0 commit comments

Comments
 (0)