Versions in this module Expand all Collapse all v0 v0.2.2 Jan 15, 2025 Changes in this version + var ErrInvalidKey = fmt.Errorf("invalid key data") + var ErrKeyDoesNotExist = fmt.Errorf("key does not exist") + var SeedVersion1 = versioned.MustParse("1.0.0") + var SeedVersion11 = versioned.MustParse("1.1.0") + var SeedVersionLatest = SeedVersion11 + func IsTPMEnabled() bool + type FileStore struct + func NewFileStore(path string) *FileStore + func (f *FileStore) Annihilate() error + func (f *FileStore) Exists() (bool, error) + func (f *FileStore) Get() (ed25519.PrivateKey, error) + func (f *FileStore) Kind() string + func (f *FileStore) Set(key ed25519.PrivateKey) error + type Store interface + Annihilate func() error + Exists func() (bool, error) + Get func() (ed25519.PrivateKey, error) + Kind func() string + Set func(key ed25519.PrivateKey) error + type TPMStore struct + func NewTPM() *TPMStore + func (f *TPMStore) Kind() string + func (t *TPMStore) Annihilate() error + func (t *TPMStore) Exists() (bool, error) + func (t *TPMStore) Get() (ed25519.PrivateKey, error) + func (t *TPMStore) Set(key ed25519.PrivateKey) error