Documentation ¶
Index ¶
- type Keeps
- func (k *Keeps) GetKeepsIDs() []chain.ID
- func (k *Keeps) GetSigner(keepID chain.ID) (*tss.ThresholdSigner, error)
- func (k *Keeps) HasSigner(keepID chain.ID) bool
- func (k *Keeps) LoadExistingKeeps()
- func (k *Keeps) RegisterSigner(keepID chain.ID, signer *tss.ThresholdSigner) error
- func (k *Keeps) SnapshotSigner(keepID chain.ID, signer *tss.ThresholdSigner) error
- func (k *Keeps) UnregisterKeep(keepID chain.ID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keeps ¶
type Keeps struct {
// contains filtered or unexported fields
}
Keeps represents a collection of keeps in which the given client is a member.
func NewKeepsRegistry ¶
func NewKeepsRegistry( persistence persistence.Handle, unmarshalIDFunc func(string) (chain.ID, error), ) *Keeps
NewKeepsRegistry returns an empty keeps registry.
func (*Keeps) GetKeepsIDs ¶ added in v1.8.0
GetKeepsIDs returns ids of all registered keeps.
func (*Keeps) HasSigner ¶ added in v1.1.0
HasSigner returns true if at least one signer exists in the registry for the keep with the given addres.
func (*Keeps) LoadExistingKeeps ¶
func (k *Keeps) LoadExistingKeeps()
LoadExistingKeeps iterates over all signers stored on disk and loads them into memory
func (*Keeps) RegisterSigner ¶
RegisterSigner registers that a signer was successfully created for the given keep.
func (*Keeps) SnapshotSigner ¶ added in v1.4.0
SnapshotSigner stores a snapshot of a keep address with its signer
func (*Keeps) UnregisterKeep ¶
UnregisterKeep archives threeshold signer info for the given keep address.
Click to show internal directories.
Click to hide internal directories.