Documentation ¶
Index ¶
- func CreateSignatureAndNonce(fnName string, paramJSON []byte, privKey *rsa.PrivateKey) (nonce string, signature []byte)
- func CreateTxn(fnName []byte, param []byte, nonce []byte, signature []byte, nodeID []byte) (interface{}, error)
- func GeneratePublicKey(publicKey *rsa.PublicKey) ([]byte, error)
- func GetEnv(key, defaultValue string) string
- func GetPrivateKeyFromString(privK string) *rsa.PrivateKey
- func Query(fnName []byte, param []byte) (interface{}, error)
- func RandStringRunes(n int) string
- type ResponseQuery
- type ResponseTx
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSignatureAndNonce ¶
func GetPrivateKeyFromString ¶
func GetPrivateKeyFromString(privK string) *rsa.PrivateKey
func RandStringRunes ¶
Types ¶
type ResponseQuery ¶
type ResponseTx ¶
type ResponseTx struct { Result struct { Height int `json:"height"` CheckTx struct { Code int `json:"code"` Log string `json:"log"` Fee struct{} `json:"fee"` } `json:"check_tx"` DeliverTx struct { Log string `json:"log"` Fee struct{} `json:"fee"` Tags []common.KVPair } `json:"deliver_tx"` Hash string `json:"hash"` } `json:"result"` Jsonrpc string `json:"jsonrpc"` ID string `json:"id"` }
Click to show internal directories.
Click to hide internal directories.