types

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: 2 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
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.

View Source
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
)

Jump to

Keyboard shortcuts

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