mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-28 16:36:04 +01:00
test: check that keyless P2A 'signing' via signrawtransactionwithkey succeeds
This commit is contained in:
@@ -155,6 +155,9 @@ def output_key_to_p2tr(key, main=False):
|
||||
assert len(key) == 32
|
||||
return program_to_witness(1, key, main)
|
||||
|
||||
def p2a(main=False):
|
||||
return program_to_witness(1, "4e73", main)
|
||||
|
||||
def check_key(key):
|
||||
if (type(key) is str):
|
||||
key = bytes.fromhex(key) # Assuming this is hex string
|
||||
|
||||
Reference in New Issue
Block a user