decode everywhere

This commit is contained in:
jc 2018-02-28 18:42:44 -05:00
parent 211a51553e
commit c610aa469f
No known key found for this signature in database
GPG Key ID: E87FC0C8A375F3CF
1 changed files with 1 additions and 1 deletions

View File

@ -62,7 +62,7 @@ def write_vmcp_data(output_dir, k, vmcp_file):
def addr_to_script(addr):
if addr[:2] == 't3':
scr = 'a914' + a2b_hashed_base58(addr)[2:].encode('hex') + '87'
return scr
return scr.decode('hex')
assert addr[:2] == 't1'
k = Key.from_text(addr)