ledgerwallet

package
v1.13.2-rc4 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2021 License: Apache-2.0, MIT Imports: 15 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LedgerKeyInfo

type LedgerKeyInfo struct {
	Address address.Address
	Path    []uint32
}

type LedgerWallet

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

func NewWallet

func NewWallet(ds dtypes.MetadataDS) *LedgerWallet

func (*LedgerWallet) Get

func (lw *LedgerWallet) Get() api.Wallet

func (LedgerWallet) WalletDelete

func (lw LedgerWallet) WalletDelete(ctx context.Context, k address.Address) error

func (LedgerWallet) WalletExport

func (lw LedgerWallet) WalletExport(ctx context.Context, k address.Address) (*types.KeyInfo, error)

func (LedgerWallet) WalletHas

func (lw LedgerWallet) WalletHas(ctx context.Context, k address.Address) (bool, error)

func (LedgerWallet) WalletImport

func (lw LedgerWallet) WalletImport(ctx context.Context, kinfo *types.KeyInfo) (address.Address, error)

func (LedgerWallet) WalletList

func (lw LedgerWallet) WalletList(ctx context.Context) ([]address.Address, error)

func (LedgerWallet) WalletNew

func (lw LedgerWallet) WalletNew(ctx context.Context, t types.KeyType) (address.Address, error)

func (LedgerWallet) WalletSign

func (lw LedgerWallet) WalletSign(ctx context.Context, signer address.Address, toSign []byte, meta api.MsgMeta) (*crypto.Signature, error)

Jump to

Keyboard shortcuts

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