signer

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

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

type Checkpoint struct {
	Epoch uint64
	Root  []byte `ssz-size:"32"`
}

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.

Jump to

Keyboard shortcuts

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