diff --git a/Cargo.lock b/Cargo.lock index b6c86581..ee05a685 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2436,6 +2436,7 @@ dependencies = [ "blake2", "digest 0.10.6", "merlin 3.0.0", + "sha2 0.10.6", ] [[package]] diff --git a/crypto/transcript/Cargo.toml b/crypto/transcript/Cargo.toml index b7a6d9d0..d884ee96 100644 --- a/crypto/transcript/Cargo.toml +++ b/crypto/transcript/Cargo.toml @@ -19,6 +19,7 @@ blake2 = { version = "0.10", optional = true } merlin = { version = "3", optional = true } [dev-dependencies] +sha2 = "0.10" blake2 = "0.10" [features] diff --git a/crypto/transcript/src/tests.rs b/crypto/transcript/src/tests.rs index 0a461ba5..4a9f9dfc 100644 --- a/crypto/transcript/src/tests.rs +++ b/crypto/transcript/src/tests.rs @@ -85,9 +85,16 @@ where #[test] fn test_digest() { + test_transcript::>(); test_transcript::>(); } +#[cfg(feature = "recommended")] +#[test] +fn test_recommended() { + test_transcript::(); +} + #[cfg(feature = "merlin")] #[test] fn test_merlin() {