From c55a1920a620ef75d82d35676534f0c08288f60d Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Thu, 16 May 2019 16:37:18 +0200 Subject: [PATCH 1/3] [ethbloom] impl rlp for Bloom --- ethbloom/Cargo.toml | 1 + ethbloom/src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ethbloom/Cargo.toml b/ethbloom/Cargo.toml index e9bde8d2d..77eabc3be 100644 --- a/ethbloom/Cargo.toml +++ b/ethbloom/Cargo.toml @@ -13,6 +13,7 @@ tiny-keccak = "1.4" crunchy = { version = "0.2", default-features = false, features = ["limit_256"] } fixed-hash = { path = "../fixed-hash", version = "0.3", default-features = false } impl-serde = { path = "../primitive-types/impls/serde", version = "0.2", default-features = false, optional = true } +impl-rlp = { path = "../primitive-types/impls/rlp", version = "0.1", default-features = false } [dev-dependencies] rand = { version = "0.4" } diff --git a/ethbloom/src/lib.rs b/ethbloom/src/lib.rs index 9734e0731..1df7a206a 100644 --- a/ethbloom/src/lib.rs +++ b/ethbloom/src/lib.rs @@ -59,6 +59,9 @@ extern crate fixed_hash; #[macro_use] extern crate impl_serde; +#[macro_use] +extern crate impl_rlp; + #[cfg(test)] #[macro_use] extern crate hex_literal; @@ -77,6 +80,7 @@ construct_fixed_hash!{ /// Bloom hash type with 256 bytes (2048 bits) size. pub struct Bloom(BLOOM_SIZE); } +impl_fixed_hash_rlp!(Bloom, BLOOM_SIZE); /// Returns log2. fn log2(x: usize) -> u32 { From 594b4a81907bb572954c94d806705a37efb34530 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Thu, 23 May 2019 14:26:37 +0200 Subject: [PATCH 2/3] Update ethbloom/Cargo.toml Co-Authored-By: David --- ethbloom/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethbloom/Cargo.toml b/ethbloom/Cargo.toml index 77eabc3be..0ab6babdb 100644 --- a/ethbloom/Cargo.toml +++ b/ethbloom/Cargo.toml @@ -13,7 +13,7 @@ tiny-keccak = "1.4" crunchy = { version = "0.2", default-features = false, features = ["limit_256"] } fixed-hash = { path = "../fixed-hash", version = "0.3", default-features = false } impl-serde = { path = "../primitive-types/impls/serde", version = "0.2", default-features = false, optional = true } -impl-rlp = { path = "../primitive-types/impls/rlp", version = "0.1", default-features = false } +impl-rlp = { path = "../primitive-types/impls/rlp", version = "0.2", default-features = false } [dev-dependencies] rand = { version = "0.4" } From 85833568d3962cd520a10701e247a245a5c12a06 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Thu, 23 May 2019 14:29:28 +0200 Subject: [PATCH 3/3] [ethbloom] bump version to 0.6.4 --- ethbloom/Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethbloom/Cargo.toml b/ethbloom/Cargo.toml index 0ab6babdb..4c5d6a981 100644 --- a/ethbloom/Cargo.toml +++ b/ethbloom/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ethbloom" -version = "0.6.3" +version = "0.6.4" authors = ["Parity Technologies "] description = "Ethereum bloom filter" license = "MIT"