Git Product home page Git Product logo

Comments (5)

wborgeaud avatar wborgeaud commented on July 19, 2024 1

You were right, the config.rate_bits should be common_data.config.rate_bits. I fixed that in #386.
Accidentally this would have also caused a subtle bug (also fixed in the PR) if config.zero_knowledge != common_data.config.zero_knowledge, so thanks for finding this!

from plonky2.

dlubarov avatar dlubarov commented on July 19, 2024

Hmm interesting, it's passing for me. Did it happen on a recent copy of main?

That test uses a few CircuitConfigs basically to demonstrate how a speed-optimized proof could be "shrunk" by wrapping it in a proof with different settings, optimized for size. The most important difference is the codeword rate -- our size-optimized proofs use very small rates, so we can run FRI with fewer rounds, at the cost of having to Merklize a huge LDE.

I wonder if we mixed up the two configs somewhere (that of the proof being recursively verified, vs that of the circuit currently being built). I could see that happening, though I'm not sure how to explain the difference on your machine vs mine.

from plonky2.

wborgeaud avatar wborgeaud commented on July 19, 2024

I think the test passes in release mode but not in debug mode due to the debug_assert_eq.
This debug_assert_eq is wrong I think, I'll try to fix it.

from plonky2.

dlubarov avatar dlubarov commented on July 19, 2024

Oh right! That's good that you caught it; we normally run that test in release mode (it's one of the most compute heavy) so we didn't notice the issue.

from plonky2.

unzvfu avatar unzvfu commented on July 19, 2024

Fixed in #386.

from plonky2.

Related Issues (20)

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.