mock

package
v0.0.0-...-7838e69 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 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

func (s *Service) Multisign(ctx context.Context,
	credentials *checker.Credentials,
	accountNames []string,
	pubKeys [][]byte,
	data []*rules.SignData) ([]core.Result, [][]byte)

Multisign signs multiple generic data.

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

func (s *Service) SignBeaconAttestations(ctx context.Context,
	credentials *checker.Credentials,
	accountNames []string,
	pubKeys [][]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