Documentation ¶
Index ¶
- func ConvertToString(v interface{}) string
- func GetClientAccount() *accounts.Account
- func GetClientAddress() string
- func GetClientKeystore() *keystore.KeyStore
- func GetClientPrivateKey() string
- func GetNonce() string
- func Http_Delete(url string, jsonData string) ([]byte, error)
- func Http_Get(url string, queryParams map[string]interface{}) ([]byte, error)
- func Http_Get_Direct(url string, queryParams map[string]interface{}) (*http.Response, error)
- func Http_Post(url string, jsonData string) ([]byte, error)
- func Http_PostFormMultipartForm(urlAddr string, params map[string]string, imgPath string) ([]byte, error)
- func Http_PostFormUrlencoded(urlAddr string, params map[string]string) ([]byte, error)
- func Http_Put(url string, jsonData string) ([]byte, error)
- func LoadKeystore()
- func RecoverPublickeyByEth(msg, sig string) (string, error)
- func Sign(data []byte, privateKey string) (string, error)
- func SignByEth(data []byte, privateKey *ecdsa.PrivateKey) (string, error)
- func StructToSignature(obj interface{}) (string, error)
- func StructToSignatureByExclude(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 ConvertToString ¶
func ConvertToString(v interface{}) string
func GetClientAccount ¶
func GetClientAddress ¶
func GetClientAddress() string
func GetClientKeystore ¶
func GetClientPrivateKey ¶
func GetClientPrivateKey() string
func Http_Get_Direct ¶
func Http_PostFormUrlencoded ¶
func LoadKeystore ¶
func LoadKeystore()
func RecoverPublickeyByEth ¶
func StructToSignature ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.