eip712

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2022 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