signet: miner skips PSBT step for OP_TRUE

This commit is contained in:
Sjors Provoost
2024-09-13 10:00:38 +02:00
parent cdfb70e5a6
commit 0a99d99fe4
4 changed files with 112 additions and 33 deletions

View File

@@ -80,6 +80,9 @@ DIFF_4_N_BITS = 0x1c3fffc0
DIFF_4_TARGET = int(DIFF_1_TARGET / 4)
assert_equal(uint256_from_compact(DIFF_4_N_BITS), DIFF_4_TARGET)
# From BIP325
SIGNET_HEADER = b"\xec\xc7\xda\xa2"
def nbits_str(nbits):
return f"{nbits:08x}"