
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
circom_tester
Advanced tools
circom_tester
and chai
packges.mocha
packge to run the tests.Create a js file contain the following code or use the src provided in the following section.
Execue mocha -p -r ts-node/register 'multiplier2.js'
to run the test file.
multiplier2.js (src)
const chai = require("chai");
const path = require("path");
const wasm_tester = require("./../index").wasm;
const c_tester = require("./../index").c;
const F1Field = require("ffjavascript").F1Field;
const Scalar = require("ffjavascript").Scalar;
exports.p = Scalar.fromString("21888242871839275222246405745257275088548364400416034343698204186575808495617");
const Fr = new F1Field(exports.p);
const assert = chai.assert;
describe("Simple test", function () {
this.timeout(100000);
it("Checking the compilation of a simple circuit generating wasm", async function () {
const circuit = await wasm_tester(path.join(__dirname, "Multiplier2circom"));
const w = await circuit.calculateWitness({a: 2, b: 4});
await circuit.checkConstraints(w);
});
});
FAQs
Tools for testing circom circuits.
The npm package circom_tester receives a total of 4,642 weekly downloads. As such, circom_tester popularity was classified as popular.
We found that circom_tester demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.