mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
Merge cf26ca3911 into merged_master (Bitcoin PR #21081)
This commit is contained in:
commit
0f6fcf55f7
1 changed files with 0 additions and 1 deletions
|
|
@ -519,7 +519,6 @@ def add_spender(spenders, *args, **kwargs):
|
|||
|
||||
def random_checksig_style(pubkey):
|
||||
"""Creates a random CHECKSIG* tapscript that would succeed with only the valid signature on witness stack."""
|
||||
return bytes(CScript([pubkey, OP_CHECKSIG]))
|
||||
opcode = random.choice([OP_CHECKSIG, OP_CHECKSIGVERIFY, OP_CHECKSIGADD])
|
||||
if (opcode == OP_CHECKSIGVERIFY):
|
||||
ret = CScript([pubkey, opcode, OP_1])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue