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: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler is the signer handler, allowing access to signer functions through grpc.

func New

func New(signer *signersvc.Service) *Handler

New creates a new signer handler.

func (*Handler) Sign

func (h *Handler) Sign(ctx context.Context, req *pb.SignRequest) (*pb.SignResponse, error)

Sign signs generic data.

func (*Handler) SignBeaconAttestation

func (h *Handler) SignBeaconAttestation(ctx context.Context, req *pb.SignBeaconAttestationRequest) (*pb.SignResponse, error)

SignBeaconAttestation signs a attestation for a beacon block.

func (*Handler) SignBeaconProposal

func (h *Handler) SignBeaconProposal(ctx context.Context, req *pb.SignBeaconProposalRequest) (*pb.SignResponse, error)

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