Documentation ¶
Overview ¶
This file is part of go-ethereum go-ethereum is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. go-ethereum is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with go-ethereum. If not, see <http://www.gnu.org/licenses/>.
*
- @authors
- Gustav Simonsson <gustav.simonsson@gmail.com>
- @date 2015 *
This abstracts part of a user's interaction with an account she controls. It's not an abstraction of core Ethereum accounts data type / logic - for that see the core processing code of blocks / txs.
Currently this is pretty much a passthrough to the KeyStore2 interface, and accounts persistence is derived from stored keys' addresses
Index ¶
- Variables
- type Account
- type AccountManager
- func (am *AccountManager) Accounts() ([]Account, error)
- func (am AccountManager) DeleteAccount(address []byte, auth string) error
- func (am AccountManager) NewAccount(auth string) (*Account, error)
- func (am *AccountManager) Sign(fromAccount *Account, toSign []byte) (signature []byte, err error)
- func (am *AccountManager) SignLocked(fromAccount *Account, keyAuth string, toSign []byte) (signature []byte, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrLocked = errors.New("account is locked; please request passphrase")
Functions ¶
This section is empty.
Types ¶
type AccountManager ¶
type AccountManager struct {
// contains filtered or unexported fields
}
func NewAccountManager ¶
func NewAccountManager(keyStore crypto.KeyStore2, unlockMilliseconds time.Duration) AccountManager
func (*AccountManager) Accounts ¶
func (am *AccountManager) Accounts() ([]Account, error)
func (AccountManager) DeleteAccount ¶
func (am AccountManager) DeleteAccount(address []byte, auth string) error
func (AccountManager) NewAccount ¶
func (am AccountManager) NewAccount(auth string) (*Account, error)
func (*AccountManager) Sign ¶
func (am *AccountManager) Sign(fromAccount *Account, toSign []byte) (signature []byte, err error)
func (*AccountManager) SignLocked ¶
Click to show internal directories.
Click to hide internal directories.