mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-12 09:26:51 +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",
|
||||
"digest 0.10.6",
|
||||
"merlin 3.0.0",
|
||||
"sha2 0.10.6",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
@ -19,6 +19,7 @@ blake2 = { version = "0.10", optional = true }
|
|||
merlin = { version = "3", optional = true }
|
||||
|
||||
[dev-dependencies]
|
||||
sha2 = "0.10"
|
||||
blake2 = "0.10"
|
||||
|
||||
[features]
|
||||
|
|
|
@ -85,9 +85,16 @@ where
|
|||
|
||||
#[test]
|
||||
fn test_digest() {
|
||||
test_transcript::<crate::DigestTranscript<sha2::Sha256>>();
|
||||
test_transcript::<crate::DigestTranscript<blake2::Blake2b512>>();
|
||||
}
|
||||
|
||||
#[cfg(feature = "recommended")]
|
||||
#[test]
|
||||
fn test_recommended() {
|
||||
test_transcript::<crate::RecommendedTranscript>();
|
||||
}
|
||||
|
||||
#[cfg(feature = "merlin")]
|
||||
#[test]
|
||||
fn test_merlin() {
|
||||
|
|
Loading…
Reference in a new issue