package octez-libs
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=aa2f5bc99cc4ca2217c52a1af2a2cdfd3b383208cb859ca2e79ca0903396ca1d
sha512=d68bb3eb615e3dcccc845fddfc9901c95b3c6dc8e105e39522ce97637b1308a7fa7aa1d271351d5933febd7476b2819e1694f31198f1f0919681f1f9cc97cb3a
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