openethereum/util
Andrew Jones a04c5b180a Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316)
* WIP

* Replace Rlp with UntrustedRlp in views, explicity unwrap with expect

First pass to get it to compile. Need to figure out whether to do this or to propogate Errors upstream, which would require many more changes to dependent code. If we do this way we are assuming that the views are always used in a context where the rlp is trusted to be valid e.g. when reading from our own DB. So need to fid out whether views are used with data received from an untrusted (e.g. extrernal peer).

* Remove original Rlp impl, rename UntrustedRlp -> Rlp

* Create rlp views with view! macro to record debug info

Views are assumed to be over valid rlp, so if there is a decoding error we record where the view was created in the first place and report it in the expect

* Use $crate in view! macro to avoid import, fix tests

* Expect valid rlp in decode functions for now

* Replace spaces with tabs in new file

* Add doc tests for creating views with macro

* Update rlp docs to reflect removing of UntrustedRlp

* Replace UntrustedRlp usages in private-tx merge
2018-04-16 15:52:12 +02:00
..
bloom Problem: Cargo.toml file contains [project] key (#7346) 2017-12-20 16:41:52 +01:00
bloomchain Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
bytes prepare cargo configuration for upload of crates 2017-11-10 18:31:31 +01:00
dir Auto-updater improvements (#8078) 2018-04-03 16:49:23 +02:00
error Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
fake-fetch util `fake-fetch` (#8363) 2018-04-11 11:59:04 +02:00
fetch Use hyper 0.11 in ethcore-miner and improvements in parity-reactor (#8335) 2018-04-10 13:51:29 +02:00
hash dapps-fetcher: calculate keccak in-flight while reading the response (#8294) 2018-04-03 14:58:55 +02:00
hashdb Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
io More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
journaldb Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
kvdb Decouple rocksdb dependency from ethcore (#8320) 2018-04-09 14:21:37 +02:00
kvdb-memorydb simplify compression and move it out of rlp crate (#7957) 2018-02-23 10:12:52 +01:00
kvdb-rocksdb Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
macros Separate migrations from util (#6690) 2017-10-10 20:01:27 +02:00
mem Add `util/mem` to zero out memory on drop. (#8356) 2018-04-11 13:57:12 +02:00
memory_cache Uses dash instead of underscore in crate name 2017-10-16 11:05:54 +07:00
memorydb Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
migration-rocksdb Unify and limit rocksdb dependency places (#8371) 2018-04-13 21:14:53 +02:00
network Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
network-devp2p Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
panic_hook Moved panick_hook to util/panic_hook (#7629) 2018-01-20 20:28:25 +01:00
path splitting part of util into smaller crates (#4956) 2017-03-22 06:23:40 +01:00
patricia_trie Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
plain_hasher Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
reactor Use hyper 0.11 in ethcore-miner and improvements in parity-reactor (#8335) 2018-04-10 13:51:29 +02:00
rlp Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
rlp_compress Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
rlp_derive Replace legacy Rlp with UntrustedRlp and use in ethcore rlp views (#8316) 2018-04-16 15:52:12 +02:00
stats Expose default gas price percentile configuration in CLI (#7497) 2018-01-09 12:43:36 +01:00
stop-guard Moved StopGaurd to it's own crate (#7635) 2018-01-19 13:46:31 +01:00
trace-time Remove the time dependency where possible (#8100) 2018-03-14 12:29:52 +01:00
trie-standardmap Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
triehash Bump ethabi & ethereum-types. (#8258) 2018-04-02 12:12:52 +01:00
unexpected More code refactoring to integrate Duration (#8322) 2018-04-14 21:35:58 +02:00
using_queue New Transaction Queue implementation (#8074) 2018-04-13 17:34:27 +02:00
version Upgrader `remove raw unwrap` and bump semver (#8251) 2018-04-04 11:54:41 +02:00