aboutsummaryrefslogtreecommitdiffstats
path: root/accounts
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2564 from bas-vk/submit-txJeffrey Wilcke2016-05-232-2/+42
|\ | | | | eth: add new RPC method (personal.) SignAndSendTransaction
| * eth: add new RPC method (personal.) SignAndSendTransactionBas van Kervel2016-05-202-2/+42
| |
* | accounts/abi/bind, eth: rely on getCode for sanity checks, not estimate and callPéter Szilágyi2016-05-205-6/+101
|/
* accounts/abi: fix abi test for go vet...Péter Szilágyi2016-05-121-2/+2
|
* accounts/abi/bind: fix multi-value anonymous unmarshallingPéter Szilágyi2016-05-122-3/+37
|
* accounts/abi: fixed unpacking in to already slice interfacesJeffrey Wilcke2016-05-113-31/+94
| | | | | | | | | | | | | | | | Previously it was assumed that wheneven type `[]interface{}` was given that the interface was empty. The abigen rightfully assumed that interface slices which already have pre-allocated variable sets to be assigned. This PR fixes that by checking that the given `[]interface{}` is larger than zero and assigns each value using the generic `set` function (this function has also been moved to abi/reflect.go) and checks whether the assignment was possible. The generic assignment function `set` now also deals with pointers (useful for interface slice mentioned above) by dereferencing the pointer until it finds a setable type.
* release, all: integrate the release service into gethPéter Szilágyi2016-05-021-2/+3
|
* Merge pull request #2493 from almindor/developFelix Lange2016-04-301-1/+6
|\ | | | | eth: add personal_importRawKey
| * eth: add personal_importRawKey for runtime private key importAles Katona2016-04-281-1/+6
| |
* | Merge pull request #2435 from obscuren/abi-array-fixesPéter Szilágyi2016-04-288-362/+733
|\ \ | | | | | | accounts/abi: refactored ABI package
| * | accounts/abi: fixed string and fixed size bytes packingJeffrey Wilcke2016-04-286-85/+137
| | |
| * | accounts/abi: added unpacking "anything" in to interface{}Jeffrey Wilcke2016-04-282-0/+11
| | |
| * | accounts/abi: fixed strict go-like unpackingJeffrey Wilcke2016-04-282-27/+158
| | |
| * | accouns/abi: refactored ABI packageJeffrey Wilcke2016-04-208-314/+491
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Refactored the abi package parsing and type handling. Relying mostly on package reflect as opposed to most of our own type reflection. Our own type reflection is still used however for cases such as Bytes and FixedBytes (abi: bytes•). This also inclused several fixes for slice handling of arbitrary and fixed size for all supported types. This also further removes implicit type casting such as assigning, for example `[2]T{} = []T{1}` will fail, however `[2]T{} == []T{1, 2}` (notice assigning *slice* to fixed size *array*). Assigning arrays to slices will always succeed if they are of the same element type. Incidentally also fixes #2379
* | accounts/abi/bind, eth: add contract non-existent errorPéter Szilágyi2016-04-274-4/+60
| |
* | accounts: disable file system watch on linux/arm64Felix Lange2016-04-252-2/+2
|/
* accounts/abi/bind/backends: estimate needed gas, not usedPéter Szilágyi2016-04-151-1/+1
|
* all: fix go vet warningsFelix Lange2016-04-151-5/+5
|
* all: update license informationFelix Lange2016-04-152-1/+17
|
* accounts: disable filesystem notifications on iosPéter Szilágyi2016-04-132-2/+2
|
* accounts: ensure TimedUnlock does not override indefinite unlock timeoutFelix Lange2016-04-122-10/+16
|
* accounts: improve API and add documentationFelix Lange2016-04-123-48/+84
| | | | | - Sign takes common.Address, not Account - Import/Export methods work with encrypted JSON keys
* cmd/geth: add recovery procedure for AmbiguousAddrErrorFelix Lange2016-04-123-0/+3
|
* accounts: add ErrDecryptFelix Lange2016-04-124-7/+6
|
* accounts: cache key addressesFelix Lange2016-04-1216-360/+1040
| | | | | | | | | | | | | | | In order to avoid disk thrashing for Accounts and HasAccount, address->key file mappings are now cached in memory. This makes it no longer necessary to keep the key address in the file name. The address of each key is derived from file content instead. There are minor user-visible changes: - "geth account list" now reports key file paths alongside the address. - If multiple keys are present for an address, unlocking by address is not possible. Users are directed to remove the duplicate files instead. Unlocking by index is still possible. - Key files are overwritten written in place when updating the password.
* cmd/geth: add tests for account commandsFelix Lange2016-04-1210-0/+28
|
* accounts: streamline APIFelix Lange2016-04-122-38/+29
| | | | | | - Manager.Accounts no longer returns an error. - Manager methods take Account instead of common.Address. - All uses of Account with unkeyed fields are converted.
* accounts: fix go vet warningsFelix Lange2016-04-123-5/+5
|
* accounts, crypto: move keystore to package accountsFelix Lange2016-04-1213-52/+1242
| | | | | | | | | | The account management API was originally implemented as a thin layer around crypto.KeyStore, on the grounds that several kinds of key stores would be implemented later on. It turns out that this won't happen so KeyStore is a superflous abstraction. In this commit crypto.KeyStore and everything related to it moves to package accounts and is unexported.
* accounts/abi/bind: support generating bindings for various arraysPéter Szilágyi2016-04-052-16/+67
|
* abi: removed implicit type casting & refactored type parsingJeffrey Wilcke2016-04-053-53/+80
|
* abi: accept output slices of all supported typesJeffrey Wilcke2016-04-053-5/+143
|
* abi: accept input slices of all supported typesJeffrey Wilcke2016-04-055-145/+106
|
* Merge pull request #2405 from karalabe/abigen-default-methodsJeffrey Wilcke2016-04-013-5/+102
|\ | | | | accounts/abi/bind: surface raw wrappers to access low level ops
| * accounts/abi/bind: surface raw wrappers to access low level opsPéter Szilágyi2016-04-013-5/+102
| |
* | accounts/a/b/backends, core: chain maker homestead block set to 0Jeffrey Wilcke2016-04-011-2/+1
| | | | | | | | | | | | | | The chain maker and the simulated backend now run with a homestead phase beginning at block 0 (i.e. there's no frontier). This commit also fixes up #2388
* | core: added basic chain configurationJeffrey Wilcke2016-04-011-3/+8
|/ | | | | | | | | Added chain configuration options and write out during genesis database insertion. If no "config" was found, nothing is written to the database. Configurations are written on a per genesis base. This means that any chain (which is identified by it's genesis hash) can have their own chain settings.
* accounts/abi/bind: support account slices, drop hash typePéter Szilágyi2016-03-311-2/+2
|
* accounts/abi/bind: merge all tests into a single suitePéter Szilágyi2016-03-311-22/+22
|
* accounts/abi/bind: use anonymous ephemeral call result structsPéter Szilágyi2016-03-311-15/+10
|
* accounts/abi/bind, cmd/abigen: dedup structs, exclude patternsPéter Szilágyi2016-03-261-6/+6
|
* accounts/abi/bind: fix double pointer in generated codePéter Szilágyi2016-03-252-4/+36
|
* accounts/abi/bind, cmd/abigen: port to templates, bind to solidityPéter Szilágyi2016-03-249-428/+530
|
* accounts/abi/bind: constructor, auth utils and various backendsPéter Szilágyi2016-03-249-263/+723
|
* accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABIPéter Szilágyi2016-03-246-41/+855
|
* Merge pull request #2348 from obscuren/abi-variable-inputPéter Szilágyi2016-03-174-31/+193
|\ | | | | accounts/abi: Fixed bytes input accept []byte and variable input support
| * accounts/abi: Fixed bytes input accept []byte and variable input supportJeffrey Wilcke2016-03-154-31/+193
| | | | | | | | | | | | | | | | | | Fixed up `[]byte` slice support such that `function print(bytes input)` accepts `[]byte` as input and treats it as 1 element rather than a slice of multiple elements. Added support for variable length input parameters like `bytes` and `strings`.
* | accounts/abi: handle the "constant" modifier for functionsPéter Szilágyi2016-03-162-9/+12
|/
* all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()Ricardo Catalinas Jiménez2016-02-224-9/+9
| | | | As we aren't really using the standarized SHA-3
* accounts/abi: support for typed arrayJeffrey Wilcke2016-02-152-43/+114
| | | | | Added support for fixed size and arbitrary length byte arrays to be marshallable in fixed size (typed) byte slices.
* accounts/abi: fixed return tuple and string, bytes return type parsingJeffrey Wilcke2016-02-113-30/+363
| | | | | | | | | | | | | Removed old unmarshalling of return types: `abi.Call(...).([]byte)`. This is now replaced by a new syntax: ``` var a []byte err := abi.Call(&a, ...) ``` It also addresses a few issues with Bytes and Strings and can also handle both fixed and arbitrary sized byte slices, including strings.
* account/abi: implements event parsingJeffrey Wilcke2016-02-026-31/+174
| | | | | | Implementation of basic event parsing and its input types. This separates methods and events and fixes an issue with go type parsing and validation.
* rpc: migrated the RPC insterface to a new reflection based RPC layerBas van Kervel2016-01-261-1/+1
|
* Merge pull request #2035 from bas-vk/rcp-v2-rebaseFelix Lange2015-12-151-0/+15
|\ | | | | rpc: new RPC implementation with pub/sub support
| * rpc: new RPC implementation with pub/sub supportBas van Kervel2015-12-141-0/+15
| |
* | Merge pull request #2003 from obscuren/abi-callingFelix Lange2015-12-086-88/+243
|\ \ | |/ |/| accounts/abi: added output parsing & added call mechanism
| * accounts/abi: added output parsing & added call mechanismJeffrey Wilcke2015-11-256-88/+243
| | | | | | | | Added calling mechanism and return value parsing
* | accounts: increase re-lock timeout to account for slow CI serversPéter Szilágyi2015-12-011-1/+1
|/
* accounts/abi: ABI fixes & added typesJeffrey Wilcke2015-10-303-21/+80
| | | | | | | Changed field `input` to new `inputs`. Addad Hash and Address as input types. Added bytes[N] and N validation
* Merge pull request #1548 from fjl/accounts-test-deflakeJeffrey Wilcke2015-08-031-1/+2
|\ | | | | accounts: bump timeout in TestSignRace
| * accounts: bump timeout and spin less in TestSignRaceFelix Lange2015-08-021-1/+2
| | | | | | | | This should fix the flakeyness.
* | all: fix license headers one more timeFelix Lange2015-07-248-8/+8
|/ | | | I forgot to update one instance of "go-ethereum" in commit 3f047be5a.
* all: update license headers to distiguish GPL/LGPLFelix Lange2015-07-238-32/+32
| | | | | All code outside of cmd/ is licensed as LGPL. The headers now reflect this by calling the whole work "the go-ethereum library".
* accounts: fix data race when key is locked after the unlock timeoutFelix Lange2015-07-212-20/+45
| | | | | | While here, also improve the docs and speed up the tests. The tests used the scrypt keystore with ridiculous settins and took 20s each.
* fix wallet key duplicate write - how did it get there? mystery. fixes #1411zelig2015-07-091-3/+0
|
* all: add some godoc synopsis commentsFelix Lange2015-07-071-10/+6
|
* all: remove @author commentsFelix Lange2015-07-071-6/+0
|
* all: update license informationFelix Lange2015-07-078-15/+127
|
* account update: migrate or change passwordzelig2015-07-031-0/+28
| | | | | | * account.Update * KeyStore.Cleanup * fix dir rm for old format deleteKey
* fix account orderingzelig2015-07-032-5/+6
| | | | | | | | * chronological order of creation * new naming scheme keystore/UTC--<created_at UTC ISO8601>-<address hex> * KeyStore2 -> KeyStore * backward compatibility * refactor keyStore methods
* unlock multiple passes and obsolete primaryzelig2015-07-032-14/+1
| | | | | | | * 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
* simplify account unlockingzelig2015-07-032-56/+85
|
* Introduced default unlock duration when an account is unlocked from the consoleBas van Kervel2015-05-141-0/+5
|
* Use common.Address type for accounts.AddressGustav Simonsson2015-05-121-21/+21
|
* 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