Coder Social home page Coder Social logo

Comments (3)

jan-ferdinand avatar jan-ferdinand commented on May 21, 2024

I currently believe the issue to be due to the difference of updating the running products between the processor and the u32 coprocessor.

In the Processor Table, the running product of any u32 instruction – say, and – is updated if and only if the current instruction ci matches that instruction. If ci equals some other u32 instruction – say, lt – then the running product for and is not updated.

However, the U32 Table has no knowledge about the instruction thas was executed by the processor. All 5 running products are being updated whenever the indicator idc is 1. Naturally, this creates a discrepancy.

It is not a viable solution to simply update all running sums in the Processor Table whenever ci corresponds to any u32 instruction, since a malicious prover could swap the legitimate result of the instruction with that of some other u32 instruction, e.g., replace and(10, 11) = 10 with 01 = xor(10, 11).

It might be necessary to carry the current instruction over to the U32 Table.

Relates to #8 somewhat less loosely now.

from triton-vm.

jan-ferdinand avatar jan-ferdinand commented on May 21, 2024

Additionally, if the processor never executes any u32 instruction, the running product of any of the 5 Permutation Aguments will equal the respective (prover-chosen) initial in the Processor Table, whereas the U32 Table will have no rows. #10 fixes this.

from triton-vm.

jan-ferdinand avatar jan-ferdinand commented on May 21, 2024

Closing in anticipation of #10.

from triton-vm.

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.