jub-jub

Crates.iojub-jub
lib.rsjub-jub
version0.0.20
sourcesrc
created_at2023-07-27 06:41:48.090179
updated_at2023-11-05 03:09:03.688997
descriptiontwisted edwards curve implementation
homepagehttps://github.com/KogarashiNetwork/Kogarashi/
repositoryhttps://github.com/KogarashiNetwork/Kogarashi/
max_upload_size
id927156
size20,763
(ashWhiteHat)

documentation

README

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
Commit count: 1240

cargo fmt