mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-06-10 00:41:35 +00:00
core/types: minor opt decodeSignature
This commit is contained in:
parent
19dc690af8
commit
b718f7dcfd
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ func decodeSignature(sig []byte) (r, s, v *big.Int, err error) {
|
||||||
}
|
}
|
||||||
r = new(big.Int).SetBytes(sig[:32])
|
r = new(big.Int).SetBytes(sig[:32])
|
||||||
s = new(big.Int).SetBytes(sig[32:64])
|
s = new(big.Int).SetBytes(sig[32:64])
|
||||||
v = new(big.Int).SetBytes([]byte{sig[64] + 27})
|
v = big.NewInt(int64(sig[64] + 27))
|
||||||
return r, s, v, nil
|
return r, s, v, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue