generated from noir-lang/noir-library-starter
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
10 changed files
with
1,645 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,12 +17,12 @@ jobs: | |
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.34.0 | ||
toolchain: 0.36.0 | ||
|
||
- name: Install bb | ||
run: | | ||
npm install -g bbup | ||
bbup -nv 0.34.0 | ||
bbup -nv 0.36.0 | ||
- name: Build Noir benchmark programs | ||
run: nargo export | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [nightly, 0.34.0] | ||
toolchain: [nightly, 0.36.0] | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v4 | ||
|
@@ -38,7 +38,7 @@ jobs: | |
- name: Install Nargo | ||
uses: noir-lang/[email protected] | ||
with: | ||
toolchain: 0.34.0 | ||
toolchain: 0.36.0 | ||
|
||
- name: Run formatter | ||
run: nargo fmt --check | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
pub mod te; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
use std::ec::tecurve::affine::Curve as TECurve; | ||
use std::ec::tecurve::affine::Point as TEPoint; | ||
|
||
pub struct BabyJubjub { | ||
pub curve: TECurve, | ||
pub base8: TEPoint, | ||
pub suborder: Field, | ||
} | ||
|
||
#[field(bn254)] | ||
// Uncommenting this results in deprecated warnings in the stdlib | ||
// #[deprecated] | ||
pub fn baby_jubjub() -> BabyJubjub { | ||
BabyJubjub { | ||
// Baby Jubjub (ERC-2494) parameters in affine representation | ||
curve: TECurve::new( | ||
168700, | ||
168696, | ||
// G | ||
TEPoint::new( | ||
995203441582195749578291179787384436505546430278305826713579947235728471134, | ||
5472060717959818805561601436314318772137091100104008585924551046643952123905, | ||
), | ||
), | ||
// [8]G precalculated | ||
base8: TEPoint::new( | ||
5299619240641551281634865583518297030282874472190772894086521144482721001553, | ||
16950150798460657717958625567821834550301663161624707787222815936182638968203, | ||
), | ||
// The size of the group formed from multiplying the base field by 8. | ||
suborder: 2736030358979909402780800718157159386076813972158567259200215660948447373041, | ||
} | ||
} |
Oops, something went wrong.