Skip to content

Commit

Permalink
add an alias
Browse files Browse the repository at this point in the history
  • Loading branch information
srinathsetty committed Nov 22, 2023
1 parent 32ede4a commit 97cade6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/provider/mlkzg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ use rand_core::OsRng;
use rayon::prelude::*;
use serde::{Deserialize, Serialize};

type PreprocessedGroupElement<G> = <G as DlogGroup>::PreprocessedGroupElement;

/// KZG commitment key
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct CommitmentKey<E: Engine>
where
E::GE: PairingGroup,
{
ck: Vec<<E::GE as DlogGroup>::PreprocessedGroupElement>,
ck: Vec<PreprocessedGroupElement<E::GE>>,
tau_H: <<E::GE as PairingGroup>::G2 as DlogGroup>::PreprocessedGroupElement, // needed only for the verifier key
}

Expand Down

0 comments on commit 97cade6

Please sign in to comment.