klefki.curves.baby_jubjub

DOC: https://eips.ethereum.org/EIPS/eip-2494

Module Contents

Classes

FiniteFieldBabyJubjub

A FIELD is a set F which is closed under two operations + and × s.t.

EllipticCurveBabyJubjub

Twisted Edwards Form (standard)

class klefki.curves.baby_jubjub.FiniteFieldBabyJubjub(*args)

Bases: klefki.algebra.fields.FiniteField

A FIELD is a set F which is closed under two operations + and × s.t. (1) Fis an abelian group under + and (2) F-{0} (the set F without the additive identity 0) is an abelian group under ×.

P
class klefki.curves.baby_jubjub.EllipticCurveBabyJubjub(*args)

Bases: klefki.algebra.groups.EllipticCurveGroup

Twisted Edwards Form (standard) y^2 = x^3 + Ax^2 + x Montgomery Form By^2 = x^3 + A x^2 + x

A
B
N
op(self, g)

The Operator for obeying axiom associativity (2)

klefki.curves.baby_jubjub.G