mock

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

Service is a mock sender service.

func New

func New(id uint64) *Service

New creates a new mock sender service.

func (*Service) Abort

func (s *Service) Abort(ctx context.Context, recipient *core.Endpoint, account string) error

Abort sends a request to the given participant to abort the given DKG.

func (*Service) Commit

func (s *Service) Commit(ctx context.Context, recipient *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

func (s *Service) Execute(ctx context.Context, recipient *core.Endpoint, account string) error

Execute sends a request to the given participant to execute the given DKG.

func (*Service) Prepare

func (s *Service) Prepare(ctx context.Context, recipient *core.Endpoint, account string, passphrase []byte, threshold uint32, participants []*core.Endpoint) error

Prepare sends a request to the given participant to prepare for DKG.

func (*Service) SendContribution

func (s *Service) SendContribution(ctx context.Context, recipient *core.Endpoint, account string, distributionSecret bls.SecretKey, verificationVector []bls.PublicKey) (bls.SecretKey, []bls.PublicKey, error)

SendContribution sends a contribution to a recipient.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL