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.
Click to show internal directories.
Click to hide internal directories.