Comments (4)
Good point! In my opinion, the current methods are useful and needed so I'd leave them as is.
New traits/methods sound like a good idea to me. Ideally they'd be wrappers that check validity and maybe one that multiplies by the cofactor, but that should be marked clearly. That bit us on the gadget side when we migrated our pre-refactor gadgets to the new constrain system.
from algebra.
@kobigurk @paberr do you have any thoughts around this? We could have a separate trait that handles the boundary conversions, and leave AffineCurve
to be only prime order.
from algebra.
One idea would be to put these methods in SWModelParameters
and in TEModelParameters
(I don't see how to put them in ModelParameters
, because the trait doesn't understand the notion of AffineCurve
.
from algebra.
We now have a new_unchecked
which doesn't check for subgroup membership, and have changed new
to instead do the on-curve and in-subgroup checks.
(These methods were anyway methods on the structs, and not part of the corresponding traits.)
from algebra.
Related Issues (20)
- Can arm64 also be optimized for field arithmetic operation? HOT 1
- Ark-ec pulls in full hashbrown without feature gate HOT 6
- New release? HOT 4
- Final exponentiation in BLS12-381not producing `(p ^ k - 1) / r` HOT 1
- Support mapping to all Weierstrass curves (Shallue-van de Woestijne method) HOT 1
- why is `Validate::No` hardcoded in some `impl`s? HOT 3
- know if a serialized piece of Arkworks structure has been compressed HOT 3
- Support for ristretto255 / sr25519 curve HOT 3
- `Affine - Projective` produces incorrect results
- `SparseMultillinearExtension::evaluate` is slow HOT 1
- Constant time curve arithmetic HOT 1
- Release with #794 HOT 1
- Necessity to retire "derivative" crate HOT 1
- Deserialization of array can panic HOT 3
- Decoding `BigUInt` causes unbound allocation HOT 3
- Easily set the size of a polynomial coefficient
- Add Mul for DenseMultilinearExtension * Scalar
- GF(2^128) operations HOT 1
- `HashToField` does not follow RFC9380 depending on the curve modulus
- Off one in the doc?
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 algebra.