use libsecp256k1 if available. abstract away ecc stuff. move symmetric crypto and hash functions to crypto.py
This commit is contained in:
@@ -114,7 +114,7 @@ def append_utxos_to_inputs(inputs, network, pubkey, txin_type, imax):
|
||||
def sweep_preparations(privkeys, network, imax=100):
|
||||
|
||||
def find_utxos_for_privkey(txin_type, privkey, compressed):
|
||||
pubkey = bitcoin.public_key_from_private_key(privkey, compressed)
|
||||
pubkey = ecc.ECPrivkey(privkey).get_public_key_hex(compressed=compressed)
|
||||
append_utxos_to_inputs(inputs, network, pubkey, txin_type, imax)
|
||||
keypairs[pubkey] = privkey, compressed
|
||||
inputs = []
|
||||
|
||||
Reference in New Issue
Block a user