openethereum/ethcore
David d8d7abc848 Add blake2_f precompile (#11017)
* feat: implement eip1108

* doc nit: price per point pair

Co-Authored-By: David <dvdplm@gmail.com>

* fix: test-build

* fix: update chain specs

* fix: basic_authority.json chain spec

* fix: change `eip_transition == 0x7fffffffffffff`

* Merge na-eip1108

* Pre-compile plumbing

* Use type alias instead of struct

* Extract the data from incoming EVM call and forward it to blake2_f

* Fetch parity-common from git for now

* Fix broken cost impl
Add remaining test vectors

* cleanup

* Trailing comma in json spec

* Update ethcore/builtin/src/lib.rs

Co-Authored-By: Andronik Ordian <write@reusable.software>

* Update ethcore/builtin/src/lib.rs

Co-Authored-By: Andronik Ordian <write@reusable.software>

* Rename pricer to be Blake2-specific
Return a cost of u32::MAX if conversion fails
Fix docs and todos

* Fix error handling in cost()

* fix chainspec

* EIP-152 crate

* Update ethcore/builtin/src/lib.rs

Co-Authored-By: Seun LanLege <seunlanlege@gmail.com>

* Address grumbles

* Update ethcore/builtin/src/lib.rs

Co-Authored-By: Niklas Adolfsson <niklasadolfsson1@gmail.com>

* Switch tests to use hex!

* remove parity-crypto from git

* Sort out the SIGMA

* Prefer arrays to vecs

* Update util/EIP-152/src/lib.rs

Co-Authored-By: Niklas Adolfsson <niklasadolfsson1@gmail.com>

* Update json/src/spec/builtin.rs

Co-Authored-By: Andronik Ordian <write@reusable.software>

* Update json/src/spec/builtin.rs

Co-Authored-By: Andronik Ordian <write@reusable.software>

* Review feedback

* Do not change chainspecs yet

* Do not assume endianess: precompile output is LE
2019-09-10 00:26:45 +02:00
..
account-db Update to latest trie version. (#10972) 2019-08-15 15:36:48 +02:00
account-state Update to latest trie version. (#10972) 2019-08-15 15:36:48 +02:00
benches Fix ethcore/benches build. (#10964) 2019-08-13 15:27:28 +02:00
block-reward Extract spec to own crate (#10978) 2019-08-23 15:32:58 +02:00
blockchain Add new line after writing block to hex file. (#10984) 2019-09-09 13:46:05 +02:00
builtin Add blake2_f precompile (#11017) 2019-09-10 00:26:45 +02:00
call-contract docs: Update Readme with TOC, Contributor Guideline. Update Cargo package descriptions (#10652) 2019-06-25 08:15:13 +02:00
client-traits Add new line after writing block to hex file. (#10984) 2019-09-09 13:46:05 +02:00
db Fix block detail updating (#11015) 2019-09-05 19:27:05 +02:00
engine Extract engines to own crates (#10966) 2019-08-22 18:25:49 +02:00
engines fix: remove needless use of itertools (#11029) 2019-09-08 14:30:54 +02:00
evm Convert std::test benchmarks to use Criterion (#10999) 2019-09-05 19:28:01 +02:00
executive-state Extract spec to own crate (#10978) 2019-08-23 15:32:58 +02:00
light fix: remove unused error-chain (#11028) 2019-09-09 09:55:06 +02:00
machine [trace] introduce trace failed to Ext (#11019) 2019-09-05 16:11:51 +02:00
node-filter Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
pod Update to latest trie version. (#10972) 2019-08-15 15:36:48 +02:00
private-tx [private-tx] remove unused rand (#11024) 2019-09-05 13:26:28 +02:00
res Fix block detail updating (#11015) 2019-09-05 19:27:05 +02:00
service Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
snapshot Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
spec Fix block detail updating (#11015) 2019-09-05 19:27:05 +02:00
src Add new line after writing block to hex file. (#10984) 2019-09-09 13:46:05 +02:00
state-db Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
sync Extract snapshot to own crate (#11010) 2019-09-03 11:29:25 +02:00
trace [trace] introduce trace failed to Ext (#11019) 2019-09-05 16:11:51 +02:00
trie-vm-factories Update to latest trie version. (#10972) 2019-08-15 15:36:48 +02:00
types Add new line after writing block to hex file. (#10984) 2019-09-09 13:46:05 +02:00
verification Make ClientIoMessage generic over the Client (#10981) 2019-08-28 10:09:42 +02:00
vm [trace] introduce trace failed to Ext (#11019) 2019-09-05 16:11:51 +02:00
wasm Fix some warnings and typos. (#10941) 2019-08-06 11:07:07 +02:00
Cargo.toml Convert std::test benchmarks to use Criterion (#10999) 2019-09-05 19:28:01 +02:00