bitcoin.py/transaction.py: API changes: rm most hex usage
Instead of some functions operating with hex strings, and others using bytes, this consolidates most things to use bytes. This mainly focuses on bitcoin.py and transaction.py, and then adapts the API usages in other files. Notably, - scripts, - pubkeys, - signatures should be bytes in almost all places now.
This commit is contained in:
@@ -1208,7 +1208,7 @@ class TestPeerDirect(TestPeer):
|
||||
# shutdown script
|
||||
bob_uss_pub = lnutil.privkey_to_pubkey(os.urandom(32))
|
||||
bob_uss_addr = bitcoin.pubkey_to_address('p2wpkh', bob_uss_pub.hex())
|
||||
bob_uss = bfh(bitcoin.address_to_script(bob_uss_addr))
|
||||
bob_uss = bitcoin.address_to_script(bob_uss_addr)
|
||||
|
||||
# bob commits to close to bob_uss
|
||||
alice_channel.config[HTLCOwner.REMOTE].upfront_shutdown_script = bob_uss
|
||||
|
||||
Reference in New Issue
Block a user