aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorthumb8432 <thumb8432@gmail.com>2018-09-30 04:11:56 +0800
committerFelix Lange <fjl@users.noreply.github.com>2018-09-30 04:11:56 +0800
commitffca6dfe0162074cb9224a26aa667ac724be0ab8 (patch)
tree3ba84611192e5ec50b51d9ff635659fd6b4419ef
parent107f556b2d9811ea2d64c065531dcae33997fcb7 (diff)
downloadgo-tangerine-ffca6dfe0162074cb9224a26aa667ac724be0ab8.tar.gz
go-tangerine-ffca6dfe0162074cb9224a26aa667ac724be0ab8.tar.zst
go-tangerine-ffca6dfe0162074cb9224a26aa667ac724be0ab8.zip
core/types: fix typos (#17762)
-rw-r--r--core/types/transaction_signing.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/types/transaction_signing.go b/core/types/transaction_signing.go
index c195d23a3..1997755dc 100644
--- a/core/types/transaction_signing.go
+++ b/core/types/transaction_signing.go
@@ -227,13 +227,13 @@ func recoverPlain(sighash common.Hash, R, S, Vb *big.Int, homestead bool) (commo
if !crypto.ValidateSignatureValues(V, R, S, homestead) {
return common.Address{}, ErrInvalidSig
}
- // encode the snature in uncompressed format
+ // encode the signature in uncompressed format
r, s := R.Bytes(), S.Bytes()
sig := make([]byte, 65)
copy(sig[32-len(r):32], r)
copy(sig[64-len(s):64], s)
sig[64] = V
- // recover the public key from the snature
+ // recover the public key from the signature
pub, err := crypto.Ecrecover(sighash[:], sig)
if err != nil {
return common.Address{}, err