Documentation
¶
Index ¶
- func EIP712Sign(prv *ecdsa.PrivateKey, data *apitypes.TypedData) (string, error)
- func Eip712Hash() (*common.Hash, error)
- func RecoverEIP712Signature(sig string, data *apitypes.TypedData) (dataHash hexutil.Bytes, recoveredAddr ethcommon.Address, err error)
- func RecoverRawMsgSignature(sig, msg string) (signerAddr string, err error)
- func Verifying(dataHash []byte, userAddress common.Address, signature string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EIP712Sign ¶
EIP712Sign eth EIP712 签名
func Eip712Hash ¶
func RecoverEIP712Signature ¶
func RecoverEIP712Signature(sig string, data *apitypes.TypedData) (dataHash hexutil.Bytes, recoveredAddr ethcommon.Address, err error)
EIP712SignatureRecover eth EIP712 恢复 signer 地址
func RecoverRawMsgSignature ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.