nim-groth16/bn128.nim

32 lines
669 B
Nim

#
# the `alt-bn128` elliptic curve
#
# See for example <https://hackmd.io/@jpw/bn254>
#
# p = 21888242871839275222246405745257275088696311157297823662689037894645226208583
# r = 21888242871839275222246405745257275088548364400416034343698204186575808495617
#
# equation: y^2 = x^3 + 3
#
#-------------------------------------------------------------------------------
import ./bn128/fields
import ./bn128/curves
import ./bn128/msm
import ./bn128/io
import ./bn128/rnd
import ./bn128/debug
#-------------------
export fields
export curves
export msm
export io
export rnd
export debug
#-------------------------------------------------------------------------------