registry

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2021 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) *Keeps

NewKeepsRegistry returns an empty keeps registry.

func (*Keeps) GetKeepsAddresses

func (k *Keeps) GetKeepsAddresses() []common.Address

GetKeepsAddresses returns addresses of all registered keeps.

func (*Keeps) GetSigner added in v1.4.0

func (k *Keeps) GetSigner(keepAddress common.Address) (*tss.ThresholdSigner, error)

GetSigner gets signer for a keep address.

func (*Keeps) HasSigner added in v1.1.0

func (k *Keeps) HasSigner(keepAddress common.Address) 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(
	keepAddress common.Address,
	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(
	keepAddress common.Address,
	signer *tss.ThresholdSigner,
) error

func (*Keeps) UnregisterKeep

func (k *Keeps) UnregisterKeep(keepAddress common.Address)

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