accounts

package
v0.9.38 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2015 License: GPL-3.0, LGPL-2.1-or-later Imports: 9 Imported by: 0

Documentation

Overview

Package implements a private key management facility.

This abstracts part of a user's interaction with an account she controls.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLocked = errors.New("account is locked")
	ErrNoKeys = errors.New("no keys in store")
)

Functions

This section is empty.

Types

type Account

type Account struct {
	Address common.Address
}

type Manager added in v0.9.17

type Manager struct {
	// contains filtered or unexported fields
}

func NewManager added in v0.9.17

func NewManager(keyStore crypto.KeyStore) *Manager

func (*Manager) Accounts added in v0.9.17

func (am *Manager) Accounts() ([]Account, error)

func (*Manager) AddressByIndex added in v0.9.36

func (am *Manager) AddressByIndex(index int) (addr string, err error)

func (*Manager) DeleteAccount added in v0.9.17

func (am *Manager) DeleteAccount(address common.Address, auth string) error

func (*Manager) Export added in v0.9.17

func (am *Manager) Export(path string, addr common.Address, keyAuth string) error

USE WITH CAUTION = this will save an unencrypted private key on disk no cli or js interface

func (*Manager) HasAccount added in v0.9.17

func (am *Manager) HasAccount(addr common.Address) bool

func (*Manager) Import added in v0.9.17

func (am *Manager) Import(path string, keyAuth string) (Account, error)

func (*Manager) ImportPreSaleKey added in v0.9.17

func (am *Manager) ImportPreSaleKey(keyJSON []byte, password string) (acc Account, err error)

func (*Manager) NewAccount added in v0.9.17

func (am *Manager) NewAccount(auth string) (Account, error)

func (*Manager) Sign added in v0.9.17

func (am *Manager) Sign(a Account, toSign []byte) (signature []byte, err error)

func (*Manager) TimedUnlock added in v0.9.17

func (am *Manager) TimedUnlock(addr common.Address, keyAuth string, timeout time.Duration) error

Unlock unlocks the account with the given address. The account stays unlocked for the duration of timeout it timeout is 0 the account is unlocked for the entire session

func (*Manager) Unlock added in v0.9.17

func (am *Manager) Unlock(addr common.Address, keyAuth string) error

unlock indefinitely

func (*Manager) Update added in v0.9.36

func (am *Manager) Update(addr common.Address, authFrom, authTo string) (err error)

Directories

Path Synopsis
Package abi implements the Ethereum ABI (Application Binary Interface).
Package abi implements the Ethereum ABI (Application Binary Interface).

Jump to

Keyboard shortcuts

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