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.
Click to show internal directories.
Click to hide internal directories.