mirror of
https://github.com/saymrwulf/pasta_curves-source.git
synced 2026-09-06 20:20:34 +00:00
Run SRS synthesis on an empty circuit in test.
This commit is contained in:
parent
36f9e87056
commit
24b7e6cc7c
1 changed files with 3 additions and 1 deletions
|
|
@ -218,8 +218,10 @@ fn test_proving() {
|
||||||
a: Some((-Fp::from_u64(2) + Fp::ROOT_OF_UNITY).pow(&[100, 0, 0, 0])),
|
a: Some((-Fp::from_u64(2) + Fp::ROOT_OF_UNITY).pow(&[100, 0, 0, 0])),
|
||||||
};
|
};
|
||||||
|
|
||||||
|
let empty_circuit: MyCircuit<Fp> = MyCircuit { a: None };
|
||||||
|
|
||||||
// Initialize the SRS
|
// Initialize the SRS
|
||||||
let srs = SRS::generate(¶ms, &circuit).expect("SRS generation should not fail");
|
let srs = SRS::generate(¶ms, &empty_circuit).expect("SRS generation should not fail");
|
||||||
|
|
||||||
// Create a proof
|
// Create a proof
|
||||||
let proof = Proof::create::<DummyHash<Fq>, DummyHash<Fp>, _>(¶ms, &srs, &circuit)
|
let proof = Proof::create::<DummyHash<Fq>, DummyHash<Fp>, _>(¶ms, &srs, &circuit)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue