ecc: refactor/clean-up sign/verify APIs
This commit is contained in:
@@ -537,7 +537,7 @@ class BitBox02Client(HardwareClientBase):
|
||||
if len(sigs) != len(tx.inputs()):
|
||||
raise Exception("Incorrect number of inputs signed.") # Should never occur
|
||||
sighash = Sighash.to_sigbytes(Sighash.ALL).hex()
|
||||
signatures = [ecc.der_sig_from_sig_string(x[1]).hex() + sighash for x in sigs]
|
||||
signatures = [ecc.ecdsa_der_sig_from_ecdsa_sig64(x[1]).hex() + sighash for x in sigs]
|
||||
tx.update_signatures(signatures)
|
||||
|
||||
def sign_message(self, keypath: str, message: bytes, script_type: str) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user