diff options
author | MeshCollider <dobsonsa68@gmail.com> | 2019-02-08 08:21:30 +1300 |
---|---|---|
committer | MeshCollider <dobsonsa68@gmail.com> | 2019-02-08 08:21:52 +1300 |
commit | 1933e38c1a08d479130d11d9fc08bc7c73a82575 (patch) | |
tree | a33fadde95cd569835a5753681ab0014f58a843f /src/support/lockedpool.cpp | |
parent | d83d6079432cf592ff6c740d1d3fbdb5e596facb (diff) | |
parent | 595283851d8fe3e18553fdb2ad6e773e1a9c1a22 (diff) |
Merge #14667: Add deriveaddresses RPC util method
595283851 [rpc] util: add deriveaddresses method (Sjors Provoost)
Pull request description:
Usage:
```sh
bitcoin-cli deriveaddresses "wpkh([d34db33f/84h/0h/0h]xpub6DJ2dNUysrn5Vt36jH2KLBT2i1auw1tTSSomg8PhqNiUtx8QX2SvC9nrHu81fT41fvDUnhMjEzQgXnQjKEu3oaqMSzhSrHMxyyoEAmUHQbY/0/0)"
[
"bc1qg6ucjz7kgdedam7v5yarecy54uqw82yym06z3q"
] // part of the BIP32 test vector
```
Avoids the need for external (BIP32) libraries to derive an address. Can be used in conjunction with `scantxoutset` as a poor mans wallet. Might be useful to test more complicated future descriptors.
~To keep it as simple as possible it only supports descriptors that result in a single address, so no `combo()` and ranges.~
As discussed recently on IRC it might make sense to put this in a separate utility along with other descriptor and psbt utility functions which don't need a chain or wallet context. However I prefer to leave that to another PR.
Tree-SHA512: b8e53db11a8fd87638cc98766270cc3be9adc4b3e5085798a6a4e2e6ad252bf6d2189346bbb2da72d04d13f7f1e80b5cb88e8039653bea1f150602a876ef7f34
Diffstat (limited to 'src/support/lockedpool.cpp')
0 files changed, 0 insertions, 0 deletions