Documentation ¶
Index ¶
- type Parameter
- type Service
- func (s *Service) Abort(ctx context.Context, peer *core.Endpoint, account string) error
- func (s *Service) Commit(ctx context.Context, peer *core.Endpoint, account string, ...) ([]byte, []byte, error)
- func (s *Service) Execute(ctx context.Context, peer *core.Endpoint, account string) error
- func (s *Service) Prepare(ctx context.Context, peer *core.Endpoint, account string, passphrase []byte, ...) error
- func (s *Service) SendContribution(ctx context.Context, peer *core.Endpoint, account string, ...) (bls.SecretKey, []bls.PublicKey, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithCACert ¶
WithCACert sets the CA certificate for this module.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
func WithMonitor(monitor metrics.SenderMonitor) Parameter
WithMonitor sets the monitor for this module.
func WithServerCert ¶
WithServerCert sets the server certificate for this module.
func WithServerKey ¶
WithServerKey sets the server key for this module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is used to manage the sender piece of distributed key generation operations.
func (*Service) Commit ¶
func (s *Service) Commit(ctx context.Context, peer *core.Endpoint, account string, confirmationData []byte) ([]byte, []byte, error)
Commit sends a request to the given participant to commit the given DKG.
func (*Service) Execute ¶
Execute sends a request to the given participant to execute the given DKG.
Click to show internal directories.
Click to hide internal directories.