client

package
v1.7.8 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClientID

func GetClientID() 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

Populate 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 SignHash added in v1.7.6

func SignHash(hash string, signatureScheme string, keys []sys.KeyPair) (string, error)

func VerifySignature

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

Types

type Client

type Client struct {
	*zcncrypto.Wallet
	SignatureScheme string
}

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