Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeystoreNames ¶ added in v0.0.14
func KeystoreNames() []string
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) (signer.Signer, error)
GetDecrypter(address []byte, decrypterType byte, deriveKeyOptions multi.OptionsBuilders) (cipher.Decrypter, error)
Store(private crypto.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.