Versions in this module Expand all Collapse all v1 v1.2.0 Jun 18, 2022 Changes in this version + const AliceKey + const BobKey + const CharlieKey + const DaveKey + const EnvPassword + const EthChain + const EveKey + const SubChain + var AliceSr25519 = sr25519.NewKeypairFromKRP(signature.KeyringPair{ ... }) + var BobSr25519 = sr25519.NewKeypairFromKRP(signature.KeyringPair{ ... }) + var CharlieSr25519 = sr25519.NewKeypairFromKRP(signature.KeyringPair{ ... }) + var DaveSr25519 = sr25519.NewKeypairFromKRP(signature.KeyringPair{ ... }) + var EveSr25519 = sr25519.NewKeypairFromKRP(signature.KeyringPair{ ... }) + var Keys = []string + func DecodeKeypair(in []byte, keytype crypto.KeyType) (kp crypto.Keypair, err error) + func Decrypt(data, password []byte) ([]byte, error) + func DecryptKeypair(expectedPubK string, data, password []byte, keytype string) (crypto.Keypair, error) + func Encrypt(msg, password []byte) ([]byte, error) + func EncryptAndWriteToFile(file *os.File, kp crypto.Keypair, password []byte) error + func EncryptKeypair(kp crypto.Keypair, password []byte) ([]byte, error) + func GetPassword(msg string) []byte + func KeypairFromAddress(addr, chainType, path string, insecure bool) (crypto.Keypair, error) + func ReadFromFileAndDecrypt(filename string, password []byte, keytype string) (crypto.Keypair, error) + type EncryptedKeystore struct + Address string + Ciphertext []byte + PublicKey string + Type string + type TestKeyRingHolder struct + EthereumKeys map[string]*secp256k1.Keypair + SubstrateKeys map[string]*sr25519.Keypair + var TestKeyRing *TestKeyRingHolder