Comments (2)
The problem is Point.from_bytes
call. You can follow it to sapling_jubjub.py
and you can see it needs to get the square root (u = u2.sqrt()
)[https://github.com/daira/zcash-test-vectors/blob/master/sapling_jubjub.py#L157)
I have not gotten that working yet. You can see https://github.com/barryWhiteHat/baby_jubjub_ecc/blob/master/tests/sapling_jubjub.py#L81 that i am trying to reverse engineer it. But have not gotten it to work yet.
from baby_jubjub_ecc.
Can you not just provide a witness for the points u
coordinate and verify is_on_curve(u, v) and v == v_from_hash(...)
?
One problem with that is there may be more than one u
coordinate for any given v
and visa versa, e.g. negative points with the sign bit have the X coordinate flipped.
So it's not safe to just verify is_on_curve
unless you also verify the sign bit of the encoded point and whether or not the X coord is negative or positive.
from baby_jubjub_ecc.
Related Issues (5)
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 baby_jubjub_ecc.