11 releases
0.1.10 |
|
---|---|
0.0.20 | Nov 5, 2023 |
0.0.19 | Oct 11, 2023 |
0.0.17 | Sep 29, 2023 |
0.0.11 | Jul 31, 2023 |
#46 in #zkp
124 downloads per month
Used in 6 crates
(5 directly)
260KB
6.5K
SLoC
Jubjub Curve
This crate provides jubjub curve arithmetic and also supports fully no_std
and parity-scale-codec
.
Specification
The Jubjub curve is one of twisted edwards curve.
- Twisted Edwards Curve
$$ ax^2 + y^2 = 1 + dx^2y^2 $$
- Addition Law
$$ (x_3 = \frac{x_1y_1 + y_1x_1}{1 + dx_1x_1y_1y_1}, y_3 = \frac{y_1y_1 + ax_1x_1}{1 - dx_1x_1y_1y_1}) $$
Test
$ cargo test
Dependencies
~4.5MB
~89K SLoC