mirror of
https://github.com/serai-dex/serai.git
synced 2024-09-29 01:41:28 +00:00
3.10.2 Explicitly test RecommendedTranscript
This commit is contained in:
parent
ad470bc969
commit
669d2dbffc
3 changed files with 9 additions and 0 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
@ -2436,6 +2436,7 @@ dependencies = [
|
||||||
"blake2",
|
"blake2",
|
||||||
"digest 0.10.6",
|
"digest 0.10.6",
|
||||||
"merlin 3.0.0",
|
"merlin 3.0.0",
|
||||||
|
"sha2 0.10.6",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
|
|
|
@ -19,6 +19,7 @@ blake2 = { version = "0.10", optional = true }
|
||||||
merlin = { version = "3", optional = true }
|
merlin = { version = "3", optional = true }
|
||||||
|
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
|
sha2 = "0.10"
|
||||||
blake2 = "0.10"
|
blake2 = "0.10"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
|
|
|
@ -85,9 +85,16 @@ where
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_digest() {
|
fn test_digest() {
|
||||||
|
test_transcript::<crate::DigestTranscript<sha2::Sha256>>();
|
||||||
test_transcript::<crate::DigestTranscript<blake2::Blake2b512>>();
|
test_transcript::<crate::DigestTranscript<blake2::Blake2b512>>();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(feature = "recommended")]
|
||||||
|
#[test]
|
||||||
|
fn test_recommended() {
|
||||||
|
test_transcript::<crate::RecommendedTranscript>();
|
||||||
|
}
|
||||||
|
|
||||||
#[cfg(feature = "merlin")]
|
#[cfg(feature = "merlin")]
|
||||||
#[test]
|
#[test]
|
||||||
fn test_merlin() {
|
fn test_merlin() {
|
||||||
|
|
Loading…
Reference in a new issue