keyshare

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2025 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSAKeyshare

type ECDSAKeyshare struct {
	Key       keygen.LocalPartySaveData
	Threshold int
	Peers     []peer.ID
}

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

Jump to

Keyboard shortcuts

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