Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SaveDataStorage ¶
type SaveDataStorage struct {
// contains filtered or unexported fields
}
func NewSaveDataStorage ¶
func NewSaveDataStorage(filename string) *SaveDataStorage
func (*SaveDataStorage) GetSaveData ¶
func (s *SaveDataStorage) GetSaveData() (Keyshare, error)
GetSaveData retrieves keyshare. Will lock execution if a resharing or key generation is in progress.
func (*SaveDataStorage) LockShare ¶
func (s *SaveDataStorage) LockShare()
func (*SaveDataStorage) SetSaveData ¶
func (s *SaveDataStorage) SetSaveData(saveData Keyshare) error
SetSaveData overwrites old keyshare with new one. If no key exists, file will be created. Should be protected in code with a lock.
func (*SaveDataStorage) UnlockShare ¶
func (s *SaveDataStorage) UnlockShare()
Click to show internal directories.
Click to hide internal directories.