zero-jubjub

Crates.iozero-jubjub
lib.rszero-jubjub
version0.1.11
sourcesrc
created_at2021-12-14 02:24:42.359552
updated_at2023-04-28 07:10:13.477846
descriptiontwisted edwards curve implementation
homepagehttps://github.com/KogarashiNetwork/Kogarashi
repositoryhttps://github.com/KogarashiNetwork/jubjub
max_upload_size
id497532
size19,160
Karbushev Kirill (KiriosK)

documentation

README

Jubjub Curve crates.io badge

This crate provides jubjub curve arithmetic and also supports fully no_std and parity-scale-codec.

This crate uses https://github.com/zkcrypto/jubjub algorithm designed by @str4d and @ebfull. We replace field and curve implementation with zero-crypto to make this compatible with Substrate.

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}) $$

Commit count: 12

cargo fmt