From 3854eb0fd84e9d3e4926ee238016aefbfa6a8222 Mon Sep 17 00:00:00 2001 From: Isis Lovecruft Date: Fri, 6 Jul 2018 00:10:41 +0000 Subject: [PATCH] Remove extra line and unneeded XXX comment from Scalar::hash_from_bytes. --- src/scalar.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/scalar.rs b/src/scalar.rs index d4c921e..f490948 100644 --- a/src/scalar.rs +++ b/src/scalar.rs @@ -480,7 +480,6 @@ impl Scalar { /// let s = Scalar::hash_from_bytes::(msg.as_bytes()); /// # } /// ``` - /// pub fn hash_from_bytes(input: &[u8]) -> Scalar where D: Digest + Default { @@ -497,7 +496,6 @@ impl Scalar { pub fn from_hash(hash: D) -> Scalar where D: Digest + Default { - // XXX this seems clumsy let mut output = [0u8; 64]; output.copy_from_slice(hash.result().as_slice()); Scalar::from_bytes_mod_order_wide(&output)