client

package
v0.0.0-...-d9e9996 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// PluginName : plugin name
	PluginName = "crypto"

	// CryptoTypeDefault : default Nist ECC
	CryptoTypeDefault = "default"
	// CryptoTypeGM : support for GM
	CryptoTypeGM = "gm"
)

Variables

This section is empty.

Functions

func CreateCryptoClient

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

CreateCryptoClient create CryptoClient of specified cryptoType

func CreateCryptoClientFromFilePrivateKey

func CreateCryptoClientFromFilePrivateKey(path string) (base.CryptoClient, error)

CreateCryptoClientFromFilePrivateKey create CryptoClient by private key in local file

func CreateCryptoClientFromFilePublicKey

func CreateCryptoClientFromFilePublicKey(path string) (base.CryptoClient, error)

CreateCryptoClientFromFilePublicKey create CryptoClient by public key in local file

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 CreateCryptoClientFromMnemonic

func CreateCryptoClientFromMnemonic(mnemonic string, language int) (base.CryptoClient, error)

CreateCryptoClientFromMnemonic create CryptoClient by mnemonic

Types

This section is empty.

Directories

Path Synopsis
Package main is the plugin for ampchain default crypto client
Package main is the plugin for ampchain default crypto client

Jump to

Keyboard shortcuts

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