crypto/signature_nocgo.go: eip-2 comment

This commit is contained in:
smin-k 2024-04-05 17:38:08 +09:00
parent fb8d3fa476
commit 6daa03cb44

View file

@ -99,6 +99,8 @@ func Sign(hash []byte, prv *ecdsa.PrivateKey) ([]byte, error) {
return sig, nil return sig, nil
} }
//eip2: 서명 크기 확인
// VerifySignature checks that the given public key created signature over hash. // 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 public key should be in compressed (33 bytes) or uncompressed (65 bytes) format.
// The signature should have the 64 byte [R || S] format. // The signature should have the 64 byte [R || S] format.