mock

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2021 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) SignBeaconAttestation

func (s *Service) SignBeaconAttestation(ctx context.Context,
	credentials *checker.Credentials,
	accountName string,
	pubKey []byte,
	data *rules.SignBeaconAttestationData) (core.Result, []byte)

SignBeaconAttestation signs a beacon attestation.

func (*Service) SignBeaconAttestations added in v0.9.0

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

SignBeaconAttestations signs multiple beacon attestations.

func (*Service) SignBeaconProposal

func (s *Service) SignBeaconProposal(ctx context.Context,
	credentials *checker.Credentials,
	accountName string,
	pubKey []byte,
	data *rules.SignBeaconProposalData) (core.Result, []byte)

SignBeaconProposal signs a proposal for a beacon block.

func (*Service) SignGeneric

func (s *Service) SignGeneric(ctx context.Context,
	credentials *checker.Credentials,
	accountName string,
	pubKey []byte,
	data *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