types

package
v0.0.0-...-4d9f4f2 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2021 License: GPL-3.0 Imports: 2 Imported by: 0

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