Documentation ¶
Index ¶
- Constants
- type ColdWallet
- func (w *ColdWallet) Delete(address common.Address, password string) error
- func (w *ColdWallet) Derive(path types.DerivationPath, pin bool) (common.Address, error)
- func (w *ColdWallet) GetPublicKey(address common.Address) (*crypto.PublicKey, error)
- func (w *ColdWallet) ID() string
- func (w *ColdWallet) IsUnlocked(address common.Address) bool
- func (w *ColdWallet) List() ([]common.Address, error)
- func (w *ColdWallet) Lock(address common.Address) error
- func (w *ColdWallet) NewKey(password string) (common.Address, error)
- func (w *ColdWallet) Sign(address common.Address, txrlp common.Bytes) (*crypto.Signature, error)
- func (w *ColdWallet) Status() (string, error)
- func (w *ColdWallet) Unlock(address common.Address, password string, derivationPath types.DerivationPath) error
- func (w *ColdWallet) UpdatePassword(address common.Address, oldPassword, newPassword string) error
- type Hub
Constants ¶
View Source
const LedgerScheme = "ledger"
LedgerScheme is the protocol scheme prefixing account and wallet URLs.
View Source
const TrezorScheme = "trezor"
TrezorScheme is the protocol scheme prefixing account and wallet URLs.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColdWallet ¶
type ColdWallet struct {
// contains filtered or unexported fields
}
func NewColdWallet ¶
func NewColdWallet(hub *Hub, deviceInfo hid.DeviceInfo) (*ColdWallet, error)
func (*ColdWallet) Delete ¶
func (w *ColdWallet) Delete(address common.Address, password string) error
func (*ColdWallet) Derive ¶
func (w *ColdWallet) Derive(path types.DerivationPath, pin bool) (common.Address, error)
func (*ColdWallet) GetPublicKey ¶
func (*ColdWallet) ID ¶
func (w *ColdWallet) ID() string
func (*ColdWallet) IsUnlocked ¶
func (w *ColdWallet) IsUnlocked(address common.Address) bool
func (*ColdWallet) Status ¶
func (w *ColdWallet) Status() (string, error)
func (*ColdWallet) Unlock ¶
func (w *ColdWallet) Unlock(address common.Address, password string, derivationPath types.DerivationPath) error
Neither address nor password is used by the function, silently ignored
func (*ColdWallet) UpdatePassword ¶
func (w *ColdWallet) UpdatePassword(address common.Address, oldPassword, newPassword string) error
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub finds and handles generic USB hardware wallets.
func NewLedgerHub ¶
NewLedgerHub creates a new hardware wallet manager for Ledger devices.
func NewTrezorHub ¶
NewTrezorHub creates a new hardware wallet manager for Trezor devices.
Click to show internal directories.
Click to hide internal directories.