Use compress feature flag with hashes crate and re-exported compress256

This commit is contained in:
Deirdre Connolly 2020-03-24 18:41:10 -04:00 committed by Deirdre Connolly
parent 48dbcab00e
commit 720a507ba3
2 changed files with 2 additions and 2 deletions

View File

@ -24,7 +24,7 @@ x25519-dalek = "0.6"
# ZF deps
ed25519-zebra = "0.2"
redjubjub = "0.1"
sha2 = {git="https://github.com/ZcashFoundation/hashes", branch = "expose-utils", features=["utils"]}
sha2 = {git="https://github.com/ZcashFoundation/hashes", branch = "expose-utils", features=["compress"]}
[dev-dependencies]
proptest = "0.9"

View File

@ -13,7 +13,7 @@ use proptest::{array, collection::vec, prelude::*};
#[cfg(test)]
use proptest_derive::Arbitrary;
use sha2::sha256_utils::compress256;
use sha2::compress256;
/// Our root secret key of the Sprout key derivation tree.
///