raw

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 1

Documentation

Index

Constants

View Source
const ModuleName = "lcp.signers.raw"

Variables

View Source
var (
	ErrInvalidLengthConfig        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowConfig          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupConfig = fmt.Errorf("proto: unexpected end of group")
)

Functions

This section is empty.

Types

type Module

type Module struct{}

func (Module) GetCmd

func (Module) GetCmd(ctx *config.Context) *cobra.Command

GetCmd returns the command

func (Module) Name

func (Module) Name() string

Name returns the name of the module

func (Module) RegisterInterfaces

func (Module) RegisterInterfaces(registry codectypes.InterfaceRegistry)

RegisterInterfaces registers the module interfaces to protobuf Any.

type Signer

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

func NewSigner

func NewSigner(privKey *ecdsa.PrivateKey) *Signer

func (*Signer) GetPublicKey

func (s *Signer) GetPublicKey() ([]byte, error)

func (*Signer) Sign

func (s *Signer) Sign(digest []byte) ([]byte, error)

type SignerConfig

type SignerConfig struct {
	PrivateKey string `protobuf:"bytes,1,opt,name=private_key,json=privateKey,proto3" json:"private_key,omitempty"`
}

func (*SignerConfig) Build

func (c *SignerConfig) Build() (signer.Signer, error)

func (*SignerConfig) Descriptor

func (*SignerConfig) Descriptor() ([]byte, []int)

func (*SignerConfig) Marshal

func (m *SignerConfig) Marshal() (dAtA []byte, err error)

func (*SignerConfig) MarshalTo

func (m *SignerConfig) MarshalTo(dAtA []byte) (int, error)

func (*SignerConfig) MarshalToSizedBuffer

func (m *SignerConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignerConfig) ProtoMessage

func (*SignerConfig) ProtoMessage()

func (*SignerConfig) Reset

func (m *SignerConfig) Reset()

func (*SignerConfig) Size

func (m *SignerConfig) Size() (n int)

func (*SignerConfig) String

func (m *SignerConfig) String() string

func (*SignerConfig) Unmarshal

func (m *SignerConfig) Unmarshal(dAtA []byte) error

func (*SignerConfig) Validate

func (c *SignerConfig) Validate() error

func (*SignerConfig) XXX_DiscardUnknown

func (m *SignerConfig) XXX_DiscardUnknown()

func (*SignerConfig) XXX_Marshal

func (m *SignerConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignerConfig) XXX_Merge

func (m *SignerConfig) XXX_Merge(src proto.Message)

func (*SignerConfig) XXX_Size

func (m *SignerConfig) XXX_Size() int

func (*SignerConfig) XXX_Unmarshal

func (m *SignerConfig) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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