sender

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	// Prepare sends a request to the given participant to prepare for DKG.
	Prepare(ctx context.Context,
		recipient *core.Endpoint,
		account string,
		passphrase []byte,
		threshold uint32,
		participants []*core.Endpoint) error
	// Execute sends a request to the given participant to execute the given DKG.
	Execute(ctx context.Context, recipient *core.Endpoint, account string) error
	// Commit sends a request to the given participant to commit the given DKG.
	Commit(ctx context.Context, recipient *core.Endpoint, account string, confirmationData []byte) ([]byte, []byte, error)
	// Abort sends a request to the given participant to abort the given DKG.
	Abort(ctx context.Context, recipient *core.Endpoint, account string) error
	// SendContribution sends a contribution to a recipient.
	SendContribution(ctx context.Context, recipient *core.Endpoint, account string, distributionSecret bls.SecretKey, verificationVector []bls.PublicKey) (bls.SecretKey, []bls.PublicKey, error)
}

Service is the interface for a DKG sender.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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