choose 2^25 powers for test ceremony in Paris

This commit is contained in:
Alex Vlasov 2019-03-05 11:41:00 +01:00
parent e62cb6a09b
commit 2edd90248c
2 changed files with 4 additions and 4 deletions

@ -56,7 +56,7 @@ fn test_pubkey_serialization() {
#[test]
fn test_power_pairs() {
use self::rand::thread_rng;
use self::pairing::bn256::{Fr, G1Affine, G2Affine};
use self::bellman::pairing::bn256::{Fr, G1Affine, G2Affine};
let rng = &mut thread_rng();
let mut v = vec![];
@ -79,7 +79,7 @@ fn test_power_pairs() {
#[test]
fn test_same_ratio() {
use self::rand::thread_rng;
use self::pairing::bn256::{Fr, G1Affine, G2Affine};
use self::bellman::pairing::bn256::{Fr, G1Affine, G2Affine};
let rng = &mut thread_rng();
@ -98,7 +98,7 @@ fn test_accumulator_serialization() {
use crate::accumulator::*;
use self::rand::thread_rng;
use self::pairing::bn256::{Bn256, Fr, G1Affine, G2Affine};
use self::bellman::pairing::bn256::{Bn256, Fr, G1Affine, G2Affine};
use self::PowersOfTauParameters;
let rng = &mut thread_rng();

@ -30,7 +30,7 @@ pub struct Bn256CeremonyParameters {
}
impl PowersOfTauParameters for Bn256CeremonyParameters {
const REQUIRED_POWER: usize = 21; // generate to have roughly 2 million constraints
const REQUIRED_POWER: usize = 25; // generate to have roughly 2 million constraints
// This ceremony is based on the BN256 elliptic curve construction.
const G1_UNCOMPRESSED_BYTE_SIZE: usize = 64;