package octez-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=dbc3b675aee59c2c574e5d0a771193a2ecfca31e7a5bc5aed66598080596ce1c
sha512=b97ed762b9d24744305c358af0d20f394376b64bfdd758dd4a81775326caf445caa57c4f6445da3dd6468ff492de18e4c14af6f374dfcbb7e4d64b7b720e5e2a
doc/octez-libs.plompiler/Plompiler/Gadget/Edwards25519/index.html
Module Gadget.Edwards25519Source
Parameters
module L : sig ... endSignature
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