Gustav Simonsson
7cc6b801e0
accounts: left pad keybytes-to-encrypt, add 30/31 byte keys tests
2016-09-27 13:07:33 -04:00
Gustav Simonsson
25ed5fedda
core/state: short-circuit balance change if zero value
2016-09-26 01:26:54 -04:00
Gustav Simonsson
22eea17b06
light: fix memory expansion bug (same as fix for core/state)
2016-09-19 15:26:55 -04:00
Gustav Simonsson
b6b17e5648
core/state, light: remove unused StateObject.initCode
2016-09-19 02:16:58 -04:00
Gustav Simonsson
ecd7199c43
common/versions, cmd/utils: add geth version contract
2016-05-02 10:31:54 +03:00
Gustav Simonsson
371871d685
parmas, crypto, core, core/vm: homestead consensus protocol changes
...
* change gas cost for contract creating txs
* invalidate signature with s value greater than secp256k1 N / 2
* OOG contract creation if not enough gas to store code
* new difficulty adjustment algorithm
* new DELEGATECALL op code
2016-02-18 10:08:11 +01:00
Gustav Simonsson
c8ad64f33c
crypto, crypto/ecies, crypto/secp256k1: libsecp256k1 scalar mult
...
thanks to Felix Lange (fjl) for help with design & impl
2015-11-30 13:43:32 +01:00
Gustav Simonsson
27a50c8f4b
core/secp256k1: update libsecp256k1 Go wrapper and tests
2015-11-30 13:24:04 +01:00
Gustav-Simonsson
ae9e9efa31
Merge pull request #1991 from Gustav-Simonsson/common_tests
...
Update common test files
2015-11-23 10:26:21 +01:00
Gustav Simonsson
220b0bf6e5
Update common test files
2015-11-20 12:53:36 +01:00
Gustav Simonsson
145366c07e
tests: update JSON files, add new wrappers
2015-10-23 14:25:18 +02:00
Gustav Simonsson
d5f56ad5c5
godeps: update ethash following GPU miner merge
2015-10-16 16:27:51 +02:00
Gustav Simonsson
1b1f293082
core/state, core, miner: handle missing root error from state.New
2015-10-16 02:22:06 +02:00
Gustav Simonsson
2db9798646
common, crypto: add ICAP functions
2015-10-13 17:44:14 +02:00
Gustav Simonsson
f32fa075f1
core/secp256k1: update libsecp256k1 Go wrapper and tests
2015-10-09 14:47:55 +02:00
Gustav Simonsson
ec6a548ee3
all: Add GPU mining, disabled by default
2015-10-07 13:19:30 +02:00
Gustav Simonsson
e1616f77c7
core, core/vm, cmd/evm: remove redundant balance check
2015-10-06 12:42:34 +02:00
Gustav Simonsson
1d20b0247c
Update libsecp256k1
2015-09-28 17:46:38 +02:00
Gustav Simonsson
bfde1a4305
core: Add BadHashErr and test for BadHashes handling
2015-09-22 18:02:26 +02:00
Gustav Simonsson
3340b56593
crypto: correct sig validation, add more unit tests
2015-09-22 17:33:39 +02:00
Gustav Simonsson
5621308949
tests: add test for StateTests/stCallCodes.json
2015-09-21 11:34:02 +02:00
Gustav Simonsson
47ca6904b3
tests: use lastblockhash field to validate reorgs and block headers
2015-09-18 17:48:31 +02:00
Gustav Simonsson
075815e5ff
tests: update common test wrappers and test files
2015-09-18 13:08:36 +02:00
Gustav Simonsson
b81a6e6ab8
core, core/vm, core/state: remove unused functions
2015-09-10 21:10:58 +02:00
Gustav Simonsson
bf879ef230
core/state: test formatting adhering to Go convention
2015-09-09 00:26:18 +02:00
Gustav Simonsson
004ed786b4
core/state: deleted field in StateObject Copy() and unit test
2015-09-08 15:56:11 +02:00
Gustav Simonsson
e9b031b88b
Merge pull request #1755 from fjl/coinbase
...
core: improve block gas tracking
2015-09-01 23:36:05 +02:00
Gustav Simonsson
fe8093b71f
Add TestBcForkUncleTests and update JSON files
2015-08-31 16:45:00 +02:00
Gustav Simonsson
d9addf79fa
Improve error string and remove unneeded else clause
2015-08-28 03:42:01 +02:00
Gustav Simonsson
829201382b
rpc: return error code for eth_getWork when no work ready
2015-08-26 12:46:50 +02:00
Gustav Simonsson
7324176f70
Add tests for uncle timestamps and refactor timestamp type
2015-08-25 04:46:11 +02:00
Gustav Simonsson
26c6e3b206
miner: gas limit strategy, target 3141592 & def gas price 50 Shannon
2015-08-04 15:20:28 +02:00
Gustav Simonsson
afba798357
xeth: log signed tx hash
2015-07-13 03:09:02 +02:00
Gustav Simonsson
5d6d40f329
Use uint64 on ts in chain_manager, block_processor
2015-07-08 13:21:06 +02:00
Gustav Simonsson
b08abe64e4
Unskip SimpleTx3, check err in pre/post state validations
2015-07-08 13:09:22 +02:00
Gustav Simonsson
0b53a5c673
Update Ethereum JSON test files and wrappers
2015-07-08 13:08:42 +02:00
Gustav Simonsson
b7e8d954ef
Add TestBcGasPricer, comments and unskip tests
2015-07-06 13:56:56 +02:00
Gustav Simonsson
0f04af5916
Fix core error forwarding, unify OOG VM err
2015-07-04 09:27:42 +02:00
Gustav Simonsson
ff97059a99
Update Ethereum JSON tests, skip failing
2015-07-03 09:40:07 +02:00
Gustav Simonsson
4c490db6af
Use uint64 for block header timestamp
2015-06-30 10:52:11 +02:00
Gustav Simonsson
8363aba7ac
Update Ethash Godeps
2015-06-24 07:17:21 +02:00
Gustav Simonsson
d23ec6c419
Change keystore to version 3
...
* Change password protection crypto in keystore to version 3
* Update KeyStoreTests/basic_tests.json
* Add support for PBKDF2 with HMAC-SHA256
* Change MAC and encryption key to avoid unnecessary hashing
* Add tests for test vectors in new wiki page defining version 3
* Add tests for new keystore tests in ethereum/tests repo
* Move JSON loading util to common for use in both tests and
crypto packages
* Add backwards compatibility with key store version 1
2015-06-24 06:03:23 +02:00
Gustav Simonsson
be303ba186
Update ethash Godep (again)
2015-06-17 00:56:25 +02:00
Gustav Simonsson
a9d6846f92
Update ethash Godep
2015-06-16 12:09:39 +02:00
Gustav Simonsson
8f372c867d
Update Ethereum JSON test files
2015-06-16 12:09:25 +02:00
Gustav Simonsson
6e3b58e491
Remove unneeded if check on EC recover padding
2015-06-09 16:03:05 +02:00
Gustav Simonsson
15166f880b
Skip BlockTests/bcValidBlockTests SimpleTx3
2015-06-09 15:53:31 +02:00
Gustav Simonsson
ad5b5a4895
Pad precompiled EC recover input and add validations
2015-06-09 15:41:15 +02:00
Gustav Simonsson
d8e55a5cc3
Skip VMTests RandomTests temporarily until they are fixed
2015-06-09 15:40:43 +02:00
Gustav Simonsson
e885a2912b
Update Ethereum JSON test files
2015-06-09 15:39:24 +02:00
Gustav Simonsson
edbd902a1b
Initialise curve N value in package init
2015-06-03 14:44:29 +02:00
Gustav Simonsson
0fa9d2431f
Add new 0th gen uncle test
2015-06-02 14:47:23 +02:00
Gustav Simonsson
8a76b45253
Use older version of stSpecialTest until JUMPDEST fix is merged
2015-06-02 12:25:43 +02:00
Gustav Simonsson
8962af2e42
Update Ethereum JSON test files
2015-06-02 12:15:25 +02:00
Gustav Simonsson
55bf5051ad
Unsupport bruncles
2015-06-01 22:43:05 +02:00
Gustav Simonsson
5a692ba4f6
Update Ethereum JSON test files
2015-06-01 22:34:44 +02:00
Gustav Simonsson
147a699c65
Add missing err checks on From() (skip RPC for now)
2015-06-01 22:12:03 +02:00
Gustav Simonsson
32e1b104f8
Add EC signature validations before call to libsecp256k1
2015-06-01 21:06:52 +02:00
Gustav Simonsson
b4818a003a
Update Ethereum JSON test files
2015-05-29 13:12:54 +02:00
Gustav Simonsson
9138955ba5
Validate account length and avoid slicing in logging
2015-05-28 15:20:05 +02:00
Gustav Simonsson
bf5f0b1d0c
Update ValidateHeader comments
2015-05-27 13:30:24 +02:00
Gustav Simonsson
14955bd454
Revert "core: block.gasLimit - parent.gasLimit <= parent.gasLimit / GasLimitBoundDivisor"
...
This reverts commit be2b0501b5 .
2015-05-27 13:01:06 +02:00
Gustav Simonsson
6ad817e17b
Add StateTests/RandomTests and VMTests/RandomTests
2015-05-21 23:04:46 +02:00
Gustav Simonsson
6a72cd45e2
Add wrapper for BlockTests/bcWalletTest.json
2015-05-18 16:28:54 +02:00
Gustav Simonsson
1d51cada3c
Handle call depth exception for CREATE
2015-05-18 16:23:20 +02:00
Gustav Simonsson
36419defd1
Update Ethereum JSON test files
2015-05-18 12:45:24 +02:00
Gustav Simonsson
619e8a4f03
Add StateTests/RandomTests but skip for now
2015-05-15 19:17:40 +02:00
Gustav Simonsson
32276e8b01
Update StateTests and nil create return on failed code deposit
2015-05-15 18:49:31 +02:00
Gustav Simonsson
830bdb1cfd
Update Ethereum JSON tests
2015-05-15 16:08:00 +02:00
Gustav Simonsson
dadf01de60
unskip StateTests/stTransactionTest and use test tx nonce
2015-05-15 16:05:11 +02:00
Gustav Simonsson
b24f16fa53
Make read of ethash hashrate atomic and update ethash godep
2015-05-14 04:05:49 +02:00
Gustav Simonsson
56a5592ea0
Update keystore code comments
2015-05-13 18:33:31 +02:00
Gustav Simonsson
b5b53d8b32
Fix hex conversion in --unlock and log when successful
2015-05-13 01:11:17 +02:00
Gustav Simonsson
e389585f1f
Change default keystore dir
2015-05-12 18:33:04 +02:00
Gustav Simonsson
231fe04f03
Fix address type in js test
2015-05-12 17:48:21 +02:00
Gustav Simonsson
037772fc07
fix hex conversion bug in RPC for byte slices
2015-05-12 17:22:17 +02:00
Gustav Simonsson
8001e48115
Fix natspec test (again x2) types
2015-05-12 17:22:17 +02:00
Gustav Simonsson
2c1b0ff17e
Update key store to new spec but keep address field for now
...
* Also fix address types post-rebase
2015-05-12 17:22:17 +02:00
Gustav Simonsson
fe9e95a3fd
Fix natspec e2e test accounts type (again)
2015-05-12 17:22:17 +02:00
Gustav Simonsson
940952f757
Fix HEX hack in xeth accounts()
2015-05-12 17:22:17 +02:00
Gustav Simonsson
f98e002d98
Address pull request comments; key header and hex encoding
...
* Remove key header from unencrypted key file format and replace
it with a version field
* Change encoding of bytes in key files from base64 to hex
2015-05-12 17:22:17 +02:00
Gustav Simonsson
313eec33ad
Revert "Add key header to unencrypted key file"
...
This reverts commit a94d4ba0b53c4558ab838aaed635a2ff66ddfa53.
2015-05-12 17:19:39 +02:00
Gustav Simonsson
8754f2b768
Fix common.Address / []byte type conversions
2015-05-12 17:19:39 +02:00
Gustav Simonsson
cd88295f5a
Add key header to unencrypted key file
2015-05-12 17:19:39 +02:00
Gustav Simonsson
29a5a92d13
Add key header to encrypted keys
...
* Add key header containing key version, kdf and kdf params
* Store key header as JSON in the key file
* Read in KDF params from key header
* Include key header in MAC calculation and MAC verification
2015-05-12 17:19:39 +02:00
Gustav Simonsson
ac3371bcb6
Correct accounts hex in XETH API
2015-05-12 17:19:39 +02:00
Gustav Simonsson
da9fe951da
Use common.Address type for accounts.Address
2015-05-12 17:19:39 +02:00
Gustav Simonsson
6b23094cff
Improve key store passphrase crypto
...
* Change MAC-then-Encrypt to Encrypt-then-MAC
* Change AES256 to AES128
* Use first 16 bytes of KDF derived key for AES and
remaining 16 for MAC
2015-05-12 17:18:30 +02:00
Gustav Simonsson
9918b6c84e
Remove the awesome, ever misunderstood entropy mixing
2015-05-12 17:18:30 +02:00
Gustav Simonsson
3593662b0c
Update ethash deps (more build fixes, tests)
2015-05-07 19:39:55 +02:00
Gustav Simonsson
79eb40fc9f
Add bcTotalDifficultyTest and unskip now working tx tests
2015-05-07 13:03:22 +02:00
Gustav Simonsson
2b716aec54
Update JSON test files
2015-05-07 12:44:29 +02:00
Gustav Simonsson
7bc1f487b8
Unskip now working tests, remove debug print
2015-05-06 23:25:44 +02:00
Gustav Simonsson
2808409fbd
Add genesis block total difficulty in tests
2015-05-06 23:22:49 +02:00
Gustav Simonsson
054947def7
Add ethash linux & windows build fixes
2015-05-06 17:38:28 +02:00
Gustav Simonsson
f4341c7b7f
Unskip working blocktests following ethash cache reusage
2015-05-05 08:34:29 +02:00
Gustav Simonsson
b1cc9cdc74
Integrate new ethash API and change geth makedag cmd
2015-05-05 08:24:15 +02:00
Gustav Simonsson
50659f4b48
Update ethash Godeps files
2015-05-05 07:50:04 +02:00
Gustav Simonsson
34c94d5fcd
Add loading of block test privkey if present
2015-04-27 20:30:26 +02:00
Gustav Simonsson
2a61611c4f
Update JSON tests
2015-04-27 19:09:20 +02:00