electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit 19ec56b92310103ebe0e1f72e5e63913bdfb139b
parent 8424d5f094d3f29162cb30400721d68f3b988e1e
Author: ThomasV <thomasv@electrum.org>
Date:   Sun, 18 Oct 2015 12:23:21 +0200

fix: sign tx inputs with the new low s class

Diffstat:
Mlib/transaction.py | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/transaction.py b/lib/transaction.py @@ -745,7 +745,7 @@ class Transaction: for_sig = Hash(self.tx_for_sig(i).decode('hex')) pkey = regenerate_key(sec) secexp = pkey.secret - private_key = ecdsa.SigningKey.from_secret_exponent( secexp, curve = SECP256k1 ) + private_key = bitcoin.MySigningKey.from_secret_exponent( secexp, curve = SECP256k1 ) public_key = private_key.get_verifying_key() sig = private_key.sign_digest_deterministic( for_sig, hashfunc=hashlib.sha256, sigencode = ecdsa.util.sigencode_der ) assert public_key.verify_digest( sig, for_sig, sigdecode = ecdsa.util.sigdecode_der)