Giter Site home page Giter Site logo

Comments (7)

ale-linux avatar ale-linux commented on July 23, 2024 1

we use 3 curves (bls12-377, bls12-381, bn254) directly in mathlib which is in turn used in quite a few places (idemix, fabric, aries-framework-go). See the latest issue in fabric.

from gnark-crypto.

gbotrel avatar gbotrel commented on July 23, 2024

Hi -- I think the best workaround for now if you are not in a perf critical workflow, is to compile with -tags=purego .

Could also be that we unnecessarily force users to import more packages than they need; do you need to link with all gnark-crypto or some specific packages only?

from gnark-crypto.

ale-linux avatar ale-linux commented on July 23, 2024

Thanks @gbotrel . For now I think it's acceptable to take this route but it would be good to find a long-term solution. As you can see, we're pulling gnark-crypto from half of Hyperledger's projects now 😁

from gnark-crypto.

gbotrel avatar gbotrel commented on July 23, 2024

Are you? :) Well that's where I'm curious -- do you need to import github.com/consensys/gnark-crypto/ecc/bls12-378/fp and github.com/consensys/gnark-crypto/ecc/bw6-633/fp for example, or are they being "vendored" or are you, as a user being forced to import all of it because in some place we accidentally imported more than we should have??

from gnark-crypto.

ale-linux avatar ale-linux commented on July 23, 2024

Just a clarification: in the comments to the issue I linked, you'll see the compilation failure text relating to kilic/bls12-381#42, but #468 equally affects that build.

from gnark-crypto.

gbotrel avatar gbotrel commented on July 23, 2024

@ale-linux I could NOT reproduce with Go 1.21.4 on Ubuntu, but could reproduce with go1.20.8.linux-amd64. Seems this part of Go 1.21 releases notes helps:

The verifier that checks for incorrect uses of R15 when dynamic linking on amd64 has been improved.

from gnark-crypto.

ale-linux avatar ale-linux commented on July 23, 2024

a-ha... yeah in many cases the clobbering actually did not take place because for instance the access to the global variable took place before R15 was actually used to store temp data. I would say we're good to go then - we're building with purego till we upgrade to go1.21. Thanks!

from gnark-crypto.

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.