Documentation
¶
Index ¶
- Variables
- func AliYunPolicy(encodedPolicy, accessKeySecret string) string
- func GenerateLogin(PrivateECDSA *ecdsa.PrivateKey, ethAddress string, nonce string) (typedDataHex, hashHex, signatureHex string, err error)
- func GetPrivateKeyFromMnemonic(mnemonic string) *ecdsa.PrivateKey
- func GetPrivateKeyFromPrivateHex(hex hexutil.Hex) *ecdsa.PrivateKey
- func MelonLoginWithEip712(typedDataStr, hashHex, signatureHex string, f func(ethAddress string) string) (ethAddress string, err error)
- func RSV(sign hexutil.Hex) (r, s *big.Int, v uint)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func AliYunPolicy ¶
使用给定的访问密钥密钥部分(accessKeySecret)对经过编码的策略(encodedPolicy)进行HMAC-SHA1签名,并返回签名结果的base64编码字符串
func GenerateLogin ¶
func GetPrivateKeyFromMnemonic ¶
func GetPrivateKeyFromMnemonic(mnemonic string) *ecdsa.PrivateKey
func GetPrivateKeyFromPrivateHex ¶
func GetPrivateKeyFromPrivateHex(hex hexutil.Hex) *ecdsa.PrivateKey
func MelonLoginWithEip712 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.