# Jubjub Curve
[](https://github.com/KogarashiNetwork/jubjub/actions/workflows/ci.yml) [](https://crates.io/crates/jub-jub) [](https://docs.rs/jub-jub) [](https://crates.io/crates/jub-jub) [](#LICENSE) [](https://codecov.io/gh/KogarashiNetwork/jubjub) [](https://deps.rs/crate/jub-jub/latest)
This crate provides jubjub curve arithmetic and also supports fully `no_std` and [`parity-scale-codec`](https://github.com/paritytech/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
```shell
$ cargo test
```