Skip to content

Commit 4907069

Browse files
committed
Add a Deserialize-And-Verify test
1 parent f939cfe commit 4907069

File tree

3 files changed

+152
-5
lines changed

3 files changed

+152
-5
lines changed

Cargo.toml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,20 @@ clear_on_drop = "0.2"
2828
hex = "0.3"
2929
criterion = "0.2"
3030
bincode = "1"
31+
rand_chacha = "0.1"
3132

3233
[features]
3334
avx2_backend = ["curve25519-dalek/avx2_backend"]
3435
# Disable the yoloproofs feature for the released crate, so that it's not possible for someone to publish a crate using R1CS proofs yet.
3536
# yoloproofs = []
3637

38+
[[test]]
39+
name = "range_proof"
40+
41+
[[test]]
42+
name = "r1cs"
43+
required-features = ["yoloproofs"]
44+
3745
[[bench]]
3846
name = "range_proof"
3947
harness = false
@@ -42,7 +50,3 @@ harness = false
4250
name = "r1cs"
4351
harness = false
4452
required-features = ["yoloproofs"]
45-
46-
[[test]]
47-
name = "r1cs"
48-
required-features = ["yoloproofs"]

src/generators.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,6 @@ impl<'a> BulletproofGensShare<'a> {
266266

267267
#[cfg(test)]
268268
mod tests {
269-
extern crate hex;
270269
use super::*;
271270

272271
#[test]

0 commit comments

Comments
 (0)