client

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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