Versions in this module Expand all Collapse all v0 v0.0.15 Feb 20, 2023 Changes in this version + var EIP712Domain = []Type + func DigestHash(td *TypedData) ([]byte, error) + type Type struct + Name string + Type string + type TypedData struct + Domain TypedDataDomain + Message TypedDataMessage + PrimaryType string + Types Types + func CreateTypedData(magic uint64, txType string, txFields []Type, msg TypedDataMessage) *TypedData + func (typedData *TypedData) Dependencies(primaryType string, found []string) []string + func (typedData *TypedData) EncodeData(primaryType string, data map[string]interface{}, depth int) (hexutil.Bytes, error) + func (typedData *TypedData) EncodePrimitiveValue(encType string, encValue interface{}, depth int) ([]byte, error) + func (typedData *TypedData) EncodeType(primaryType string) hexutil.Bytes + func (typedData *TypedData) HashStruct(primaryType string, data TypedDataMessage) (hexutil.Bytes, error) + func (typedData *TypedData) Map() map[string]interface{} + func (typedData *TypedData) TypeHash(primaryType string) hexutil.Bytes + type TypedDataDomain struct + Magic string + Name string + func (domain *TypedDataDomain) Map() map[string]interface{} + type TypedDataMessage = map[string]interface + type Types map[string][]Type