Documentation ¶
Index ¶
- type Service
- func (*Service) SignAggregateAndProof(_ context.Context, _ e2wtypes.Account, _ phase0.Slot, _ phase0.Root) (phase0.BLSSignature, error)
- func (*Service) SignBeaconAttestation(_ context.Context, _ e2wtypes.Account, _ phase0.Slot, _ phase0.CommitteeIndex, ...) (phase0.BLSSignature, error)
- func (*Service) SignBeaconAttestations(_ context.Context, _ []e2wtypes.Account, _ phase0.Slot, ...) ([]phase0.BLSSignature, error)
- func (*Service) SignBeaconBlockProposal(_ context.Context, _ e2wtypes.Account, _ phase0.Slot, _ phase0.ValidatorIndex, ...) (phase0.BLSSignature, error)
- func (*Service) SignContributionAndProof(_ context.Context, _ e2wtypes.Account, _ *altair.ContributionAndProof) (phase0.BLSSignature, error)
- func (*Service) SignRANDAOReveal(_ context.Context, _ e2wtypes.Account, _ phase0.Slot) (phase0.BLSSignature, error)
- func (*Service) SignSlotSelection(_ context.Context, _ e2wtypes.Account, _ phase0.Slot) (phase0.BLSSignature, error)
- func (*Service) SignSyncCommitteeRoot(_ context.Context, _ e2wtypes.Account, _ phase0.Epoch, _ phase0.Root) (phase0.BLSSignature, error)
- func (*Service) SignSyncCommitteeSelection(_ context.Context, _ e2wtypes.Account, _ phase0.Slot, _ uint64) (phase0.BLSSignature, error)
- func (*Service) SignValidatorRegistration(_ context.Context, _ e2wtypes.Account, _ *api.VersionedValidatorRegistration) (phase0.BLSSignature, error)
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 (*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 ¶
func (*Service) SignBeaconAttestation(_ context.Context, _ e2wtypes.Account, _ phase0.Slot, _ phase0.CommitteeIndex, _ phase0.Root, _ phase0.Epoch, _ phase0.Root, _ phase0.Epoch, _ phase0.Root, ) ( phase0.BLSSignature, error, )
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) 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.