signer

package
v0.0.0-...-7838e69 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: Apache-2.0 Imports: 11 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 {
	pb.UnimplementedSignerServer
	// contains filtered or unexported fields
}

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

func New

func New(ctx context.Context, params ...Parameter) (*Handler, error)

New creates a new signer handler.

func (*Handler) Multisign

func (h *Handler) Multisign(ctx context.Context, req *pb.MultisignRequest) (*pb.MultisignResponse, error)

Multisign signs generic data.

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) SignBeaconAttestations

func (h *Handler) SignBeaconAttestations(ctx context.Context, req *pb.SignBeaconAttestationsRequest) (*pb.MultisignResponse, error)

SignBeaconAttestations signs multiple beacon attestations.

func (*Handler) SignBeaconProposal

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

SignBeaconProposal signs a proposal for a beacon block.

type Parameter

type Parameter interface {
	// contains filtered or unexported methods
}

Parameter is the interface for service parameters.

func WithLogLevel

func WithLogLevel(logLevel zerolog.Level) Parameter

WithLogLevel sets the log level for the module.

func WithSigner

func WithSigner(signer signer.Service) Parameter

WithSigner sets the signer service for the module.

Jump to

Keyboard shortcuts

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