mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-20 02:42:27 +00:00
crypto/signature_nocgo.go: eip-2 comment
This commit is contained in:
parent
fb8d3fa476
commit
6daa03cb44
1 changed files with 2 additions and 0 deletions
|
|
@ -99,6 +99,8 @@ func Sign(hash []byte, prv *ecdsa.PrivateKey) ([]byte, error) {
|
|||
return sig, nil
|
||||
}
|
||||
|
||||
|
||||
//eip2: 서명 크기 확인
|
||||
// VerifySignature checks that the given public key created signature over hash.
|
||||
// The public key should be in compressed (33 bytes) or uncompressed (65 bytes) format.
|
||||
// The signature should have the 64 byte [R || S] format.
|
||||
|
|
|
|||
Loading…
Reference in a new issue