Documentation ¶
Index ¶
- type Config
- type Service
- func (s *Service) OnAbort(ctx context.Context, sender uint64, account string) error
- func (s *Service) OnCommit(ctx context.Context, sender uint64, account string, confirmationData []byte) ([]byte, []byte, error)
- func (s *Service) OnContribute(ctx context.Context, sender uint64, account string, secret bls.SecretKey, ...) (bls.SecretKey, []bls.PublicKey, error)
- func (s *Service) OnExecute(ctx context.Context, sender uint64, account string) error
- func (s *Service) OnGenerate(ctx context.Context, credentials *checker.Credentials, account string, ...) ([]byte, []*core.Endpoint, error)
- func (s *Service) OnPrepare(ctx context.Context, sender uint64, account string, passphrase []byte, ...) 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 ¶
func (s *Service) OnCommit(ctx context.Context, sender uint64, account string, confirmationData []byte) ([]byte, []byte, error)
OnCommit is called when we receive a request from the given participant to commit the given DKG.
func (*Service) OnContribute ¶
func (s *Service) OnContribute(ctx context.Context, sender uint64, account string, secret bls.SecretKey, vVec []bls.PublicKey) (bls.SecretKey, []bls.PublicKey, error)
OnContribute is 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.