Comments (3)
@omershlo you might check out fiat-rust
if you'd like a p256
implementation that exposes its internals:
from elliptic-curves.
I don't think that FieldElement
should be exposed in arbitrary generic code, because there are very few reasons to be operating directly on curve point coordinates outside of the curve implementation.
- ECDSA is unfortunately one of them 😞 but that can be handled with an ECDSA-specific trait implemented by curves themselves (which is the direction we are likely to go for the
ecdsa
crate). - Representing curve points in ZKP circuits requires access to coordinates, but only for nested curves, so it seems more appropriate to have traits implemented only on those nested curves.
What is the use case you have that requires access to FieldElement
?
from elliptic-curves.
Thanks for clarifying !
from elliptic-curves.
Related Issues (20)
- p256+p384: `Scalar::sqrt` test failures HOT 1
- Public key cryptographic algorithm SM2 based on elliptic curves HOT 4
- p384: Missing `Scalar::from_le_slice()` in v0.13 HOT 3
- [].iter().product() returns 0 instead of 1
- primeorder: have `impl_mont_field_element!` define inversions
- Benchmarking: k256 falls short to fiat-crypto and crypto-bigint HOT 7
- bp384: `Scalar::sqrt` is unimplemented
- How to run the tests in hash2curve? HOT 2
- p256 point multiplication got ~25% slower in 0.12 HOT 5
- sm2 sign method seems got same result when use same secret_key HOT 2
- k256 signal: 10, SIGBUS: access to undefined memory HOT 1
- unresolved import `p256::ecdh`: could not find `ecdh` in `p256` HOT 1
- Tweaking a pubkey using a scalar HOT 3
- BP256 and BP384 v0.6.1 docs.rs build fails HOT 1
- p384 - signal: 11, SIGSEGV: invalid memory reference HOT 1
- As of 0.12 k256 no longer requires ECDSA signatures have minimum s HOT 1
- Considering audit of p256 curve HOT 1
- k256: missing check in `PrehashVerifier` impl for `schnorr::VerifyingKey`? HOT 1
- Why are ECDSA P-384 signatures not different for the same message? HOT 1
- bign256: WideFieldElement HOT 11
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 elliptic-curves.