diff options
author | Péter Szilágyi <peterke@gmail.com> | 2017-01-05 18:35:23 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2017-01-05 18:35:23 +0800 |
commit | 08eea0f0e417c5f6ff864ae4633cc3e0a12aa405 (patch) | |
tree | f3a76e0c2511e18a874742cf801d35073b62c2f2 /accounts/abi/bind/auth.go | |
parent | 0fac8cba479a7cd90c17307b8795a0f836877c2e (diff) | |
download | go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.tar go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.tar.gz go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.tar.bz2 go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.tar.lz go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.tar.xz go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.tar.zst go-tangerine-08eea0f0e417c5f6ff864ae4633cc3e0a12aa405.zip |
accounts, core, crypto, internal: use normalised V during signature handling (#3455)
To address increasing complexity in code that handles signatures, this PR
discards all notion of "different" signature types at the library level. Both
the crypto and accounts package is reduced to only be able to produce plain
canonical secp256k1 signatures. This makes the crpyto APIs much cleaner,
simpler and harder to abuse.
Diffstat (limited to 'accounts/abi/bind/auth.go')
-rw-r--r-- | accounts/abi/bind/auth.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/accounts/abi/bind/auth.go b/accounts/abi/bind/auth.go index a20852fca..dbb235c14 100644 --- a/accounts/abi/bind/auth.go +++ b/accounts/abi/bind/auth.go @@ -52,7 +52,7 @@ func NewKeyedTransactor(key *ecdsa.PrivateKey) *TransactOpts { if address != keyAddr { return nil, errors.New("not authorized to sign this account") } - signature, err := crypto.SignEthereum(signer.Hash(tx).Bytes(), key) + signature, err := crypto.Sign(signer.Hash(tx).Bytes(), key) if err != nil { return nil, err } |