aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
Commit message (Collapse)AuthorAgeFilesLines
* settable etherbasezelig2015-03-271-7/+1
| | | | | | | | - etherbase flag for block reward destination - coinbase => etherbase - CLI- eth Config -> eth, xeth -> RPC / Miner - use primary instead of coinbase as the unlock magic wildcard - accounts: firstAddr/Coinbase -> Primary
* max paranoia mode to UNsupport unencrypted keys entirelyzelig2015-03-271-0/+2
| | | | | | | - remove account export functionality from CLI - remove accountExport method, - remove unencrypted-keys flag from everywhere - improve documentation
* unlocking coinbase without knowing addresszelig2015-03-271-15/+3
| | | | | - accounts: remove Manager.getKey - cli: for -unlock coinbase, use account manager Coinbase()
* cli: implement ethereum presale wallet import via clizelig2015-03-271-0/+12
|
* unlocking coinbasezelig2015-03-271-2/+13
| | | | | - extract accounts.getKey method - if given empty address it retrieves coinbase (first account) - cli -unlock coinbase will unlock coinbase
* import/export accountszelig2015-03-271-0/+20
| | | | | | | | | | | - cli: add passwordfile flag - cli: change unlock flag only takes account - cli: with unlock you are prompted for password or use passfile with password flag - cli: unlockAccount used in normal client start (run) and accountExport - cli: getPassword used in accountCreate and accountImport - accounts: Manager.Import, Manager.Export - crypto: SaveECDSA (to complement LoadECDSA) to save to file - crypto: NewKeyFromECDSA added (used in accountImport and New = generated constructor)
* Moved ethutil => commonobscuren2015-03-162-10/+10
|
* accounts: return ErrNoKeys if key directory does not existFelix Lange2015-03-101-2/+7
|
* accounts: add {Timed,}Unlock, remove SignLockedFelix Lange2015-03-102-55/+55
|
* Merge ethereum/poc-9 into accounts-integrationFelix Lange2015-03-101-106/+0
|\ | | | | | | | | | | | | | | | | | | Conflicts: cmd/utils/cmd.go cmd/utils/flags.go core/manager.go eth/backend.go rpc/http/server.go xeth/xeth.go
| * removedobscuren2015-03-081-106/+0
| |
* | accounts: add Manager.HasAccount, delete Manager.DefaultFelix Lange2015-03-101-9/+11
| |
* | accounts: don't store address in unlocked and add commentaryFelix Lange2015-03-081-8/+10
| | | | | | | | This was suggested during review.
* | accounts: AccountManager -> ManagerFelix Lange2015-03-082-15/+15
| |
* | accounts: prevent early drops and zero keys in memory when droppingFelix Lange2015-03-081-19/+50
| | | | | | | | | | Private keys would be locked early if SignLocked was called more than once because the unlockLater was still running. Terminate it properly.
* | accounts: fix uses of sync.RWMutexFelix Lange2015-03-081-4/+6
| | | | | | | | | | RWMutexes must be write-locked when writing in order to actually protect the writes.
* | accounts: use time.Duration correctlyFelix Lange2015-03-082-13/+14
| | | | | | | | | | | | | | There is no point to using time.Duration if the value is interpreted as milliseconds. Callers should use the standard multiplication idiom to choose the unit. In fact, the only caller outside of the tests already does so.
* | accounts: use pointers consistentlyFelix Lange2015-03-082-16/+13
| | | | | | | | | | | | | | | | Account is now always a non-pointer. This will be important once the manager starts remembering accounts. AccountManager is now always a pointer because it contains locks and locks cannot be copied.
* | accounts, core, eth, xeth: use account manager for everythingFelix Lange2015-03-071-7/+32
|/ | | | | The account manager is now responsible for picking the default account and the coinbase.
* Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into developobscuren2015-02-262-11/+92
|\ | | | | | | | | Conflicts: accounts/account_manager.go
| * Remove unneeded initialisation of mutexGustav Simonsson2015-02-261-1/+0
| |
| * Address pull request commentsGustav Simonsson2015-02-262-17/+19
| | | | | | | | | | | | * Use RWMutex instead of Mutex * Use time.Duration instead of int for unlock time * Use time.After with select instead of time.Sleep
| * Add automatic locking / unlocking of accountsGustav Simonsson2015-02-262-11/+90
| | | | | | | | | | | | | | * Change account signing API to two sign functions; Sign without passphrase - works if account is unlocked Sign with passphrase - always works and unlocks the account * Account stays unlocked for X ms and is then automatically locked
* | wipobscuren2015-02-261-0/+1
|/
* Fix key store address hex decoding and accounts testGustav Simonsson2015-02-252-1/+17
| | | | Thanks to https://github.com/jaekwon for original fix!
* Implement OS sensitive dataDirsMaran2015-02-231-1/+2
|
* accounts: use crypto/randentropy in testFelix Lange2015-02-201-2/+4
|
* Merge branch 'key_store_and_accounts_integration' of ↵obscuren2015-01-292-19/+14
|\ | | | | | | https://github.com/Gustav-Simonsson/go-ethereum into Gustav-Simonsson-key_store_and_accounts_integration
| * Address pull request commentsGustav Simonsson2015-01-282-19/+14
| | | | | | | | | | | | | | | | | | * Use crypto.Sign instead of directly calling secp256k1 lib * Rename UserAccount to Account and Addr to Address (for consistency) * Change AccountManager.Sign to take ptr to Account instead of address byte array * Simplify copying of Accounts in Accounts() * PubkeyToAddress and GetEntropyCSPRNG now exported
* | Implemented contract ABIobscuren2015-01-277-0/+969
|/
* Add accounts package and refactor key storesGustav Simonsson2015-01-262-0/+118
* Add initial UserAccount and AccountManager structs * Add NewAccount, Sign and Accounts functions * Refactor key stores to use key address as main identifier while keeping the UUID. * Use key address as file/dir names instead of UUID