test: check that keyless P2A 'signing' via signrawtransactionwithkey succeeds

This commit is contained in:
Sebastian Falbesoner
2024-08-02 20:13:07 +02:00
parent 2aff9a36c3
commit 5e87f30f7c
2 changed files with 17 additions and 0 deletions

View File

@@ -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