From 81d6556c75812643571114ccbaa9b7d12b6a26a2 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 4 Sep 2019 11:25:59 +0200 Subject: [PATCH 1/3] Update util/EIP-152/src/lib.rs Co-Authored-By: Niklas Adolfsson --- util/EIP-152/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/EIP-152/src/lib.rs b/util/EIP-152/src/lib.rs index 2bb726a1219..fd68b9072d2 100644 --- a/util/EIP-152/src/lib.rs +++ b/util/EIP-152/src/lib.rs @@ -65,7 +65,7 @@ pub fn compress(h: &mut [u64; 8], m: [u64; 16], t: [u64; 2], f: bool, rounds: us v[13] ^= t[1]; if f { - v[14] = !v[14] // Invert all bits is the last-block-flag is set. + v[14] = !v[14] // Invert all bits if the last-block-flag is set. } for i in 0..rounds { // Message word selection permutation for this round. From 68c376e607e1c782d3f9142c0868c6f3f5fc75ec Mon Sep 17 00:00:00 2001 From: David Date: Wed, 4 Sep 2019 11:26:47 +0200 Subject: [PATCH 2/3] Update json/src/spec/builtin.rs Co-Authored-By: Andronik Ordian --- json/src/spec/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/src/spec/builtin.rs b/json/src/spec/builtin.rs index 4833bb8567c..c4e534edb9e 100644 --- a/json/src/spec/builtin.rs +++ b/json/src/spec/builtin.rs @@ -68,7 +68,7 @@ pub struct AltBn128Pairing { #[serde(deny_unknown_fields)] #[serde(rename_all = "snake_case")] pub enum Pricing { - /// Fixed pricing. + /// Pricing for Blake2 compression function: each call costs the same amount per round. Blake2F(Blake2F), /// Linear pricing. Linear(Linear), From ad61a15b55d8d7f1ef6e94439ab155b10897a545 Mon Sep 17 00:00:00 2001 From: David Date: Wed, 4 Sep 2019 11:27:01 +0200 Subject: [PATCH 3/3] Update json/src/spec/builtin.rs Co-Authored-By: Andronik Ordian --- json/src/spec/builtin.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/json/src/spec/builtin.rs b/json/src/spec/builtin.rs index c4e534edb9e..20ebbc3c636 100644 --- a/json/src/spec/builtin.rs +++ b/json/src/spec/builtin.rs @@ -18,7 +18,7 @@ use uint::Uint; -/// Pricing for Blake2 compression function: each call costs the same amount per round. +/// Price per round of Blake2 compression. pub type Blake2F = u64; /// Linear pricing.