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

#46 in #zkp

Download history 33/week @ 2024-07-20 77/week @ 2024-07-27 33/week @ 2024-08-03 32/week @ 2024-08-10 22/week @ 2024-08-17 25/week @ 2024-08-24 45/week @ 2024-08-31 31/week @ 2024-09-07 38/week @ 2024-09-14 62/week @ 2024-09-21 37/week @ 2024-09-28 11/week @ 2024-10-05 33/week @ 2024-10-12 30/week @ 2024-10-19 27/week @ 2024-10-26 34/week @ 2024-11-02

124 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

~4.5MB
~89K SLoC