aboutsummaryrefslogtreecommitdiffstats
path: root/accounts/accounts_test.go
Commit message (Collapse)AuthorAgeFilesLines
* Address pull request commentsGustav Simonsson2015-02-261-1/+1
| | | | | | * 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-261-2/+51
| | | | | | | * 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
* Fix key store address hex decoding and accounts testGustav Simonsson2015-02-251-1/+13
| | | | 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
|
* Address pull request commentsGustav Simonsson2015-01-281-3/+2
| | | | | | | | | * 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
* Add accounts package and refactor key storesGustav Simonsson2015-01-261-0/+19
* 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