Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service interface { // OnPrepare is called when we receive a request from the given participant to prepare for DKG. OnPrepare(ctx context.Context, sender uint64, account string, passphrase []byte, threshold uint32, participants []*core.Endpoint) error // OnExecute is called when we receive a request from the given participant to execute the given DKG. OnExecute(ctx context.Context, sender uint64, account string) error // OnCommit is called when we receive a request from the given participant to commit the given DKG. OnCommit(ctx context.Context, sender uint64, account string, confirmationData []byte) ([]byte, []byte, error) // OnAbort is called when we receive a request from the given participant to abort the given DKG. OnAbort(ctx context.Context, sender uint64, account string) error // OnGenerate is called when an request to generate a new key is received. OnGenerate(ctx context.Context, credentials *checker.Credentials, account string, passphrase []byte, threshold uint32, numParticipants uint32) ([]byte, []*core.Endpoint, error) // OnContribute is called when we need to swap contributions with another participant. OnContribute(ctx context.Context, sender uint64, account string, secret bls.SecretKey, vVec []bls.PublicKey) (bls.SecretKey, []bls.PublicKey, error) }
Service is the interface for a DKG process.
Click to show internal directories.
Click to hide internal directories.