hd

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 16 Imported by: 1

Documentation

Index

Constants

View Source
const ModuleName = "ethereum.signers.hd"

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(chainID *big.Int, mnemonic, path string) (*Signer, error)

func (*Signer) Address

func (s *Signer) Address() common.Address

func (*Signer) Sign

func (s *Signer) Sign(address common.Address, tx *types.Transaction) (*types.Transaction, error)

type SignerConfig

type SignerConfig struct {
	Mnemonic string `protobuf:"bytes,1,opt,name=mnemonic,proto3" json:"mnemonic,omitempty"`
	Path     string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"`
}

func (*SignerConfig) Build

func (c *SignerConfig) Build(chainID *big.Int) (ethereum.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