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)