Skip to content

KogarashiNetwork/jubjub

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

$$ -x^2 + y^2 \equiv 1 + dx^2y^2 $$

  • Addition Law

$$ (x_3 = \frac{x_1y_2 + y_1x_2}{1 + dx_1x_2y_1y_2}, y_3 = \frac{y_1y_2 - x_1x_2}{1 - dx_1x_2y_1y_2}) $$

  • Params
Name Value
$q$ 0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001
$r$ 0xe7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7
$d$ $-(\frac{10240}{10241})$ = 0x2a9318e74bfa2b48f5fd9207e6bd7fd4292d7f6d37579d2601065fd6d6343eb1

Test

$ cargo test

About

twisted edwards curve jubjub implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published