Documentation ¶
Index ¶
- func EthTrieHash(values map[string]string) string
- func JsonMarshal(value map[string]interface{}) (string, error)
- func RecoverPublickeyBySignature(msg, sig string) (string, error)
- func Sign(data []byte, privateKey string) (string, error)
- func SignByEth(data []byte, privateKey *ecdsa.PrivateKey) (string, error)
- func ToSignatureByExclude(obj interface{}, excludes ...string) (string, error)
- func Verify(data []byte, signature, public string) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EthTrieHash ¶
func JsonMarshal ¶
The default behavior is to escape &, <, and > to \u0026, \u003c, and \u003e to avoid certain safety problems that can arise when embedding JSON in HTML.
func ToSignatureByExclude ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.