registry

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 14, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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

func (k *Keeps) GetKeepsIDs() []chain.ID

GetKeepsIDs returns ids of all registered keeps.

func (*Keeps) GetSigner added in v1.4.0

func (k *Keeps) GetSigner(keepID chain.ID) (*tss.ThresholdSigner, error)

GetSigner gets signer for a keep address.

func (*Keeps) HasSigner added in v1.1.0

func (k *Keeps) HasSigner(keepID chain.ID) bool

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

func (k *Keeps) RegisterSigner(
	keepID chain.ID,
	signer *tss.ThresholdSigner,
) error

RegisterSigner registers that a signer was successfully created for the given keep.

func (*Keeps) SnapshotSigner added in v1.4.0

func (k *Keeps) SnapshotSigner(
	keepID chain.ID,
	signer *tss.ThresholdSigner,
) error

SnapshotSigner stores a snapshot of a keep address with its signer

func (*Keeps) UnregisterKeep

func (k *Keeps) UnregisterKeep(keepID chain.ID)

UnregisterKeep archives threeshold signer info for the given keep address.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL