Documentation ¶
Index ¶
- type Config
- type Service
- func (*Service) OnAbort(_ context.Context, _ uint64, _ string) error
- func (*Service) OnCommit(_ context.Context, _ uint64, _ string, _ []byte) ([]byte, []byte, error)
- func (*Service) OnContribute(_ context.Context, _ uint64, _ string, _ bls.SecretKey, _ []bls.PublicKey) (bls.SecretKey, []bls.PublicKey, error)
- func (*Service) OnExecute(_ context.Context, _ uint64, _ string) error
- func (*Service) OnGenerate(_ context.Context, _ *checker.Credentials, _ string, _ []byte, _ uint32, ...) ([]byte, []*core.Endpoint, error)
- func (*Service) OnPrepare(_ context.Context, _ uint64, _ string, _ []byte, _ uint32, _ []*core.Endpoint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { CheckerSvc checker.Service SenderSvc sender.Service PeersSvc *peers.Service ID uint64 Endpoints map[uint64]string Stores []e2wtypes.Store GenerationPassphrase []byte }
Config is the configuration for the mock process service.
type Service ¶
type Service struct { }
Service is a mock service for distributed key generation.
func (*Service) OnAbort ¶
OnAbort is called when we receive a request from the given participant to abort the given DKG.
func (*Service) OnCommit ¶
OnCommit is called when we receive a request from the given participant to commit the given DKG.
func (*Service) OnContribute ¶
func (*Service) OnContribute(_ context.Context, _ uint64, _ string, _ bls.SecretKey, _ []bls.PublicKey) (bls.SecretKey, []bls.PublicKey, error)
OnContribute is called when we need to swap contributions with another participant.
func (*Service) OnExecute ¶
OnExecute is called when we receive a request from the given participant to execute the given DKG.
Click to show internal directories.
Click to hide internal directories.