Documentation ¶
Overview ¶
Code generated by fastssz. DO NOT EDIT.
Index ¶
- type Parameter
- func WithChecker(checker checker.Service) Parameter
- func WithFetcher(fetcher fetcher.Service) Parameter
- func WithLogLevel(logLevel zerolog.Level) Parameter
- func WithMonitor(monitor metrics.SignerMonitor) Parameter
- func WithRuler(ruler ruler.Service) Parameter
- func WithUnlocker(unlocker unlocker.Service) Parameter
- type Service
- func (s *Service) Multisign(ctx context.Context, credentials *checker.Credentials, accountNames []string, ...) ([]core.Result, [][]byte)
- func (s *Service) SignBeaconAttestation(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.Result, []byte)
- func (s *Service) SignBeaconAttestations(ctx context.Context, credentials *checker.Credentials, accountNames []string, ...) ([]core.Result, [][]byte)
- func (s *Service) SignBeaconProposal(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.Result, []byte)
- func (s *Service) SignGeneric(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.Result, []byte)
- type SigningRoot
- func (s *SigningRoot) HashTreeRoot() ([32]byte, error)
- func (s *SigningRoot) HashTreeRootWith(hh *ssz.Hasher) (err error)
- func (s *SigningRoot) MarshalSSZ() ([]byte, error)
- func (s *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)
- func (s *SigningRoot) SizeSSZ() (size int)
- func (s *SigningRoot) UnmarshalSSZ(buf []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Parameter ¶
type Parameter interface {
// contains filtered or unexported methods
}
Parameter is the interface for service parameters.
func WithChecker ¶
WithChecker sets the access checker for this module.
func WithFetcher ¶
WithFetcher sets the account fetcher for this module.
func WithLogLevel ¶
WithLogLevel sets the log level for the module.
func WithMonitor ¶
func WithMonitor(monitor metrics.SignerMonitor) Parameter
WithMonitor sets the monitor for this module.
func WithUnlocker ¶
WithUnlocker sets the account unlocker for this module.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the signer handler.
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 attestation for a beacon block.
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 attestations for a beacon block.
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.
type SigningRoot ¶
SigningRoot is used to generate a single root for signing.
func (*SigningRoot) HashTreeRoot ¶
func (s *SigningRoot) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SigningRoot object
func (*SigningRoot) HashTreeRootWith ¶
func (s *SigningRoot) HashTreeRootWith(hh *ssz.Hasher) (err error)
HashTreeRootWith ssz hashes the SigningRoot object with a hasher
func (*SigningRoot) MarshalSSZ ¶
func (s *SigningRoot) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SigningRoot object
func (*SigningRoot) MarshalSSZTo ¶
func (s *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SigningRoot object to a target array
func (*SigningRoot) SizeSSZ ¶
func (s *SigningRoot) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SigningRoot object
func (*SigningRoot) UnmarshalSSZ ¶
func (s *SigningRoot) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SigningRoot object