Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Ecrecover ¶
This is exact copy of the function from internal/controllers/helpers/handlers.go Ecrecover mimics the ecrecover opcode, returning the address that signed hash with signature. sig must have length 65 and the last byte, the recovery byte usually denoted v, must be 27 or 28.
func VerifySignature ¶
VerifySignature godoc checks if the provided signature corresponds to the given message and Ethereum address. body []byte The original message that was signed. signature string The signature that needs to be verified. ethAddr string The Ethereum address of the signer. @return bool Indicates whether the signature is valid or not. @return error If there was an issue during the verification process.
Types ¶
This section is empty.