Documentation ¶
Index ¶
- func EIP712Signature(typedData core.TypedData, hexPrivateKey string) ([]byte, []byte, error)
- func Ed25519Signature(privateKey, message []byte) []byte
- func EthSignature(data []byte, hexPrivateKey string) ([]byte, error)
- func GenerateAddressByArgs(net common.DasNetType, args string) (string, error)
- func GetSignedPubKey(rawByte []byte, sign []byte) (*ecdsa.PublicKey, error)
- func PersonalSignature(data []byte, hexPrivateKey string) ([]byte, error)
- func TronSignature(signType bool, data []byte, hexPrivateKey string) ([]byte, error)
- func TronVerifySignature(signType bool, sign []byte, rawByte []byte, base58Addr string) bool
- func VerifyEIP712Signature(typedData core.TypedData, sign []byte, address string) (bool, error)
- func VerifyEd25519Signature(publicKey, message, sig []byte) bool
- func VerifyEthSignature(sign []byte, rawByte []byte, address string) (bool, error)
- func VerifyPersonalSignature(sign []byte, rawByte []byte, address string) (bool, error)
- type Client
- type HandleSignCkbMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EIP712Signature ¶
func Ed25519Signature ¶
func GenerateAddressByArgs ¶
func GenerateAddressByArgs(net common.DasNetType, args string) (string, error)
func TronSignature ¶
func TronVerifySignature ¶
func VerifyEIP712Signature ¶
func VerifyEd25519Signature ¶
func VerifyEthSignature ¶
Types ¶
type HandleSignCkbMessage ¶
func LocalSign ¶
func LocalSign(privateKey string) HandleSignCkbMessage
func RemoteSign ¶
func RemoteSign(c *Client, net common.DasNetType, args string) HandleSignCkbMessage
Click to show internal directories.
Click to hide internal directories.