Documentation
¶
Index ¶
- type BeaconAttestation
- type BeaconBlockHeader
- type Checkpoint
- type Service
- func (s *Service) Sign(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.RulesResult, []byte)
- func (s *Service) SignBeaconAttestation(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.RulesResult, []byte)
- func (s *Service) SignBeaconProposal(ctx context.Context, credentials *checker.Credentials, accountName string, ...) (core.RulesResult, []byte)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BeaconAttestation ¶ added in v0.1.1
type BeaconAttestation struct {
Slot uint64
CommitteeIndex uint64
BeaconBlockRoot []byte `ssz-size:"32"`
Source *Checkpoint
Target *Checkpoint
}
BeaconAttestation is a copy of the Ethereum 2 BeaconAttestation struct with SSZ size information.
type BeaconBlockHeader ¶ added in v0.1.1
type BeaconBlockHeader struct {
Slot uint64
ProposerIndex uint64
ParentRoot []byte `ssz-size:"32"`
StateRoot []byte `ssz-size:"32"`
BodyRoot []byte `ssz-size:"32"`
}
BeaconBlockHeader is a copy of the Ethereum 2 BeaconBlockHeader struct with SSZ size information.
type Checkpoint ¶ added in v0.1.1
Checkpoint is a copy of the Ethereum 2 Checkpoint struct with SSZ size information.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the signer handler.
func New ¶ added in v0.1.1
func New(unlocker autounlocker.Service, checker checker.Service, fetcher fetcher.Service, ruler ruler.Service) (*Service, error)
New creates a new signer handler.
func (*Service) Sign ¶
func (s *Service) Sign(ctx context.Context, credentials *checker.Credentials, accountName string, pubKey []byte, data *ruler.SignData) (core.RulesResult, []byte)
Sign signs generic data.
func (*Service) SignBeaconAttestation ¶ added in v0.1.1
func (s *Service) SignBeaconAttestation(ctx context.Context, credentials *checker.Credentials, accountName string, pubKey []byte, data *ruler.SignBeaconAttestationData) (core.RulesResult, []byte)
SignBeaconAttestation signs a attestation for a beacon block.
func (*Service) SignBeaconProposal ¶ added in v0.1.1
func (s *Service) SignBeaconProposal(ctx context.Context, credentials *checker.Credentials, accountName string, pubKey []byte, data *ruler.SignBeaconProposalData) (core.RulesResult, []byte)
SignBeaconProposal signs a proposal for a beacon block.
Click to show internal directories.
Click to hide internal directories.