mirror of
https://github.com/selfxyz/self.git
synced 2026-01-10 07:08:10 -05:00
feat: replace circomlib with circom-dl
This commit is contained in:
@@ -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"]
|
||||
8
noir/crates/dg1/Nargo.toml
Normal file
8
noir/crates/dg1/Nargo.toml
Normal 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.
|
||||
1238
noir/crates/dg1/rsa-inputs.json
Normal file
1238
noir/crates/dg1/rsa-inputs.json
Normal file
File diff suppressed because it is too large
Load Diff
@@ -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],
|
||||
@@ -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");
|
||||
}
|
||||
@@ -1,3 +1,3 @@
|
||||
pub mod passport;
|
||||
pub mod date;
|
||||
pub mod array;
|
||||
pub mod other;
|
||||
7
noir/crates/econtent/Nargo.toml
Normal file
7
noir/crates/econtent/Nargo.toml
Normal file
@@ -0,0 +1,7 @@
|
||||
[package]
|
||||
name = "econtent"
|
||||
type = "bin"
|
||||
authors = [""]
|
||||
compiler_version = ">=0.36.0"
|
||||
|
||||
[dependencies]
|
||||
11
noir/crates/econtent/src/main.nr
Normal file
11
noir/crates/econtent/src/main.nr
Normal 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);
|
||||
}
|
||||
1273
noir/rsa-inputs.json
1273
noir/rsa-inputs.json
File diff suppressed because it is too large
Load Diff
@@ -1,2 +0,0 @@
|
||||
pub mod signature_verifier;
|
||||
|
||||
@@ -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));
|
||||
// }
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
pub mod date;
|
||||
Reference in New Issue
Block a user