rename and make field public. Prepare to test on Eth

This commit is contained in:
Alex Vlasov 2019-02-05 17:28:38 +03:00
parent 7239a60044
commit e8409bb70b
2 changed files with 7 additions and 7 deletions

@ -128,18 +128,18 @@ impl<E: Engine> Batch<E> {
}
pub struct VerificationKey<E:Engine> {
alpha_x: E::G2Affine,
pub struct VerifyingKey<E:Engine> {
pub alpha_x: E::G2Affine,
alpha: E::G2Affine,
pub alpha: E::G2Affine,
neg_h: E::G2Affine,
pub neg_h: E::G2Affine,
neg_x_n_minus_d: E::G2Affine
pub neg_x_n_minus_d: E::G2Affine
}
impl<E: Engine> VerificationKey<E> {
impl<E: Engine> VerifyingKey<E> {
pub fn new(srs: &SRS<E>, n: usize) -> Self {
Self {
alpha_x: srs.h_positive_x_alpha[1],

@ -11,7 +11,7 @@ mod batch;
mod poly;
mod helper;
pub use self::batch::{Batch, VerificationKey};
pub use self::batch::{Batch, VerifyingKey};
pub use self::helper::{Aggregate, create_aggregate};
pub use self::verifier::{MultiVerifier};
pub use self::prover::{create_proof, create_advice};