Commit Graph

419 Commits

Author SHA1 Message Date
Gav Wood
9fa9ef46db Merge branch 'master' into gav 2016-01-13 18:41:52 +01:00
Gav Wood
dd99ebd859 From::from(u64) for hashes. 2016-01-13 18:41:33 +01:00
debris
6c44f29b06 json aid changes 2016-01-13 17:42:57 +01:00
debris
df3e3edc8a bytes_ref 2016-01-13 15:14:24 +01:00
arkpar
76dc2d6074 Merge branch 'master' of github.com:gavofyork/ethcore-util into io 2016-01-13 15:09:56 +01:00
arkpar
a5bb7b7f92 Work around ICE 2016-01-13 15:08:36 +01:00
arkpar
28c482691a Fixed context lifetimes 2016-01-13 13:56:48 +01:00
Tomusdrw
95d97fc75c Merge branch 'master' of github.com:gavofyork/ethcore-util 2016-01-13 12:24:19 +01:00
Tomusdrw
d5ed4a8ffd Fixed typos 2016-01-13 12:24:14 +01:00
Gav Wood
4be539a965 Stirct ordering for hashes. 2016-01-13 12:16:10 +01:00
arkpar
c98f73c5c9 Finished splitting IoService and NetworkService 2016-01-13 11:31:37 +01:00
Gav Wood
6447f9b90b Additional helper function. 2016-01-13 01:18:33 +01:00
Gav Wood
635bf284b4 Fix RLP on consensus.
Add JSON helpers.
2016-01-12 23:44:30 +01:00
Gav Wood
6b1eb943e2 Add U512 type and a few conversions. 2016-01-12 17:40:55 +01:00
arkpar
982063e1ac Started IO service refactoring 2016-01-12 17:33:40 +01:00
Gav Wood
e2de777c30 Fix panic in crypto, avoid incorrect casting in bytes. 2016-01-12 00:55:42 +01:00
Gav Wood
48fbf24e21 Avoid panicking on oversize u64. 2016-01-12 00:10:47 +01:00
Gav Wood
65ab524053 Avoid panic on invalid uint data. 2016-01-11 23:59:33 +01:00
Gav Wood
1c48e34d69 Additional mem use. 2016-01-11 18:01:54 +01:00
Gav Wood
c104009ef6 Additional standard.rs. 2016-01-11 17:38:28 +01:00
arkpar
c269cb5c85 Added sync to std uses 2016-01-11 11:52:18 +01:00
arkpar
6f3c3fa020 Documentation 2016-01-10 22:42:27 +01:00
arkpar
02b530f4aa Style 2016-01-10 15:13:12 +01:00
arkpar
39fb29ffcc Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2016-01-10 14:10:29 +01:00
arkpar
2f45d22b38 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2016-01-10 14:09:51 +01:00
Gav Wood
6410759bc3 Remove unneeded error. 2016-01-10 14:06:38 +01:00
arkpar
b0cef968e7 Networking fixes 2016-01-10 14:02:01 +01:00
Gav Wood
5862d58379 Reworked network errors (now NetworkError) to be a subset of UtilErrors rather than the
other way around.
2016-01-10 12:53:55 +01:00
Gav Wood
ffc28bf495 Additional bloom-related functionality.
RlpStandard for non-emit_*-based RlpStream extesions.
2016-01-09 23:47:46 +01:00
Gav Wood
568d28e94b Bitwise Or Assign and some additional convenience in Hash. 2016-01-09 22:30:13 +01:00
Gav Wood
6eac110b65 Merge branch 'master' into gav 2016-01-09 12:33:40 +01:00
Gav Wood
2b90f7d03a Introduce use-dependency amalgamation. We now have:
- `use standard;` (bring in a set of standard and external dependencies)
- `use common;` (bring in a low-level subset of this crate; basically anything that itself requires only `use standard;`)

And, from an external create:
- `use ethcore_util::*;` (bring in the entirety of this module and the standard dependencies)
2016-01-09 12:12:36 +01:00
arkpar
24ba723818 Do not expose sha3 from crypto 2016-01-09 10:27:41 +01:00
arkpar
02c60acc14 Fixed build after merge 2016-01-09 10:22:03 +01:00
arkpar
6183ba5cb5 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2016-01-09 10:20:11 +01:00
arkpar
49d97d7cb3 is_zero for hash types 2016-01-09 10:20:07 +01:00
Gav Wood
d7fe922425 Fix API, 2016-01-08 22:30:45 +01:00
arkpar
647ea286ba Renamed RlpStream::raw to as_raw 2016-01-08 15:57:50 +01:00
arkpar
9286a03656 Even more style 2016-01-08 15:52:43 +01:00
arkpar
469b0a17dc More style 2016-01-08 13:55:44 +01:00
arkpar
396a1755e3 More style 2016-01-08 13:49:00 +01:00
arkpar
e6623c0edd Removed wrong file 2016-01-08 13:33:38 +01:00
arkpar
1ffd999f96 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2016-01-08 13:32:52 +01:00
arkpar
288794fd27 Style 2016-01-08 13:10:00 +01:00
Gav Wood
e4ed6467a9 Fixes and renaming fax->copy. 2016-01-08 12:05:38 +01:00
Gav Wood
f81fb2de51 Fix and some tests for opaque types in populatable. 2016-01-08 12:02:26 +01:00
Gav Wood
3018c4a28a Additional Populatable API tweaks. 2016-01-08 11:52:46 +01:00
Gav Wood
f0da76df7c API cleanups. 2016-01-08 11:43:11 +01:00
Gav Wood
806de37cec Additional docs. 2016-01-08 11:02:32 +01:00
Gav Wood
51ccd5e8fc Comment TODO. 2016-01-08 00:36:57 +01:00
Gav Wood
5fc87a334d Additional work & convenience functions on crypto, bytes & hash.
Renaming mut_bytes() to as_slice_mut().
2016-01-07 23:59:50 +01:00
Gav Wood
5423797ce4 Build fix. 2016-01-06 14:06:34 +01:00
Gav Wood
398231f9a7 Additional missing struct stuff. 2016-01-06 13:59:48 +01:00
Gav Wood
be7bfd51a7 Merge branch 'master' into gav 2016-01-06 13:55:05 +01:00
Gav Wood
8bf03bb8ff Secure trie functions & structs. 2016-01-06 13:53:23 +01:00
Gav Wood
0125125c27 Semantic version test fix. 2016-01-05 19:05:51 +01:00
arkpar
73405cc74c Fixed timeout signature; Added usage example 2016-01-04 23:58:59 +01:00
arkpar
39f2dc9e2f Style 2016-01-04 13:49:32 +01:00
arkpar
32fcc6b3e9 Removed fmt file 2016-01-03 09:23:45 +01:00
arkpar
2cdf4ebd0a Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2016-01-03 09:22:26 +01:00
arkpar
9e0c8e3d8b Documentation 2015-12-30 12:23:36 +01:00
arkpar
267495c264 User IO messages 2015-12-28 11:41:51 +01:00
arkpar
634b6be1e6 fixed warnings 2015-12-26 15:50:55 +01:00
arkpar
fa1b74fa53 minor fixes 2015-12-26 15:48:41 +01:00
debris
88debb2190 address to and from h256 2015-12-24 00:31:43 +01:00
arkpar
416c2ec3e4 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2015-12-22 22:23:53 +01:00
arkpar
3ad262e18f more networking 2015-12-22 22:23:43 +01:00
arkpar
f34b22c65b cache item count in Rlp 2015-12-22 22:23:01 +01:00
debris
9220e0c49f missing Error case 2015-12-21 02:30:38 +01:00
debris
be2b041ee4 fixed semantic version tests 2015-12-21 01:57:34 +01:00
Gav Wood
7ed49bea4d Merge pull request #20 from gavofyork/uint
convenient creation of uint
2015-12-20 12:55:51 +00:00
Gav Wood
72a24ad023 SemanticVersion struct.
Additional documentation.
2015-12-20 12:28:13 +00:00
arkpar
900fc833f0 Merge branch 'master' of github.com:gavofyork/ethcore-util into network 2015-12-19 14:19:14 +01:00
Gav Wood
0addfc186d Add tests for triedb, optimise tests for triedbmut. 2015-12-19 12:53:05 +00:00
Gav Wood
cc192b2264 Merge remote-tracking branch 'origin/master' into triemut 2015-12-19 12:38:02 +00:00
Gav Wood
80cdde2972 Renamed RLP's generic submodules to prevent systematic name clashing.
Repotted Trie module.
2015-12-19 12:35:26 +00:00
debris
f7ee9436cd more convinient creation of uint 2015-12-18 10:29:06 +01:00
arkpar
6e4850d4ae updated for new RLP interface 2015-12-17 14:05:13 +01:00
Gav Wood
2a5c6665cf Trie (immutable). 2015-12-17 12:48:47 +01:00
Gav Wood
674c667114 Rename Trie to TrieMut in preparation for immutable trie. 2015-12-17 12:43:50 +01:00
arkpar
ba4620bd6c Merge branch 'master' of github.com:gavofyork/ethcore-util into network
Conflicts:
	src/lib.rs
	src/rlp.rs
	src/triehash.rs
2015-12-17 11:46:42 +01:00
arkpar
a9bd050d2f Net service 2015-12-17 11:42:30 +01:00
debris
926efb6fc8 docs, tests and bugfixes for squeeze 2015-12-16 17:12:20 +01:00
debris
56de081381 squeeze is pub 2015-12-16 16:27:27 +01:00
debris
ca1a6bd791 heapsize && squeeze 2015-12-16 16:23:21 +01:00
debris
1e6694ec7f removed unused stuff 2015-12-15 16:36:38 +01:00
debris
9231bc6622 read_list -> as_list 2015-12-14 12:03:48 +01:00
debris
de4a227a47 decoding fixed sized arrays 2015-12-14 11:56:11 +01:00
debris
fed599fbb9 Merge branch 'master' of https://github.com/gavofyork/ethcore-util into hash_changes 2015-12-13 22:44:38 +01:00
debris
83af940223 h264 2015-12-13 22:44:28 +01:00
Gav Wood
d94c55133b Trie takes a reference to HashDB. 2015-12-13 19:36:49 +01:00
debris
6bc56ad004 added raw method to RlpStream. usefull for quicklookup 2015-12-12 15:57:08 +01:00
debris
38f813a5e6 fast mul by 10 2015-12-12 13:32:42 +01:00
debris
862702b9c7 implemented rem, lenient from_str, from_dec_str for uint 2015-12-12 06:04:24 +01:00
debris
16cadf1a64 hash for uint 2015-12-11 14:40:28 +01:00
debris
f19d044e7c renamed new_pre_existing to new_existing 2015-12-11 03:49:15 +01:00
debris
b487f8f20e TrieDB root is borrowed 2015-12-11 03:00:39 +01:00
debris
4210b957ac triedb db is borrowed instead of being owned 2015-12-10 15:48:25 +01:00
debris
6db12408dc fixed uint multiplication 2015-12-09 14:50:01 +01:00
debris
d2b1b92f9e removed unused macros.rs 2015-12-09 11:05:27 +01:00