eip712

package
v1.17.5-rc2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: BSD-3-Clause Imports: 2 Imported by: 8 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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