Documentation
¶
Overview ¶
Code generated by fastssz. DO NOT EDIT. Hash: 5eda17470e12ef16532ded8d87a8b3b9b785a785cf9d9c9ddbae057ed1e69096
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) GetTree() (*ssz.Node, error)
- func (s *SigningRoot) HashTreeRoot() ([32]byte, error)
- func (s *SigningRoot) HashTreeRootWith(hh ssz.HashWalker) (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 ¶ added in v1.1.0
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 ¶ added in v0.9.0
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 ¶ added in v0.9.0
SigningRoot is used to generate a single root for signing.
func (*SigningRoot) GetTree ¶ added in v1.2.0
func (s *SigningRoot) GetTree() (*ssz.Node, error)
GetTree ssz hashes the SigningRoot object
func (*SigningRoot) HashTreeRoot ¶ added in v0.9.0
func (s *SigningRoot) HashTreeRoot() ([32]byte, error)
HashTreeRoot ssz hashes the SigningRoot object
func (*SigningRoot) HashTreeRootWith ¶ added in v0.9.0
func (s *SigningRoot) HashTreeRootWith(hh ssz.HashWalker) (err error)
HashTreeRootWith ssz hashes the SigningRoot object with a hasher
func (*SigningRoot) MarshalSSZ ¶ added in v0.9.0
func (s *SigningRoot) MarshalSSZ() ([]byte, error)
MarshalSSZ ssz marshals the SigningRoot object
func (*SigningRoot) MarshalSSZTo ¶ added in v0.9.0
func (s *SigningRoot) MarshalSSZTo(buf []byte) (dst []byte, err error)
MarshalSSZTo ssz marshals the SigningRoot object to a target array
func (*SigningRoot) SizeSSZ ¶ added in v0.9.0
func (s *SigningRoot) SizeSSZ() (size int)
SizeSSZ returns the ssz encoded size in bytes for the SigningRoot object
func (*SigningRoot) UnmarshalSSZ ¶ added in v0.9.0
func (s *SigningRoot) UnmarshalSSZ(buf []byte) error
UnmarshalSSZ ssz unmarshals the SigningRoot object