Giter Club home page Giter Club logo

Comments (4)

Pratyush avatar Pratyush commented on July 3, 2024

Hey Srinath!

I pushed a commit which provides a breakdown of constraints, matching the numbers reported in the figure. To obtain these numbers, you can run the following commands:

  • for R1CS NARK accumulation: cargo test constraints::tests::simple_accumulation_test --features r1cs-nark-as -- --nocapture --test-threads=1
  • for IPA PC accumulation: cargo test constraints::tests::simple_accumulation_test --features ipa-pc-as -- --nocapture --test-threads=1 (You might need to manually change the degree being accumulated)
  • for trivial PC accumulation: cargo test constraints::tests::simple_accumulation_test --features trivial-pc-as -- --nocapture --test-threads=1

from accumulation.

srinathsetty avatar srinathsetty commented on July 3, 2024

Thanks a lot @Pratyush! This worked.

On a related note, when I do cargo build --release --example scaling-nark --features="hp-as r1cs-nark-as", it successfully builds the binaries. But when I run, say:
./target/release/examples/scaling-nark 10 12 1

I get the following error:
================ Benchmarking NARK without zk ================
thread 'main' panicked at 'assertion failed: R1CSNark::<Affine,\n PoseidonSponge>::verify(&ivk, &[v, a, a, a, a], &proof,\n Some(PoseidonSponge::new()))', examples/scaling-nark.rs:95:9

Another minor issue is that it seems like the following line in scaling-nark.rs:
if args.len() < 4 || args[1] == "-h" || args[1] == "--help"
should be:
if args.len() < 3 || args[1] == "-h" || args[1] == "--help", right?

from accumulation.

Pratyush avatar Pratyush commented on July 3, 2024

Ah thanks for pointing that out, I've fixed it now =)

from accumulation.

srinathsetty avatar srinathsetty commented on July 3, 2024

It now works, thanks! :)

from accumulation.

Related Issues (7)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.