keystore

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const MAX_PASSPHRASE_LENGTH = 50

Variables

This section is empty.

Functions

This section is empty.

Types

type Driver

type Driver interface {
	Status() (string, error)
	Open(device io.ReadWriter, password string) error
	Close() error
	Heartbeat() error
	Derive(path types.DerivationPath) (common.Address, error)
	SignTx(path types.DerivationPath, txrlp common.Bytes) (common.Address, *crypto.Signature, error)
}

Driver abstracts the functionality of the hardware wallet

func NewLedgerDriver

func NewLedgerDriver() Driver

NewLedgerDriver creates a new instance of a Ledger USB protocol driver.

func NewTrezorDriver

func NewTrezorDriver() Driver

newTrezorDriver creates a new instance of a Trezor USB protocol driver.

Directories

Path Synopsis
Package trezor contains the wire protocol wrapper in Go.
Package trezor contains the wire protocol wrapper in Go.

Jump to

Keyboard shortcuts

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