Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var DefaultBaseDerivationPath = DerivationPath{0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0, 0}
DefaultBaseDerivationPath is the base path from which custom derivation endpoints are incremented. As such, the first account will be at m/44'/60'/0'/0, the second at m/44'/60'/0'/1, etc.
var DefaultLedgerBaseDerivationPath = DerivationPath{0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0}
DefaultLedgerBaseDerivationPath is the base path from which custom derivation endpoints are incremented. As such, the first account will be at m/44'/60'/0'/0, the second at m/44'/60'/0'/1, etc.
var DefaultRootDerivationPath = DerivationPath{0x80000000 + 44, 0x80000000 + 60, 0x80000000 + 0, 0}
DefaultRootDerivationPath is the root path to which custom derivation endpoints are appended. As such, the first account will be at m/44'/60'/0'/0, the second at m/44'/60'/0'/1, etc.
Functions ¶
This section is empty.
Types ¶
type DerivationPath ¶
type DerivationPath []uint32
DerivationPath represents the computer friendly version of a hierarchical deterministic wallet account derivaion path.
type Wallet ¶
type Wallet interface { ID() string Status() (string, error) List() ([]common.Address, error) NewKey(password string) (common.Address, error) Unlock(address common.Address, password string, derivationPath DerivationPath) error Lock(address common.Address) error IsUnlocked(address common.Address) bool Delete(address common.Address, password string) error UpdatePassword(address common.Address, oldPassword, newPassword string) error Derive(path DerivationPath, pin bool) (common.Address, error) GetPublicKey(address common.Address) (*crypto.PublicKey, error) Sign(address common.Address, txrlp common.Bytes) (*crypto.Signature, error) }
type WalletType ¶
type WalletType int
const ( WalletTypeSoft WalletType = iota WalletTypeColdNano WalletTypeColdTrezor )