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: 4 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{}

Service is the mock signer service.

func New

func New() *Service

New creates a new mock signer service.

func (*Service) Multisign added in v1.1.0

func (s *Service) Multisign(_ context.Context,
	_ *checker.Credentials,
	_ []string,
	_ [][]byte,
	_ []*rules.SignData,
) (
	[]core.Result,
	[][]byte,
)

Multisign signs multiple generic data.

func (*Service) SignBeaconAttestation

func (s *Service) SignBeaconAttestation(_ context.Context,
	_ *checker.Credentials,
	_ string,
	_ []byte,
	_ *rules.SignBeaconAttestationData,
) (
	core.Result,
	[]byte,
)

SignBeaconAttestation signs a beacon attestation.

func (*Service) SignBeaconAttestations added in v0.9.0

func (s *Service) SignBeaconAttestations(_ context.Context,
	_ *checker.Credentials,
	_ []string,
	_ [][]byte,
	data []*rules.SignBeaconAttestationData,
) (
	[]core.Result,
	[][]byte,
)

SignBeaconAttestations signs multiple beacon attestations.

func (*Service) SignBeaconProposal

func (s *Service) SignBeaconProposal(_ context.Context,
	_ *checker.Credentials,
	_ string,
	_ []byte,
	_ *rules.SignBeaconProposalData,
) (
	core.Result,
	[]byte,
)

SignBeaconProposal signs a proposal for a beacon block.

func (*Service) SignGeneric

func (s *Service) SignGeneric(_ context.Context,
	_ *checker.Credentials,
	_ string,
	_ []byte,
	_ *rules.SignData,
) (
	core.Result,
	[]byte,
)

SignGeneric signs generic data.

Jump to

Keyboard shortcuts

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