test: Add a test for anchor outputs in the wallet

This commit is contained in:
Ava Chow
2025-08-28 15:13:23 -07:00
parent c40dc822d7
commit 609d265ebc
3 changed files with 118 additions and 0 deletions

View File

@@ -66,6 +66,7 @@ DUMMY_MIN_OP_RETURN_SCRIPT = CScript([OP_RETURN] + ([OP_0] * (MIN_PADDING - 1)))
assert len(DUMMY_MIN_OP_RETURN_SCRIPT) == MIN_PADDING
PAY_TO_ANCHOR = CScript([OP_1, bytes.fromhex("4e73")])
ANCHOR_ADDRESS = "bcrt1pfeesnyr2tx"
def key_to_p2pk_script(key):
key = check_key(key)