Jeffrey Wilcke
fe45210c55
accounts/abi: Fixed bytes input accept []byte and variable input support
...
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`.
2016-03-15 14:10:39 +01:00
Ricardo Catalinas Jiménez
436fc8d76a
all: Rename crypto.Sha3{,Hash}() to crypto.Keccak256{,Hash}()
...
As we aren't really using the standarized SHA-3
2016-02-21 22:34:34 +00:00
Jeffrey Wilcke
6fe917ecb8
accounts/abi: support for typed array
...
Added support for fixed size and arbitrary length byte arrays to be
marshallable in fixed size (typed) byte slices.
2016-02-14 18:56:56 +01:00
Jeffrey Wilcke
ecc876cec0
accounts/abi: fixed return tuple and string, bytes return type parsing
...
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.
2016-02-11 10:16:38 +01:00
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.
2016-02-02 15:28:59 +01:00
Bas van Kervel
19b2640e89
rpc: migrated the RPC insterface to a new reflection based RPC layer
2016-01-26 13:51:50 +01:00
Felix Lange
fa187a366d
Merge pull request #2035 from bas-vk/rcp-v2-rebase
...
rpc: new RPC implementation with pub/sub support
2015-12-14 17:38:10 +01:00
Bas van Kervel
eae81465c1
rpc: new RPC implementation with pub/sub support
2015-12-14 16:34:05 +01:00
Felix Lange
38ff815485
Merge pull request #2003 from obscuren/abi-calling
...
accounts/abi: added output parsing & added call mechanism
2015-12-07 23:24:41 +01:00
Péter Szilágyi
2e43414c79
accounts: increase re-lock timeout to account for slow CI servers
2015-12-01 13:20:43 +02:00
Jeffrey Wilcke
a0bf2ea7e7
accounts/abi: added output parsing & added call mechanism
...
Added calling mechanism and return value parsing
2015-11-25 12:23:29 +01:00
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
2015-10-29 21:40:18 +01:00
Jeffrey Wilcke
98db08c42f
Merge pull request #1548 from fjl/accounts-test-deflake
...
accounts: bump timeout in TestSignRace
2015-08-03 07:16:36 -07:00
Felix Lange
5aec1d94ad
accounts: bump timeout and spin less in TestSignRace
...
This should fix the flakeyness.
2015-08-02 00:49:53 +02:00
Felix Lange
bfbcfbe4a9
all: fix license headers one more time
...
I forgot to update one instance of "go-ethereum" in commit 3f047be5a
.
2015-07-23 18:35:11 +02:00
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".
2015-07-22 18:51:45 +02:00
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.
2015-07-20 18:04:23 +02:00
zelig
c3f5403b64
fix wallet key duplicate write - how did it get there? mystery. fixes #1411
2015-07-09 14:07:35 +01:00
Felix Lange
bdae4fd573
all: add some godoc synopsis comments
2015-07-07 14:12:45 +02:00
Felix Lange
e813626ee1
all: remove @author comments
2015-07-07 14:12:44 +02:00
Felix Lange
ea54283b30
all: update license information
2015-07-07 14:12:44 +02:00
zelig
1959346793
account update: migrate or change password
...
* account.Update
* KeyStore.Cleanup
* fix dir rm for old format deleteKey
2015-07-03 07:52:37 +01:00
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
2015-07-03 03:19:32 +01:00
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
2015-07-02 23:28:11 +01:00
zelig
1d72aaa0cd
simplify account unlocking
2015-07-02 23:28:11 +01:00
Bas van Kervel
1fa48bc5e7
Introduced default unlock duration when an account is unlocked from the console
2015-05-14 14:25:48 +02:00
Gustav Simonsson
da9fe951da
Use common.Address type for accounts.Address
2015-05-12 17:19:39 +02:00
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
2015-03-26 21:52:22 +00:00
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
2015-03-26 19:00:18 +00:00
zelig
11d2ebc06f
unlocking coinbase without knowing address
...
- accounts: remove Manager.getKey
- cli: for -unlock coinbase, use account manager Coinbase()
2015-03-26 19:00:18 +00:00
zelig
d1b52efdb5
cli: implement ethereum presale wallet import via cli
2015-03-26 19:00:18 +00:00
zelig
fd8d18ec28
unlocking coinbase
...
- extract accounts.getKey method - if given empty address it retrieves coinbase (first account)
- cli -unlock coinbase will unlock coinbase
2015-03-26 19:00:18 +00:00
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)
2015-03-26 19:00:18 +00:00
obscuren
b523441361
Moved ethutil => common
2015-03-16 11:27:38 +01:00
Felix Lange
4ba7871374
accounts: return ErrNoKeys if key directory does not exist
2015-03-10 15:41:08 +01:00
Felix Lange
487f68ec48
accounts: add {Timed,}Unlock, remove SignLocked
2015-03-10 00:19:01 +01:00
Felix Lange
9bf513e993
Merge ethereum/poc-9 into accounts-integration
...
Conflicts:
cmd/utils/cmd.go
cmd/utils/flags.go
core/manager.go
eth/backend.go
rpc/http/server.go
xeth/xeth.go
2015-03-09 23:25:46 +01:00
Felix Lange
c2e5dacf55
accounts: add Manager.HasAccount, delete Manager.Default
2015-03-09 23:08:46 +01:00
Felix Lange
6684ef201a
accounts: don't store address in unlocked and add commentary
...
This was suggested during review.
2015-03-08 02:47:05 +01:00
Felix Lange
fb53a9362e
accounts: AccountManager -> Manager
2015-03-08 01:58:35 +01:00
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.
2015-03-08 01:44:15 +01:00
obscuren
405c0ca4b0
removed
2015-03-08 01:06:59 +01:00
Felix Lange
d6a7332993
accounts: fix uses of sync.RWMutex
...
RWMutexes must be write-locked when writing in order
to actually protect the writes.
2015-03-08 00:36:06 +01:00
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.
2015-03-08 00:35:23 +01:00
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.
2015-03-08 00:18:13 +01:00
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.
2015-03-07 12:38:33 +01:00
obscuren
49ded3aa77
Merge branch 'develop' of github.com-obscure:ethereum/go-ethereum into develop
...
Conflicts:
accounts/account_manager.go
2015-02-26 12:06:01 +01:00
obscuren
5ab0eaa06d
wip
2015-02-26 11:14:54 +01:00
Gustav Simonsson
23f2658091
Remove unneeded initialisation of mutex
2015-02-25 19:30:57 +01:00
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
2015-02-25 18:40:59 +01:00