Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyEthereumSignature ¶
func VerifyEthereumSignature( t *testing.T, hash []byte, signature *ecdsa.Signature, expectedPublicKey *ecdsa.PublicKey, )
VerifyEthereumSignature validates that signature in form (r, s, recoveryID) is a valid ethereum signature. `SigToPub` is a wrapper on `Ecrecover` that allows us to validate a signature in the same way as it's done on-chain, we extract public key from the signature and compare it with signer's public key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.