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
ZkSyncEraEIP712Domain represents the EIP-712 domain for ZKsync Era.
func (*Domain) TypedData ¶ added in v1.0.0
func (d *Domain) TypedData() apitypes.TypedDataDomain
TypedData returns domain typed data.
Click to show internal directories.
Click to hide internal directories.