package octez-libs
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65
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