11 releases

0.1.10 Jul 27, 2023
0.0.20 Nov 5, 2023
0.0.19 Oct 11, 2023
0.0.17 Sep 29, 2023
0.0.11 Jul 31, 2023

#39 in #zkp

Download history 32/week @ 2024-06-05 34/week @ 2024-06-12 36/week @ 2024-06-19 29/week @ 2024-06-26 40/week @ 2024-07-03 25/week @ 2024-07-10 43/week @ 2024-07-17 70/week @ 2024-07-24 41/week @ 2024-07-31 30/week @ 2024-08-07 31/week @ 2024-08-14 21/week @ 2024-08-21 41/week @ 2024-08-28 31/week @ 2024-09-04 40/week @ 2024-09-11 30/week @ 2024-09-18

151 downloads per month
Used in 6 crates (5 directly)

Apache-2.0

260KB
6.5K SLoC

Jubjub Curve

CI crates.io badge Documentation crates.io badge GitHub license codecov dependency status

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

~4MB
~87K SLoC