Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncryptedKey ¶
type EncryptedKey struct { Address string `json:"address"` CipherText []byte `json:"cipher-text"` CurveType string `json:"curve-type"` ID string `json:"id"` Timestamp time.Time `json:"timestamp"` Version string `json:"version"` // KDF Key Definition Function StorageCipher string `json:"storage-cipher"` KDF string `json:"kdf"` ScryptParams *scrypt.DeriveOpts `json:"scrypt-params"` }
EncryptedKey the data object when storing or retrieving a private key
type Store ¶
type Store interface { GetSigner(address []byte, chain string, deriveKeyOptions multi.OptionsBuilders) (mailbox.Signer, error) GetDecrypter(address []byte, decrypterType byte, deriveKeyOptions multi.OptionsBuilders) (cipher.Decrypter, error) Store(private keys.PrivateKey, curveType string, deriveKeyOptions multi.OptionsBuilders) (address []byte, err error) HasAddress(address []byte) bool GetAddresses() ([][]byte, error) }
Store private keys but does not return them, instead return decrypter or signer.
Click to show internal directories.
Click to hide internal directories.