Skip to content

Commit

Permalink
upgrade to 2.2.0
Browse files Browse the repository at this point in the history
Signed-off-by: Chengxuan Xing <chengxuan.xing@kaleido.io>
  • Loading branch information
Chengxuan committed Nov 5, 2024
1 parent 6da717b commit 12a350b
Show file tree
Hide file tree
Showing 55 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion zkp/circuits/anon.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc_nullifier.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_nullifier_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc_nullifier_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_nullifier_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc_nullifier_kyc.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_nullifier_kyc_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc_nullifier_kyc_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_nullifier_kyc_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_enc_nullifier_non_repudiation.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_nullifier_non_repudiation_base.circom";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_enc_nullifier_non_repudiation_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_nullifier.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_nullifier_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_nullifier_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_nullifier_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_nullifier_kyc.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_nullifier_kyc_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/anon_nullifier_kyc_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./basetokens/anon_nullifier_kyc_base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/basetokens/anon_base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/basetokens/anon_enc_base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/basetokens/anon_enc_nullifier_base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/basetokens/anon_enc_nullifier_kyc_base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/basetokens/anon_nullifier_base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/basetokens/anon_nullifier_kyc_base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../lib/check-positive.circom";
include "../lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/check_hashes_value.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-positive.circom";
include "./lib/check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/check_inputs_outputs_value.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-inputs-outputs-value-base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/check_inputs_outputs_value_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-inputs-outputs-value-base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/check_nullifier_value.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-nullifier-value-base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/check_nullifier_value_batch.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-nullifier-value-base.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/check_nullifiers.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-hashes.circom";
include "./lib/check-nullifiers.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/gen.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ const processCircuit = async (circuit, ptau, skipSolidityGenaration) => {
}

const { stdout: ctOut, stderr: ctErr } = await execAsync(
`circom ${circomInput} --output ${provingKeysRoot} --r1cs`,
`circom --O2 ${circomInput} --output ${provingKeysRoot} --r1cs`,
);
if (verbose) {
if (ctOut) {
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-hashes-tokenid-uri.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";
include "../node_modules/circomlib/circuits/comparators.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-hashes.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";
include "../node_modules/circomlib/circuits/comparators.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-inputs-outputs-value-base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./check-positive.circom";
include "./check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-nullifier-tokenid-uri.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";
include "../node_modules/circomlib/circuits/comparators.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-nullifier-value-base.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./check-positive.circom";
include "./check-hashes.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-nullifiers.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";
include "../node_modules/circomlib/circuits/comparators.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-positive.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";
include "../node_modules/circomlib/circuits/comparators.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-smt-proof.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/smt/smtverifier.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/check-sum.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";
include "../node_modules/circomlib/circuits/comparators.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/ecdh.circom
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma circom 2.1.4;
pragma circom 2.2.0;

// Copyright © 2024 Kaleido, Inc.
//
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/encrypt-outputs.circom
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./ecdh.circom";
include "./encrypt.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/encrypt.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/comparators.circom";
include "../node_modules/circomlib/circuits/poseidon.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/poseidon-ex.circom
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/lib/poseidon.circom
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../node_modules/circomlib/circuits/poseidon.circom";

Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/nf_anon.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-hashes-tokenid-uri.circom";
include "./lib/ecdh.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/circuits/nf_anon_nullifier.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "./lib/check-nullifier-tokenid-uri.circom";
include "./lib/check-hashes-tokenid-uri.circom";
Expand Down
2 changes: 1 addition & 1 deletion zkp/js/test/circuits/check-hashes-tokenid-uri.circom
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
pragma circom 2.1.4;
pragma circom 2.2.0;

include "../../../circuits/lib/check-hashes-tokenid-uri.circom";

Expand Down
Loading

0 comments on commit 12a350b

Please sign in to comment.