feat: replace circomlib with circom-dl

This commit is contained in:
ayman
2024-12-14 19:27:29 +05:30
parent 13ff33284b
commit 2c838843ed
144 changed files with 7215 additions and 1597184 deletions

View File

@@ -1,8 +1,2 @@
[package]
name = "noir"
type = "bin"
authors = [""]
compiler_version = ">=0.36.0"
[dependencies]
# version error in rsa crate 0.3.1, keep both rsa and bignum are causing some issues.
[workspace]
members = ["crates/dg1", "crates/econtent"]

View File

@@ -0,0 +1,8 @@
[package]
name = "noir"
type = "bin"
authors = [""]
compiler_version = ">=0.36.0"
[dependencies]
# version error in rsa crate 0.3.1, keep both rsa and bignum are causing some issues.

File diff suppressed because it is too large Load Diff

View File

@@ -1,5 +1,5 @@
use crate::types::DG1;
use crate::utils::passport::date::is_older_than::is_older_than;
use crate::utils::date::is_older_than::is_older_than;
pub struct DiscloseOutput {
revealed_data: [u8; 88],

View File

@@ -1,8 +1,10 @@
pub mod dg1;
pub mod eContent;
pub mod disclose;
pub mod types;
pub mod utils;
pub mod constants;
mod ofac;
pub mod signature_verifier;
fn main() {
println("hi");
}

View File

@@ -1,3 +1,3 @@
pub mod passport;
pub mod date;
pub mod array;
pub mod other;

View File

@@ -0,0 +1,7 @@
[package]
name = "econtent"
type = "bin"
authors = [""]
compiler_version = ">=0.36.0"
[dependencies]

View File

@@ -0,0 +1,11 @@
fn main(x: Field, y: pub Field) {
assert(x != y);
}
#[test]
fn test_main() {
main(1, 2);
// Uncomment to make test fail
// main(1, 1);
}

File diff suppressed because it is too large Load Diff

View File

@@ -1,2 +0,0 @@
pub mod signature_verifier;

View File

@@ -1,12 +0,0 @@
// use dep::bignum::BigNum;
// use dep::bignum::runtime_bignum::BigNumInstance;
// use dep::std;
// use dep::rsa::types::{RSA, RSA2048, BN2048, BNInst2048};
// pub fn rsa_signature_verifier(bn: [[Field; 18]; 2], hash: [u8; 32], signature: BN2048) {
// let rsa: RSA2048 = RSA {};
// let BNInstance: BNInst2048 = BigNumInstance::new(bn[0], bn[1]);
// assert(rsa.verify_sha256_pkcs1v15(BNInstance, hash, signature, 65537));
// }

View File

@@ -1 +0,0 @@
pub mod date;