Versions in this module Expand all Collapse all v0 v0.1.0 Mar 30, 2022 Changes in this version + 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 struct + func NewClient(ctx context.Context, apiUrl string) (*Client, error) + func (c *Client) Client() rpc.Client + func (c *Client) SignCkbMessage(ckbSignerAddress, message string) ([]byte, error) + type HandleSignCkbMessage func(message string) ([]byte, error) + func LocalSign(privateKey string) HandleSignCkbMessage + func RemoteSign(c *Client, net common.DasNetType, args string) HandleSignCkbMessage