Jeffrey Wilcke
bddf8f76c8
account/abi: implements event parsing
...
Implementation of basic event parsing and its input types. This
separates methods and events and fixes an issue with go type parsing and
validation.
9 years ago
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
9 years ago
Bas van Kervel
eae81465c1
rpc: new RPC implementation with pub/sub support
9 years ago
Péter Szilágyi
2e43414c79
accounts: increase re-lock timeout to account for slow CI servers
9 years ago
Jeffrey Wilcke
a0bf2ea7e7
accounts/abi: added output parsing & added call mechanism
...
Added calling mechanism and return value parsing
9 years ago
Jeffrey Wilcke
1f72952f04
accounts/abi: ABI fixes & added types
...
Changed field `input` to new `inputs`. Addad Hash and Address as input
types.
Added bytes[N] and N validation
9 years ago
Felix Lange
5aec1d94ad
accounts: bump timeout and spin less in TestSignRace
...
This should fix the flakeyness.
9 years ago
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
9 years ago
Felix Lange
3f047be5aa
all: update license headers to distiguish GPL/LGPL
...
All code outside of cmd/ is licensed as LGPL. The headers
now reflect this by calling the whole work "the go-ethereum library".
9 years ago
Felix Lange
7662dd9bbb
accounts: fix data race when key is locked after the unlock timeout
...
While here, also improve the docs and speed up the tests.
The tests used the scrypt keystore with ridiculous settins and took 20s
each.
9 years ago
zelig
c3f5403b64
fix wallet key duplicate write - how did it get there? mystery. fixes #1411
10 years ago
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
10 years ago
Felix Lange
e813626ee1
all: remove @author comments
10 years ago
Felix Lange
ea54283b30
all: update license information
10 years ago
zelig
1959346793
account update: migrate or change password
...
* account.Update
* KeyStore.Cleanup
* fix dir rm for old format deleteKey
10 years ago
zelig
fc17a527bc
fix account ordering
...
* chronological order of creation
* new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex>
* KeyStore2 -> KeyStore
* backward compatibility
* refactor keyStore methods
10 years ago
zelig
fc2e33c594
unlock multiple passes and obsolete primary
...
* multiple passwords allowed in password file
* split on "\n", sideeffect: chop trailing slashes. fixes common mistake <(echo 'pass')
* remove accounts.Primary method
* do not fall back to primary account for mining
10 years ago
zelig
1d72aaa0cd
simplify account unlocking
10 years ago
Bas van Kervel
1fa48bc5e7
Introduced default unlock duration when an account is unlocked from the console
10 years ago
Gustav Simonsson
da9fe951da
Use common.Address type for accounts.Address
10 years ago
zelig
b375bbee5f
settable etherbase
...
- 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
10 years ago
zelig
7577d12614
max paranoia mode to UNsupport unencrypted keys entirely
...
- remove account export functionality from CLI
- remove accountExport method,
- remove unencrypted-keys flag from everywhere
- improve documentation
10 years ago
zelig
11d2ebc06f
unlocking coinbase without knowing address
...
- accounts: remove Manager.getKey
- cli: for -unlock coinbase, use account manager Coinbase()
10 years ago
zelig
d1b52efdb5
cli: implement ethereum presale wallet import via cli
10 years ago
zelig
fd8d18ec28
unlocking coinbase
...
- extract accounts.getKey method - if given empty address it retrieves coinbase (first account)
- cli -unlock coinbase will unlock coinbase
10 years ago
zelig
c4ea921876
import/export accounts
...
- 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)
10 years ago
obscuren
b523441361
Moved ethutil => common
10 years ago
Felix Lange
4ba7871374
accounts: return ErrNoKeys if key directory does not exist
10 years ago
Felix Lange
487f68ec48
accounts: add {Timed,}Unlock, remove SignLocked
10 years ago
Felix Lange
c2e5dacf55
accounts: add Manager.HasAccount, delete Manager.Default
10 years ago
Felix Lange
6684ef201a
accounts: don't store address in unlocked and add commentary
...
This was suggested during review.
10 years ago
Felix Lange
fb53a9362e
accounts: AccountManager -> Manager
10 years ago
Felix Lange
3750ec7b7d
accounts: prevent early drops and zero keys in memory when dropping
...
Private keys would be locked early if SignLocked was called more than
once because the unlockLater was still running. Terminate it properly.
10 years ago
obscuren
405c0ca4b0
removed
10 years ago
Felix Lange
d6a7332993
accounts: fix uses of sync.RWMutex
...
RWMutexes must be write-locked when writing in order
to actually protect the writes.
10 years ago
Felix Lange
afc530ea41
accounts: use time.Duration correctly
...
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.
10 years ago
Felix Lange
fda7b4c79d
accounts: use pointers consistently
...
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.
10 years ago
Felix Lange
d66f93cecd
accounts, core, eth, xeth: use account manager for everything
...
The account manager is now responsible for picking the
default account and the coinbase.
10 years ago
obscuren
5ab0eaa06d
wip
10 years ago
Gustav Simonsson
23f2658091
Remove unneeded initialisation of mutex
10 years ago
Gustav Simonsson
d1311c53ee
Address pull request comments
...
* Use RWMutex instead of Mutex
* Use time.Duration instead of int for unlock time
* Use time.After with select instead of time.Sleep
10 years ago
Gustav Simonsson
b296b36d2b
Add automatic locking / unlocking of accounts
...
* 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
10 years ago
Gustav Simonsson
923950ccaa
Fix key store address hex decoding and accounts test
...
Thanks to https://github.com/jaekwon for original fix!
10 years ago
Maran
40adb7feb6
Implement OS sensitive dataDirs
10 years ago
Felix Lange
4ab7a290cd
accounts: use crypto/randentropy in test
10 years ago
Gustav Simonsson
8d9752a557
Address pull request comments
...
* 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
10 years ago
obscuren
aa5b29e2f2
Implemented contract ABI
10 years ago
Gustav Simonsson
512ffa2bf4
Add accounts package and refactor key stores
...
* 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
10 years ago