Versions in this module Expand all Collapse all v1 v1.0.2 Jan 27, 2022 v1.0.1 Dec 1, 2021 Changes in this version + type AccountUtils interface + CreateNewAccountWithMnemonic func(language int, strength uint8) (*account.ECDSAAccount, error) + EncryptAccount func(info *account.ECDSAAccount, password string) (*account.ECDSAAccountToCloud, error) + ExportNewAccount func(path string) error + ExportNewAccountWithMnemonic func(path string, language int, strength uint8) error + GenerateMnemonic func(entropy []byte, language int) (string, error) + GenerateSeedWithErrorChecking func(mnemonic string, password string, keyLen int, language int) ([]byte, error) + RetrieveAccountByMnemonic func(mnemonic string, language int) (*account.ECDSAAccount, error) + RetrieveAccountByMnemonicAndSavePrivKey func(path string, language int, mnemonic string, password string) (*account.ECDSAInfo, error) + type CryptoClient interface + type CryptoCore interface + CheckAddressFormat func(address string) (bool, uint8) + DecryptByEcdsaKey func(privateKey *ecdsa.PrivateKey, cypherText []byte) (msg []byte, err error) + EncryptByEcdsaKey func(publicKey *ecdsa.PublicKey, msg []byte) (cypherText []byte, err error) + GenerateKeyBySeed func(seed []byte) (*ecdsa.PrivateKey, error) + GetAddressFromPublicKey func(pub *ecdsa.PublicKey) (string, error) + SignECDSA func(k *ecdsa.PrivateKey, msg []byte) (signature []byte, err error) + VerifyAddressUsingPublicKey func(address string, pub *ecdsa.PublicKey) (bool, uint8) + VerifyECDSA func(k *ecdsa.PublicKey, signature, msg []byte) (valid bool, err error) + VerifyXuperSignature func(publicKeys []*ecdsa.PublicKey, sig []byte, message []byte) (valid bool, err error) + type KeyUtils interface + GenerateEntropy func(bitSize int) ([]byte, error) + GetBinaryEcdsaPrivateKeyFromFile func(path string, password string) ([]byte, error) + GetEcdsaPrivateKeyFromFile func(filename string) (*ecdsa.PrivateKey, error) + GetEcdsaPrivateKeyFromFileByPassword func(path string, password string) (*ecdsa.PrivateKey, error) + GetEcdsaPrivateKeyFromJsonStr func(keyStr string) (*ecdsa.PrivateKey, error) + GetEcdsaPrivateKeyJsonFormatStr func(k *ecdsa.PrivateKey) (string, error) + GetEcdsaPublicKeyFromFile func(filename string) (*ecdsa.PublicKey, error) + GetEcdsaPublicKeyFromJsonStr func(keyStr string) (*ecdsa.PublicKey, error) + GetEcdsaPublicKeyJsonFormatStr func(k *ecdsa.PrivateKey) (string, error) + type MultiSig interface + GenerateMultiSignSignature func(s []byte, r []byte) ([]byte, error) + GetRUsingAllRi func(key *ecdsa.PublicKey, arrayOfRi [][]byte) []byte + GetRandom32Bytes func() ([]byte, error) + GetRiUsingRandomBytes func(key *ecdsa.PublicKey, k []byte) []byte + GetSUsingAllSi func(arrayOfSi [][]byte) []byte + GetSharedPublicKeyForPublicKeys func(keys []*ecdsa.PublicKey) ([]byte, error) + GetSiUsingKCRM func(key *ecdsa.PrivateKey, k []byte, c []byte, r []byte, message []byte) []byte + MultiSign func(keys []*ecdsa.PrivateKey, message []byte) ([]byte, error) + VerifyMultiSig func(keys []*ecdsa.PublicKey, signature, message []byte) (bool, error)