Giter Site home page Giter Site logo

Comments (5)

ivokub avatar ivokub commented on August 20, 2024 1

So to summarize - I'll only add the rewrite from "new-style anonymous functions" to old-style and a regression test which ensures that GetHintName is static for both anonymous and explicit function.

from gnark.

gbotrel avatar gbotrel commented on August 20, 2024

@ivokub can you do a quick PR with

.init.funcN to ..glob.funcN

? And a non regression test; don't want to hit the same issue in another deployment.
--> I'm not sure #1043 isn't dangerous; it means circuits compiled before #1043 are not compatible with a process compiled post #1043 right ?

from gnark.

ivokub avatar ivokub commented on August 20, 2024

@ivokub can you do a quick PR with

.init.funcN to ..glob.funcN

? And a non regression test; don't want to hit the same issue in another deployment. --> I'm not sure #1043 isn't dangerous; it means circuits compiled before #1043 are not compatible with a process compiled post #1043 right ?

Indeed #1043 breaks compatibility between pre- and post 1043 circuits. So if we have a circuit compiled pre-1043, then solver/prover post-1043 fails as the hints are not found.

But still, I think 1043 is better for long-term as ensures more consistency. Instead of reverting I think it would better to add explicit hint overrides (for both Go <1.22 and =1.22 naming convention) to keep the backwards compatibility. I'd be happy to do it if makes sense.

from gnark.

gbotrel avatar gbotrel commented on August 20, 2024

Mmhhh no for the hint overhide, I think it's dirty ^^.
For Linea we can just recompile the circuits -- if that's the only change and the actual constraints are unchanged it's not a big issue.

from gnark.

ivokub avatar ivokub commented on August 20, 2024

Yup, didn't change the constraints. Only changed hints defined as

var Hint = func(mod *big.Int, inputs []*big.Int, outputs []*big.Int) error {
//
}

to

func Hint(mod *big.Int, inputs []*big.Int, outputs []*big.Int) error {
//
}

in std/algebra packages.

from gnark.

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.