Felix Lange
ee1682ffe6
cmd/geth: add tests for account commands
2016-04-12 15:58:07 +02:00
Felix Lange
46e8940b19
accounts: streamline API
...
- Manager.Accounts no longer returns an error.
- Manager methods take Account instead of common.Address.
- All uses of Account with unkeyed fields are converted.
2016-04-12 15:58:01 +02:00
Felix Lange
4e6d8b348d
accounts: fix go vet warnings
2016-04-12 15:56:49 +02:00
Felix Lange
85e6c40c00
accounts, crypto: move keystore to package accounts
...
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.
2016-04-12 15:56:49 +02:00
Péter Szilágyi
fc4fffd5ac
accounts/abi/bind: support generating bindings for various arrays
2016-04-05 18:20:50 +03:00
Jeffrey Wilcke
a306e17a26
abi: removed implicit type casting & refactored type parsing
2016-04-04 20:30:59 +02:00
Jeffrey Wilcke
968d8ffe94
abi: accept output slices of all supported types
2016-04-04 20:30:59 +02:00
Jeffrey Wilcke
022cbd6800
abi: accept input slices of all supported types
2016-04-04 20:30:58 +02:00
Jeffrey Wilcke
fb578f4550
Merge pull request #2405 from karalabe/abigen-default-methods
...
accounts/abi/bind: surface raw wrappers to access low level ops
2016-04-01 15:42:05 +02:00
Péter Szilágyi
4097478884
accounts/abi/bind: surface raw wrappers to access low level ops
2016-04-01 13:07:05 +03:00
Jeffrey Wilcke
9055c16efa
accounts/a/b/backends, core: chain maker homestead block set to 0
...
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
2016-04-01 01:01:10 +02:00
Jeffrey Wilcke
f0cbebb19f
core: added basic chain configuration
...
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.
2016-04-01 01:01:10 +02:00
Péter Szilágyi
4ab593c5a1
accounts/abi/bind: support account slices, drop hash type
2016-03-31 12:48:50 +03:00
Péter Szilágyi
c2bbff6116
accounts/abi/bind: merge all tests into a single suite
2016-03-31 12:45:50 +03:00
Péter Szilágyi
787d688c2f
accounts/abi/bind: use anonymous ephemeral call result structs
2016-03-31 12:45:30 +03:00
Péter Szilágyi
b813e4d411
accounts/abi/bind, cmd/abigen: dedup structs, exclude patterns
2016-03-26 11:43:09 +02:00
Péter Szilágyi
9b4a45f6e8
accounts/abi/bind: fix double pointer in generated code
2016-03-25 15:09:06 +02:00
Péter Szilágyi
73308dbe0e
accounts/abi/bind, cmd/abigen: port to templates, bind to solidity
2016-03-24 17:09:45 +02:00
Péter Szilágyi
86cfc22c79
accounts/abi/bind: constructor, auth utils and various backends
2016-03-24 14:15:32 +02:00
Péter Szilágyi
72826bb5ad
accounts/abi/bind, cmd/abigen: Go API generator around an EVM ABI
2016-03-24 14:15:18 +02:00
Péter Szilágyi
b3b110bc95
Merge pull request #2348 from obscuren/abi-variable-input
...
accounts/abi: Fixed bytes input accept []byte and variable input support
2016-03-17 10:21:34 +02:00
Péter Szilágyi
270ea6eec3
accounts/abi: handle the "constant" modifier for functions
2016-03-16 11:24:16 +02:00
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