client

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// CryptoTypeDefault : default Nist ECC
	CryptoTypeDefault = "default"
	// CryptoTypeGM : support for GM
	CryptoTypeGM = "gm"
	// CryptoTypeSchnorr : support for Nist + Schnorr
	CryptoTypeSchnorr = "schnorr"
)

Variables

This section is empty.

Functions

func CreateCryptoClient

func CreateCryptoClient(cryptoType string) (base.CryptoClient, error)

func CreateCryptoClientFromJSONPrivateKey

func CreateCryptoClientFromJSONPrivateKey(jsonKey []byte) (base.CryptoClient, error)

CreateCryptoClientFromJSONPrivateKey create CryptoClient by json encoded private key

func CreateCryptoClientFromJSONPublicKey

func CreateCryptoClientFromJSONPublicKey(jsonKey []byte) (base.CryptoClient, error)

CreateCryptoClientFromJSONPublicKey create CryptoClient by json encoded public key

func Drivers

func Drivers() []string

func Register

func Register(name string, f NewCryptoFunc)

Types

type NewCryptoFunc

type NewCryptoFunc func() base.CryptoClient

Directories

Path Synopsis
Package eccdefault is the default crypto client of xchain
Package eccdefault is the default crypto client of xchain

Jump to

Keyboard shortcuts

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