client

package
v1.11.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientID

func GetClientID() string

func GetClientPrivateKey added in v1.8.11

func GetClientPrivateKey() string

func GetClientPublicKey

func GetClientPublicKey() string

func GetClientSysKeys added in v1.7.6

func GetClientSysKeys() []sys.KeyPair

GetClientSysKeys convert client.KeyPair to sys.KeyPair

func PopulateClient

func PopulateClient(clientjson string, signatureScheme string) error

PopulateClient populates single client

func PopulateClients added in v1.4.7

func PopulateClients(clientJsons []string, signatureScheme string) error

PopulateClients This is a workaround for blobber tests that requires multiple clients to test authticket functionality

func SetClientNonce added in v1.8.3

func SetClientNonce(nonce int64)

func SetTxnFee added in v1.8.16

func SetTxnFee(fee uint64)

SetTxnFee sets general transaction fee

func TxnFee added in v1.8.16

func TxnFee() uint64

TxnFee gets general txn fee

func VerifySignature

func VerifySignature(signature string, msg string) (bool, error)

func VerifySignatureWith added in v1.8.16

func VerifySignatureWith(pubKey, signature, hash string) (bool, error)

Types

type Client

type Client struct {
	*zcncrypto.Wallet
	SignatureScheme string
	// contains filtered or unexported fields
}

func GetClient

func GetClient() *Client

func GetClients added in v1.4.7

func GetClients() []*Client

type SignFunc added in v1.3.5

type SignFunc func(hash string) (string, error)
var (
	Sign SignFunc
)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL