eip712

package
v1.0.0-rc2.4 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: BSD-3-Clause Imports: 2 Imported by: 0

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 = core.Type

type TypedData

type TypedData = core.TypedData

type aliases to avoid importing "core" everywhere

type TypedDataDomain

type TypedDataDomain = core.TypedDataDomain

type TypedDataMessage

type TypedDataMessage = core.TypedDataMessage

type Types

type Types = core.Types

Jump to

Keyboard shortcuts

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