Giter Site home page Giter Site logo

neptune for Pasta curves about neptune HOT 2 CLOSED

lurk-lab avatar lurk-lab commented on September 9, 2024
neptune for Pasta curves

from neptune.

Comments (2)

porcuquine avatar porcuquine commented on September 9, 2024

Yes, it's fine — because like BLS12-381, they are both prime fields of ~256 bits. I believe @DrPeterVanNostrand looked into this specifically and confirmed no change is required. We just didn't update the documentation when adding general support for Pasta curves. @DrPeterVanNostrand Can you confirm?

from neptune.

DrPeterVanNostrand avatar DrPeterVanNostrand commented on September 9, 2024

Hi @srinathsetty, round_numbers.rs assumes that the field which Poseidon is instantiated over is ~256 bits (which corresponds to our targeted 128-bit security level). BLS12-381, Pallas, and Vesta each have a 255-bit scalar field, so there's no problem using those fields. There is also an assertion when generating round constants which checks that the field size of the PrimeField type parameter is 32 bytes.

I think "Neptune is specialized to the BLS12-381 curve" also means that we implement a Groth16 circuit, GPU functionality, and have an audit for BLS12-381's scalar field. The "do not do this" part of the README should probably be made more specific.

from neptune.

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.