runtime

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PersistShareAfterDKG

func PersistShareAfterDKG(ctx context.Context, store ShareStore, share ecdsakeygen.LocalPartySaveData, in DKGPersistInput) error

func PrepareShareForSign

func PrepareShareForSign(ctx context.Context, store ShareStore, runner Runner, in SignPrepareInput) (func(), error)

func ValidateLoadedMeta

func ValidateLoadedMeta(keyID, orgID, algorithm string, meta coreshares.ShareMeta, metadataMismatchErr error) error

Types

type DKGPersistInput

type DKGPersistInput struct {
	KeyID     string
	OrgID     string
	Algorithm string
	Curve     string
}

type DerivedECDSAOutput added in v0.2.0

type DerivedECDSAOutput struct {
	PublicKey string
	Address   string
}

func DeriveECDSAOutputFromShare added in v0.2.0

func DeriveECDSAOutputFromShare(share ecdsakeygen.LocalPartySaveData, missingPublicKeyErr, missingAddressErr error) (DerivedECDSAOutput, error)

type Runner

type Runner interface {
	ImportECDSAKeyShare(key string, data ecdsakeygen.LocalPartySaveData)
	DeleteECDSAKeyShare(key string)
}

type ShareStore

type ShareStore interface {
	SaveShare(ctx context.Context, keyID string, blob []byte, meta coreshares.ShareMeta) error
	LoadShare(ctx context.Context, keyID string) (*coreshares.StoredShare, error)
}

type SignPrepareInput

type SignPrepareInput struct {
	KeyID            string
	OrgID            string
	Algorithm        string
	EmptyKeyErr      error
	MetadataMismatch error
}

Jump to

Keyboard shortcuts

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