Documentation
¶
Overview ¶
Key store implements different methods of storing the node identity seed on disk
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // SeedVersion1 (binary seed) SeedVersion1 = versioned.MustParse("1.0.0") // SeedVersion11 (json mnemonic) SeedVersion11 = versioned.MustParse("1.1.0") // SeedVersionLatest link to latest seed version SeedVersionLatest = SeedVersion11 )
View Source
var ( ErrKeyDoesNotExist = fmt.Errorf("key does not exist") ErrInvalidKey = fmt.Errorf("invalid key data") )
Functions ¶
func IsTPMEnabled ¶
func IsTPMEnabled() bool
Types ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func NewFileStore ¶
func (*FileStore) Annihilate ¶
type Store ¶
type Store interface {
// Get returns the key from the store
Get() (ed25519.PrivateKey, error)
// Updates, or overrides the current key
Set(key ed25519.PrivateKey) error
// Check if key there is a key stored in the
// store
Exists() (bool, error)
// Destroys the key
Annihilate() error
// Kind returns store kind
Kind() string
}
Click to show internal directories.
Click to hide internal directories.