diff options
author | MarcoFalke <falke.marco@gmail.com> | 2021-10-27 11:48:57 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2021-10-27 11:49:01 +0100 |
commit | ab25ef8c7f767258d5fe44f53b35ad8bd51ed5cd (patch) | |
tree | 5c8de0a2655602266d4cbe682d2330d2ff85b64b /src/addrman.h | |
parent | e77d9679fd0c6ad3be997e6160ccdbfc11ac7be7 (diff) | |
parent | 4718897ce3a7c728ff7aebbadabcc8ed7a0b8d6e (diff) | |
download | bitcoin-ab25ef8c7f767258d5fe44f53b35ad8bd51ed5cd.tar.xz |
Merge bitcoin/bitcoin#23305: test: refactor: add `script_util` helper for creating bare multisig scripts
4718897ce3a7c728ff7aebbadabcc8ed7a0b8d6e test: add script_util helper for creating bare multisig scripts (Sebastian Falbesoner)
Pull request description:
This PR is a follow-up to #22363 and #23118 and introduces a helper `keys_to_multisig_script` for creating bare multisig outputs in the form of
```
OP_K PubKey1 PubKey2 ... PubKeyN OP_N OP_CHECKMULTISIG
```
The function takes a list of pubkeys (both hex- and byte-strings are accepted due to the `script_util.check_key` helper being used internally) and optionally a threshold _k_. If no threshold is passed, a n-of-n multisig output is created, with _n_ being the number of passed pubkeys.
ACKs for top commit:
shaavan:
utACK 4718897ce3a7c728ff7aebbadabcc8ed7a0b8d6e
rajarshimaitra:
tACK https://github.com/bitcoin/bitcoin/pull/23305/commits/4718897ce3a7c728ff7aebbadabcc8ed7a0b8d6e
Tree-SHA512: b452d8a75b0d17316b66ac4ed4c6893fe59c7c417719931d4cd3955161f59afca43503cd09b83a35b5a252a122eb3f0fbb9da9f0e7c944cf8da572a02219ed9d
Diffstat (limited to 'src/addrman.h')
0 files changed, 0 insertions, 0 deletions