Crates.io | zero-jubjub |
lib.rs | zero-jubjub |
version | 0.1.11 |
source | src |
created_at | 2021-12-14 02:24:42.359552 |
updated_at | 2023-04-28 07:10:13.477846 |
description | twisted edwards curve implementation |
homepage | https://github.com/KogarashiNetwork/Kogarashi |
repository | https://github.com/KogarashiNetwork/jubjub |
max_upload_size | |
id | 497532 |
size | 19,160 |
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
.
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}) $$