Documentation
¶
Index ¶
- type Definition
- type Domain
- type TypeDef
- type TypedData
- func (td TypedData) EncodeType(inType string) (enc string, err error)
- func (td TypedData) GetMessageHash(account *big.Int, msg TypedMessage, sc curve.StarkCurve) (hash *big.Int, err error)
- func (td TypedData) GetTypeHash(inType string) (ret *big.Int, err error)
- func (td TypedData) GetTypedMessageHash(inType string, msg TypedMessage, sc curve.StarkCurve) (hash *big.Int, err error)
- type TypedMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Definition ¶
type TypeDef ¶
type TypeDef struct {
Encoding *big.Int
Definitions []Definition
}
type TypedData ¶
type TypedData struct {
Types map[string]TypeDef
PrimaryType string
Domain Domain
Message TypedMessage
}
func NewTypedData ¶
'typedData' interface for interacting and signing typed data in accordance with https://github.com/0xs34n/starknet.js/tree/develop/src/utils/typedData
func (TypedData) GetMessageHash ¶
func (td TypedData) GetMessageHash(account *big.Int, msg TypedMessage, sc curve.StarkCurve) (hash *big.Int, err error)
func (TypedData) GetTypeHash ¶
func (TypedData) GetTypedMessageHash ¶
func (td TypedData) GetTypedMessageHash(inType string, msg TypedMessage, sc curve.StarkCurve) (hash *big.Int, err error)
type TypedMessage ¶
Click to show internal directories.
Click to hide internal directories.