Documentation ¶
Index ¶
- Constants
- func CreateCryptoClient(cryptoType string) (base.CryptoClient, error)
- func CreateCryptoClientFromFilePrivateKey(path string) (base.CryptoClient, error)
- func CreateCryptoClientFromFilePublicKey(path string) (base.CryptoClient, error)
- func CreateCryptoClientFromJSONPrivateKey(jsonKey []byte) (base.CryptoClient, error)
- func CreateCryptoClientFromJSONPublicKey(jsonKey []byte) (base.CryptoClient, error)
- func CreateCryptoClientFromMnemonic(mnemonic string, language int) (base.CryptoClient, error)
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.
Click to show internal directories.
Click to hide internal directories.