Order (i.e. number of points) of the BabyJubjub curve.
(baby-jubjub-order) → order
BabyJubjub, as the twisted Edwards curve with
So the Montgomery curve is
Now, represent that in Weierstrass form:
We have:
In Sage, which can be used at https://sagecell.sagemath.org, type this Sage code:
P = 21888242871839275222246405745257275088548364400416034343698204186575808495617 E = EllipticCurve(GF(P),[0,168698,0,1,0]) E.cardinality()
Clicking the `Evaluate' button will yield BabyJubjub order.
Function:
(defun baby-jubjub-order nil (declare (xargs :guard t)) (let ((acl2::__function__ 'baby-jubjub-order)) (declare (ignorable acl2::__function__)) 21888242871839275222246405745257275088614511777268538073601725287587578984328))
Theorem:
(defthm natp-of-baby-jubjub-order (b* ((order (baby-jubjub-order))) (natp order)) :rule-classes :rewrite)