From ab2c699f8d3cb29708281570e38d1fcb1c8750d4 Mon Sep 17 00:00:00 2001 From: Balazs Komuves Date: Thu, 15 Jan 2026 18:25:39 +0100 Subject: [PATCH] move the nimble file to the root (apparently nimble requires this for git dependencies??) --- .gitignore | 4 +++- nim/circom_witnessgen.nimble => circom_witnessgen.nimble | 5 +++-- nim/.gitignore | 4 +++- nim/{main.nim => testMain.nim} | 8 ++++---- 4 files changed, 13 insertions(+), 8 deletions(-) rename nim/circom_witnessgen.nimble => circom_witnessgen.nimble (71%) rename nim/{main.nim => testMain.nim} (90%) diff --git a/.gitignore b/.gitignore index 68df01b..aeb64ec 100644 --- a/.gitignore +++ b/.gitignore @@ -3,4 +3,6 @@ *.o tmp/ build/ -.ghc.environment.* \ No newline at end of file +.ghc.environment.* +main +testMain diff --git a/nim/circom_witnessgen.nimble b/circom_witnessgen.nimble similarity index 71% rename from nim/circom_witnessgen.nimble rename to circom_witnessgen.nimble index 678b99e..3026efd 100644 --- a/nim/circom_witnessgen.nimble +++ b/circom_witnessgen.nimble @@ -1,8 +1,9 @@ -version = "0.0.1" +version = "0.0.2" author = "Balazs Komuves" description = "Witness generation for circom circuits" license = "MIT OR Apache-2.0" +srcDir = "nim" -bin = @["main"] +bin = @["testMain"] requires "constantine >= 0.2.0" \ No newline at end of file diff --git a/nim/.gitignore b/nim/.gitignore index 6c8c417..8ab4076 100644 --- a/nim/.gitignore +++ b/nim/.gitignore @@ -1,3 +1,5 @@ .DS_Store +tmp/ +cli main -tmp/ \ No newline at end of file +testMain diff --git a/nim/main.nim b/nim/testMain.nim similarity index 90% rename from nim/main.nim rename to nim/testMain.nim index 172fdb1..8eddc08 100644 --- a/nim/main.nim +++ b/nim/testMain.nim @@ -14,10 +14,10 @@ import circom_witnessgen/export_wtns #------------------------------------------------------------------------------- -const graph_file: string = "./tmp/rln_main.graph" -const input_file: string = "./tmp/input.json" -const partial_file: string = "./tmp/partial.json" -const wtns_file: string = "./tmp/output.wtns" +const graph_file: string = "./nim/tmp/rln_main.graph" +const input_file: string = "./nim/tmp/input.json" +const partial_file: string = "./nim/tmp/partial.json" +const wtns_file: string = "./nim/tmp/output.wtns" const unchanging_inputs: seq[string] = @["secret_key","msg_limit","merkle_root","leaf_idx","merkle_path"]