eip712

package
v0.0.0-...-2a4f382 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EncodeForSigning

func EncodeForSigning(typedData apitypes.TypedData) (hash common.Hash, err error)

EncodeForSigning - Encoding the typed data

func SignTypedData

func SignTypedData(typedData apitypes.TypedData, privateKey *ecdsa.PrivateKey) (sig []byte, err error)

SignTypedData - Sign typed data

func VerifySig

func VerifySig(from, sigHex string, msg []byte) bool

VerifySig - Verify signature with recovered address

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL