Comments (2)
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.
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)
- dev needs to be rebased on main HOT 1
- dev needs to be rebased on main HOT 1
- dev needs to be rebased on main HOT 3
- dev needs to be rebased on main HOT 1
- dev needs to be rebased on main HOT 3
- dev needs to be rebased on main HOT 23
- Feature Request: Implementation of Poseidon2 Hash Function HOT 4
- dev needs to be rebased on main HOT 5
- dev needs to be rebased on main HOT 16
- dev needs to be rebased on main HOT 22
- dev needs to be rebased on main HOT 18
- Reporting rebasing need only once HOT 1
- CI: push tests vs merge groups
- dev needs to be rebased on main HOT 5
- Add a CITATION.cff to the repo
- dev needs to be rebased on main HOT 2
- chore: rust toolchain needs an upgrade
- chore: some installed deps are not needed HOT 1
- chore: some installed deps are not needed
- chore: rust toolchain needs an upgrade
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from neptune.