Skip to content

Commit 3f5b5ec

Browse files
authored
internal/ethapi: fix typo in comment (ethereum#25056)
typo error: keccack256 -> keccak256
1 parent 594e321 commit 3f5b5ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/ethapi/api.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ func (s *PrivateAccountAPI) SignTransaction(ctx context.Context, args Transactio
505505
}
506506

507507
// Sign calculates an Ethereum ECDSA signature for:
508-
// keccack256("\x19Ethereum Signed Message:\n" + len(message) + message))
508+
// keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))
509509
//
510510
// Note, the produced signature conforms to the secp256k1 curve R, S and V values,
511511
// where the V value will be 27 or 28 for legacy reasons.
@@ -1741,7 +1741,7 @@ func (s *PublicTransactionPoolAPI) SendRawTransaction(ctx context.Context, input
17411741
}
17421742

17431743
// Sign calculates an ECDSA signature for:
1744-
// keccack256("\x19Ethereum Signed Message:\n" + len(message) + message).
1744+
// keccak256("\x19Ethereum Signed Message:\n" + len(message) + message).
17451745
//
17461746
// Note, the produced signature conforms to the secp256k1 curve R, S and V values,
17471747
// where the V value will be 27 or 28 for legacy reasons.

0 commit comments

Comments
 (0)