eip712

package
v1.10.0-rc15 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2022 License: BSD-3-Clause Imports: 2 Imported by: 9

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EIP712DomainType = []Type{
	{
		Name: "name",
		Type: "string",
	},
	{
		Name: "version",
		Type: "string",
	},
	{
		Name: "chainId",
		Type: "uint256",
	},
}

EIP712DomainType is the type description for the EIP712 Domain

Functions

func EncodeForSigning

func EncodeForSigning(typedData *TypedData) ([]byte, error)

EncodeForSigning encodes the hash that will be signed for the given EIP712 data

Types

type Type

type Type = apitypes.Type

type TypedData

type TypedData = apitypes.TypedData

type aliases to avoid importing "core" everywhere

type TypedDataDomain

type TypedDataDomain = apitypes.TypedDataDomain

type TypedDataMessage

type TypedDataMessage = apitypes.TypedDataMessage

type Types

type Types = apitypes.Types

Jump to

Keyboard shortcuts

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