-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: bump minimum noir version to 0.35.0 and address privacy warnings (…
…#24) * feat: address privacy warnings * chore: bump msnv to 0.35.0
- Loading branch information
1 parent
615937a
commit fc53098
Showing
38 changed files
with
153 additions
and
124 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 |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
strategy: | ||
fail-fast: false | ||
matrix: | ||
toolchain: [nightly, 0.34.0] | ||
toolchain: [nightly, 0.35.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.35.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
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
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
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
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
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
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
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 |
---|---|---|
@@ -1,75 +1,69 @@ | ||
mod bn254Fq; | ||
mod bls12_377Fq; | ||
mod bls12_377Fr; | ||
mod bls12_381Fr; | ||
mod bls12_381Fq; | ||
mod ed25519Fq; | ||
mod ed25519Fr; | ||
mod mnt4_753Fq; | ||
mod mnt4_753Fr; | ||
mod mnt6_753Fq; | ||
mod mnt6_753Fr; | ||
mod pallasFq; | ||
mod pallasFr; | ||
mod secp256k1Fq; | ||
mod secp256k1Fr; | ||
mod secp256r1Fq; | ||
mod secp256r1Fr; | ||
mod secp384r1Fq; | ||
mod secp384r1Fr; | ||
mod vestaFq; | ||
mod vestaFr; | ||
mod U256; | ||
mod U384; | ||
mod U512; | ||
mod U768; | ||
mod U1024; | ||
mod U2048; | ||
mod U4096; | ||
mod U8192; | ||
pub mod bn254Fq; | ||
pub mod bls12_377Fq; | ||
pub mod bls12_377Fr; | ||
pub mod bls12_381Fr; | ||
pub mod bls12_381Fq; | ||
pub mod ed25519Fq; | ||
pub mod ed25519Fr; | ||
pub mod mnt4_753Fq; | ||
pub mod mnt4_753Fr; | ||
pub mod mnt6_753Fq; | ||
pub mod mnt6_753Fr; | ||
pub mod pallasFq; | ||
pub mod pallasFr; | ||
pub mod secp256k1Fq; | ||
pub mod secp256k1Fr; | ||
pub mod secp256r1Fq; | ||
pub mod secp256r1Fr; | ||
pub mod secp384r1Fq; | ||
pub mod secp384r1Fr; | ||
pub mod vestaFq; | ||
pub mod vestaFr; | ||
pub mod U256; | ||
pub mod U384; | ||
pub mod U512; | ||
pub mod U768; | ||
pub mod U1024; | ||
pub mod U2048; | ||
pub mod U4096; | ||
pub mod U8192; | ||
|
||
use crate::BigNum; | ||
pub use crate::runtime_bignum::BigNumInstance; | ||
use crate::runtime_bignum::BigNumParamsTrait as RuntimeBigNumParamsTrait; | ||
use crate::fields::bn254Fq::BNParams; | ||
|
||
/** | ||
* @brief Parameter definitions for generic fields of varying bit lengths | ||
* (these can be used when defining modular fields where the | ||
* modulus is a witness value and cannot be predefined | ||
* e.g. 2048-bit RSA) | ||
**/ | ||
struct Params512 {} | ||
pub struct Params512 {} | ||
impl RuntimeBigNumParamsTrait<5> for Params512 { | ||
fn modulus_bits() -> u32 { | ||
512 | ||
} | ||
} | ||
struct Params768 {} | ||
pub struct Params768 {} | ||
impl RuntimeBigNumParamsTrait<7> for Params768 { | ||
fn modulus_bits() -> u32 { | ||
768 | ||
} | ||
} | ||
struct Params1024 {} | ||
pub struct Params1024 {} | ||
impl RuntimeBigNumParamsTrait<9> for Params1024 { | ||
fn modulus_bits() -> u32 { | ||
1024 | ||
} | ||
} | ||
struct Params2048 {} | ||
pub struct Params2048 {} | ||
impl RuntimeBigNumParamsTrait<18> for Params2048 { | ||
fn modulus_bits() -> u32 { | ||
2048 | ||
} | ||
} | ||
struct Params4096 {} | ||
pub struct Params4096 {} | ||
impl RuntimeBigNumParamsTrait<35> for Params4096 { | ||
fn modulus_bits() -> u32 { | ||
4096 | ||
} | ||
} | ||
|
||
// example typedef when using a defined bignum instance | ||
type Fq = BigNum<3, BNParams>; | ||
|
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
Oops, something went wrong.