Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ECDSAKeyshare ¶
type ECDSAKeyshare struct {
}
Keyshare stores key received from keygen or resharing and treshold and peers from current signing committee
func NewECDSAKeyshare ¶
func NewECDSAKeyshare(key keygen.LocalPartySaveData, threshold int, peers []peer.ID) ECDSAKeyshare
type ECDSAKeyshareStore ¶
type ECDSAKeyshareStore struct {
// contains filtered or unexported fields
}
func NewECDSAKeyshareStore ¶
func NewECDSAKeyshareStore(filePath string) *ECDSAKeyshareStore
func (*ECDSAKeyshareStore) GetKeyshare ¶
func (ks *ECDSAKeyshareStore) GetKeyshare() (ECDSAKeyshare, error)
GetECDSAKeyshare fetches current keyshare from file. Can be a blocking call if keygen or resharing are pending.
func (*ECDSAKeyshareStore) LockKeyshare ¶
func (ks *ECDSAKeyshareStore) LockKeyshare()
LockKeyshare locks keyshare from reading and writing to prevent keygen or resharing being done in parallel with other tss processes.
func (*ECDSAKeyshareStore) StoreKeyshare ¶
func (ks *ECDSAKeyshareStore) StoreKeyshare(keyshare ECDSAKeyshare) error
StoreKeyshare stores keyshare generated by keygen or reshare into file and truncates old keyshare.
func (*ECDSAKeyshareStore) UnlockKeyshare ¶
func (ks *ECDSAKeyshareStore) UnlockKeyshare()
UnlockKeyshare unlocks keyshare to allow for tss processes to continue
Click to show internal directories.
Click to hide internal directories.