Documentation ¶
Index ¶
- func EncodeForSigning(typedData apitypes.TypedData) (*common.Hash, error)
- func PersonalSign(message string, privateKey *ecdsa.PrivateKey) (string, error)
- func SignCancelOrder(orderHash string) (string, error)
- func SignOrder(order types.OrderParameters, chainId int) (string, error)
- func SignTypedData(typedData apitypes.TypedData, privateKey *ecdsa.PrivateKey) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncodeForSigning ¶
EncodeForSigning - Encoding the typed data
func PersonalSign ¶
func PersonalSign(message string, privateKey *ecdsa.PrivateKey) (string, error)
PersonalSign - Returns a signature string
func SignCancelOrder ¶
SignCancelOrder - Generates signature for cancel_order
func SignOrder ¶
func SignOrder(order types.OrderParameters, chainId int) (string, error)
SignOrder - Signs Order
func SignTypedData ¶
SignTypedData - Sign typed data
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.