vezenovm / simple_shield

Basic Noir anonymous proof of membership
88 stars 10 forks source link

unable to find any reference of `p` in `nargo compile p` #12

Open ArpitxGit opened 3 months ago

ArpitxGit commented 3 months ago

these are the only options found here

nargo compile
Compile the program and its secret execution trace into ACIR format

Usage: nargo compile [OPTIONS]

Options:
--package <PACKAGE> — The name of the package to compile

--workspace — Compile all packages in the workspace

--expression-width <EXPRESSION_WIDTH> — Override the expression width requested by the backend

Default value: 4

--force — Force a full recompilation

--print-acir — Display the ACIR for compiled circuit

--deny-warnings — Treat all warnings as errors

--silence-warnings — Suppress warnings
ArpitxGit commented 3 months ago

modified Nargo.toml with a reference from here

[package]
name = "mimc"
type = "bin"
authors = [""]
compiler_version = "0.9.0"
description = "starting from simple sheild"
entry = "src/main.nr"
license = "MIT"

[dependencies]
ecrecover = {tag = "v0.9.0", git = "https://github.com/colinnielsen/ecrecover-noir.git"}

and after nargo compile --package mimc

Cloning into '/Users/<>/nargo/github.com/colinnielsen/ecrecover-noir.gitv0.9.0'...
remote: Enumerating objects: 14, done.
remote: Counting objects: 100% (14/14), done.
remote: Compressing objects: 100% (11/11), done.
remote: Total 14 (delta 0), reused 8 (delta 0), pack-reused 0
Receiving objects: 100% (14/14), 6.57 KiB | 6.57 MiB/s, done.
Cloning into '/Users/<>/nargo/github.com/colinnielsen/noir-array-helpersv0.1.0'...
remote: Enumerating objects: 10, done.
remote: Counting objects: 100% (10/10), done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 10 (delta 0), reused 5 (delta 0), pack-reused 0
Receiving objects: 100% (10/10), 4.28 KiB | 4.28 MiB/s, done.
Invalid package name `noir-array-helpers` found in /Users/<>/nargo/github.com/colinnielsen/noir-array-helpersv0.1.0/Nargo.toml