package octez-libs
- Overview
- No Docs
You can search for identifiers within the package.
in-package search v0.2.0
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=55ea1fb8bb3273a7fc270ca8f650d45c56449665619482aad9bc12f3ea736b7e
sha512=fec850fc2d17d7490bbabd5147d62aad13b3aaed8774270f8a38ab419670ed03e0fd30cf8642a97984eca5c2446726fe590ad99c015f7ec50919dc7652f25053
doc/octez-libs.crypto/Tezos_crypto/Signature/Bls/Primitive/G1/Scalar/index.html
Module G1.ScalarSource
minimal number of bytes required to encode a value of the field.
check_bytes bs returns true if bs is a correct byte representation of a field element
negate x returns -x mod order. Equivalently, negate x returns the unique y such that x + y mod order = 0
inverse_opt x returns x^-1 if x is not 0 as an option, else None
From a predefined bytes representation, construct a value t. It is not required that to_bytes (of_bytes_exn t) = t. Raise Not_in_field if the bytes do not represent an element in the field.
From a predefined bytes representation, construct a value t. It is not required that to_bytes (Option.get (of_bytes_opt t)) = t. By default, little endian encoding is used and the given element is modulo the prime order