Documentation ¶
Overview ¶
Methods and types for client and wallet operations.
Index ¶
- func GetClientID() string
- func GetClientPeerPublicKey() string
- func GetClientPrivateKey() string
- func GetClientPublicKey() string
- func GetClientSysKeys() []sys.KeyPair
- func PopulateClient(clientjson string, signatureScheme string) error
- func PopulateClients(clientJsons []string, signatureScheme string) error
- func SetClient(w *zcncrypto.Wallet, signatureScheme string, txnFee uint64)
- func SetClientNonce(nonce int64)
- func SetTxnFee(fee uint64)
- func TxnFee() uint64
- func VerifySignature(signature string, msg string) (bool, error)
- func VerifySignatureWith(pubKey, signature, hash string) (bool, error)
- type Client
- type SignFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetClientPeerPublicKey ¶ added in v1.17.0
func GetClientPeerPublicKey() string
func GetClientPrivateKey ¶ added in v1.8.11
func GetClientPrivateKey() string
GetClientPrivateKey returns client private key
func GetClientPublicKey ¶
func GetClientPublicKey() string
GetClientPublicKey returns client public key
func GetClientSysKeys ¶ added in v1.7.6
GetClientSysKeys convert client.KeyPair to sys.KeyPair
func PopulateClient ¶
PopulateClient populates single client
- clientjson: client json string
- signatureScheme: signature scheme
func PopulateClients ¶ added in v1.4.7
PopulateClients This is a workaround for blobber tests that requires multiple clients to test authticket functionality
- clientJsons: array of client json strings
- signatureScheme: signature scheme
func SetClientNonce ¶ added in v1.8.3
func SetClientNonce(nonce int64)
SetClientNonce sets client nonce
func VerifySignature ¶
VerifySignature verifies signature of a message with client public key and signature scheme
- signature: signature to use for verification
- msg: message to verify
func VerifySignatureWith ¶ added in v1.8.16
VerifySignatureWith verifies signature of a message with a given public key, and the client's signature scheme
- pubKey: public key to use for verification
- signature: signature to use for verification
- hash: message to verify
Types ¶
Click to show internal directories.
Click to hide internal directories.