package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=c6df840ebbf115e454db949028c595bec558a59a66cade73b52a6d099d6fa4d4
sha512=d8aee903b9fe130d73176bc8ec38b78c9ff65317da3cb4f3415f09af0c625b4384e7498201fdb61aa39086a7d5d409d0ab3423f9bc3ab989a680cf444a79bc13
doc/octez-libs.plompiler/Plompiler/Gadget/Edwards25519/index.html
Module Gadget.Edwards25519
Source
Parameters
module L : sig ... end
Signature
Represents an element from a base field
Returns a Plompiler representation of a point
is_on_curve p
checks whether a point p
is on the curve
from_coordinates x y
constructs a point p = (x, y)
from coordinates x
and y
. The function also checks whether the point is on the curve (but not necessarily in the subgroup)
unsafe_from_coordinates x y
is similar to from_coordinates
but does not verify the point is on the curve. It can be used to build a variable of type point
without adding any constraint
get_x_coordinate p
returns a first coordinate x
of a point p
get_y_coordinate p
returns a second coordinate y
of a point p
add p q
computes a point addition p + q
cond_add p q b
returns p + b * q
, i.e., either a point addition p
and q
or a point p
based on the value b
scalar_mul s p
computes a point multiplication p
by a scalar s
. The scalar s
is encoded in little-endian order
multi_scalar_mul ls lp
computes the multi-scalar multiplication s₁·p₁ + s₂·p₂ + … + sₖ·pₖ
Returns the order of the prime-order subgroup of the elliptic curve group
Returns the prime number defining the underlying field