Documentation ¶
Index ¶
- Constants
- func CreateCryptoClient(cryptoType string) (base.CryptoClient, error)
- func CreateCryptoClientFromJSONPrivateKey(jsonKey []byte) (base.CryptoClient, error)
- func CreateCryptoClientFromJSONPublicKey(jsonKey []byte) (base.CryptoClient, error)
- func Drivers() []string
- func Register(name string, f NewCryptoFunc)
- type NewCryptoFunc
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 Register ¶
func Register(name string, f NewCryptoFunc)
Types ¶
type NewCryptoFunc ¶
type NewCryptoFunc func() base.CryptoClient
Click to show internal directories.
Click to hide internal directories.