mock

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 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{}

Service is a mock.

func New

func New() *Service

New provides a mock signer.

func (*Service) SignAggregateAndProof

func (*Service) SignAggregateAndProof(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Slot,
	_ phase0.Root,
) (
	phase0.BLSSignature,
	error,
)

SignAggregateAndProof signs an aggregate attestation for given slot and root.

func (*Service) SignBeaconAttestation

SignBeaconAttestation signs a beacon attestation.

func (*Service) SignBeaconAttestations

func (*Service) SignBeaconAttestations(_ context.Context,
	_ []e2wtypes.Account,
	_ phase0.Slot,
	_ []phase0.CommitteeIndex,
	_ phase0.Root,
	_ phase0.Epoch,
	_ phase0.Root,
	_ phase0.Epoch,
	_ phase0.Root,
) (
	[]phase0.BLSSignature,
	error,
)

SignBeaconAttestations signs multiple beacon attestations.

func (*Service) SignBeaconBlockProposal

func (*Service) SignBeaconBlockProposal(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Slot,
	_ phase0.ValidatorIndex,
	_ phase0.Root,
	_ phase0.Root,
	_ phase0.Root,
) (
	phase0.BLSSignature,
	error,
)

SignBeaconBlockProposal signs a beacon block proposal.

func (*Service) SignBlobSidecar added in v1.8.0

func (*Service) SignBlobSidecar(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Slot,
	_ phase0.Root,
) (
	phase0.BLSSignature,
	error,
)

SignBlobSidecar signs a blob sidecar proposal.

func (*Service) SignContributionAndProof added in v1.2.0

func (*Service) SignContributionAndProof(_ context.Context,
	_ e2wtypes.Account,
	_ *altair.ContributionAndProof,
) (
	phase0.BLSSignature,
	error,
)

SignContributionAndProof signs a sync committee contribution for given slot and root.

func (*Service) SignRANDAOReveal

func (*Service) SignRANDAOReveal(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Slot,
) (
	phase0.BLSSignature,
	error,
)

SignRANDAOReveal returns a RANDAO signature. This signs an epoch with the "RANDAO" domain.

func (*Service) SignSlotSelection

func (*Service) SignSlotSelection(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Slot,
) (
	phase0.BLSSignature,
	error,
)

SignSlotSelection returns a slot selection signature. This signs a slot with the "selection proof" domain.

func (*Service) SignSyncCommitteeRoot added in v1.2.0

func (*Service) SignSyncCommitteeRoot(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Epoch,
	_ phase0.Root,
) (
	phase0.BLSSignature,
	error,
)

SignSyncCommitteeRoot returns a root signature. This signs a beacon block root with the "sync committee" domain.

func (*Service) SignSyncCommitteeSelection added in v1.2.0

func (*Service) SignSyncCommitteeSelection(_ context.Context,
	_ e2wtypes.Account,
	_ phase0.Slot,
	_ uint64,
) (
	phase0.BLSSignature,
	error,
)

SignSyncCommitteeSelection returns a sync committee selection signature. This signs a slot and subcommittee with the "sync committee selection proof" domain.

func (*Service) SignValidatorRegistration added in v1.6.0

func (*Service) SignValidatorRegistration(_ context.Context,
	_ e2wtypes.Account,
	_ *api.VersionedValidatorRegistration,
) (
	phase0.BLSSignature,
	error,
)

SignValidatorRegistration signs a validator registration.

Jump to

Keyboard shortcuts

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