Skip to content

Commit

Permalink
Merge pull request #2 from ethereum/g1_monomial
Browse files Browse the repository at this point in the history
Adds G1 monomial to the output setups
  • Loading branch information
CarlBeek committed Jan 4, 2024
2 parents a7800a1 + 953776f commit 677556e
Show file tree
Hide file tree
Showing 6 changed files with 123,146 additions and 61,696 deletions.
1 change: 1 addition & 0 deletions crypto/src/powers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ impl Powers {
#[derive(Clone, PartialEq, Eq, Debug, Serialize, Deserialize)]
#[serde(rename_all = "snake_case", deny_unknown_fields)]
pub struct OutputJson {
pub g1_monomial: Vec<G1>,
pub g1_lagrange: Vec<G1>,
pub g2_monomial: Vec<G2>,
}
Expand Down
1 change: 1 addition & 0 deletions crypto/src/transcript.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ impl Transcript {
pub fn output_json_setup(&self, folder: &str) -> Result<(), CeremonyError> {
let g1_lagrange = bls::get_lagrange_g1(&self.powers.g1)?;
let json = OutputJson {
g1_monomial: self.powers.g1.clone(),
g1_lagrange: g1_lagrange,
g2_monomial: self.powers.g2.clone(),
};
Expand Down
Loading

0 comments on commit 677556e

Please sign in to comment.