fix: p2pk output serialisation
This commit is contained in:
@@ -357,6 +357,10 @@ def address_to_scripthash(addr):
|
||||
h = sha256(bytes.fromhex(script))[0:32]
|
||||
return bytes(reversed(h)).hex()
|
||||
|
||||
def public_key_to_p2pk_script(pubkey):
|
||||
script = push_script(pubkey)
|
||||
script += 'ac' # op_checksig
|
||||
return script
|
||||
|
||||
__b58chars = b'123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'
|
||||
assert len(__b58chars) == 58
|
||||
|
||||
Reference in New Issue
Block a user