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]
|
||||
rand_chacha = "0.2"
|
||||
proptest = "0.9"
|
||||
lazy_static = "1.4"
|
||||
|
||||
[features]
|
||||
nightly = []
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3,9 +3,7 @@ use std::convert::TryFrom;
|
|||
use proptest::prelude::*;
|
||||
use rand_core::{CryptoRng, RngCore};
|
||||
|
||||
use redjubjub_zebra as rjj;
|
||||
|
||||
use rjj::{PublicKey, PublicKeyBytes, SecretKey, SigType, Signature};
|
||||
use redjubjub_zebra::*;
|
||||
|
||||
/// A signature test-case, containing signature data and expected validity.
|
||||
#[derive(Clone, Debug)]
|
||||
|
@ -102,7 +100,6 @@ proptest! {
|
|||
tweaks in prop::collection::vec(tweak_strategy(), (0,5)),
|
||||
rng_seed in any::<u64>(),
|
||||
) {
|
||||
use rjj::{Binding, SpendAuth, };
|
||||
use rand_core::SeedableRng;
|
||||
|
||||
// Use a deterministic RNG so that test failures can be reproduced.
|
||||
|
|
Loading…
Reference in New Issue