Add test vectors from librustzcash.
The `SpendAuth` test vectors were generated using `FixedGenerators::SpendingKeyGenerator`, and the `Binding` test vectors were generated using `FixedGenerators::ValueCommitmentRandomness`.
This commit is contained in:
parent
7b979ddd65
commit
8aeb2f14f8
|
@ -13,6 +13,7 @@ jubjub = "0.3"
|
||||||
[dev-dependencies]
|
[dev-dependencies]
|
||||||
rand_chacha = "0.2"
|
rand_chacha = "0.2"
|
||||||
proptest = "0.9"
|
proptest = "0.9"
|
||||||
|
lazy_static = "1.4"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
nightly = []
|
nightly = []
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,9 +3,7 @@ use std::convert::TryFrom;
|
||||||
use proptest::prelude::*;
|
use proptest::prelude::*;
|
||||||
use rand_core::{CryptoRng, RngCore};
|
use rand_core::{CryptoRng, RngCore};
|
||||||
|
|
||||||
use redjubjub_zebra as rjj;
|
use redjubjub_zebra::*;
|
||||||
|
|
||||||
use rjj::{PublicKey, PublicKeyBytes, SecretKey, SigType, Signature};
|
|
||||||
|
|
||||||
/// A signature test-case, containing signature data and expected validity.
|
/// A signature test-case, containing signature data and expected validity.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
|
@ -102,7 +100,6 @@ proptest! {
|
||||||
tweaks in prop::collection::vec(tweak_strategy(), (0,5)),
|
tweaks in prop::collection::vec(tweak_strategy(), (0,5)),
|
||||||
rng_seed in any::<u64>(),
|
rng_seed in any::<u64>(),
|
||||||
) {
|
) {
|
||||||
use rjj::{Binding, SpendAuth, };
|
|
||||||
use rand_core::SeedableRng;
|
use rand_core::SeedableRng;
|
||||||
|
|
||||||
// Use a deterministic RNG so that test failures can be reproduced.
|
// Use a deterministic RNG so that test failures can be reproduced.
|
||||||
|
|
Loading…
Reference in New Issue