eip712

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

View Source
const (
	DomainDefaultName    = `zkSync`
	DomainDefaultVersion = `2`
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Domain

type Domain struct {
	Name              string          `json:"name"`              // Name of the domain.
	Version           string          `json:"version"`           // Version of the domain.
	ChainId           *big.Int        `json:"chainId"`           // Chain ID associated with the domain.
	VerifyingContract *common.Address `json:"verifyingContract"` // Address of the verifying contract for the domain.
}

Domain represents the domain parameters used for EIP-712 signing.

func ZkSyncEraEIP712Domain added in v0.3.0

func ZkSyncEraEIP712Domain(chainId int64) *Domain

ZkSyncEraEIP712Domain represents the EIP-712 domain for ZKsync Era.

func (*Domain) Type added in v1.0.0

func (d *Domain) Type() string

Type returns the name of the domain field.

func (*Domain) TypedData added in v1.0.0

func (d *Domain) TypedData() apitypes.TypedDataDomain

TypedData returns domain typed data.

func (*Domain) Types added in v1.0.0

func (d *Domain) Types() []apitypes.Type

Types returns the domain field types.

Jump to

Keyboard shortcuts

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