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
type FrostKeyshare ¶
type FrostKeyshare struct {
}
func NewFrostKeyshare ¶
func NewFrostKeyshare(key *frost.TaprootConfig, threshold int, peers []peer.ID) FrostKeyshare
type FrostKeyshareStore ¶
type FrostKeyshareStore struct {
// contains filtered or unexported fields
}
func NewFrostKeyshareStore ¶
func NewFrostKeyshareStore(filePath string) *FrostKeyshareStore
func (*FrostKeyshareStore) GetKeyshare ¶
func (ks *FrostKeyshareStore) GetKeyshare() (FrostKeyshare, error)
GetFrostKeyshare fetches current keyshare from file. Can be a blocking call if keygen or resharing are pending.
func (*FrostKeyshareStore) LockKeyshare ¶
func (ks *FrostKeyshareStore) LockKeyshare()
LockKeyshare locks keyshare from reading and writing to prevent keygen or resharing being done in parallel with other tss processes.
func (*FrostKeyshareStore) StoreKeyshare ¶
func (ks *FrostKeyshareStore) StoreKeyshare(keyshare FrostKeyshare) error
StoreFrostKeyshare stores frost keyshare generated by keygen or reshare into file and truncates old keyshare.
func (*FrostKeyshareStore) UnlockKeyshare ¶
func (ks *FrostKeyshareStore) UnlockKeyshare()
UnlockKeyshare unlocks keyshare to allow for tss processes to continue