Tezex.Crypto.BLS.Fr (tezex v3.2.0)
View SourceScalar field Fr for BLS12-381 (curve order).
This is the field of scalars used for private keys and in elliptic curve operations.
Summary
Functions
Creates a field element from a binary (32 bytes, big-endian).
Creates a field element from an integer.
Checks if a field element is zero.
One element of the field.
Converts a field element to 32-byte big-endian binary.
Converts a field element to integer.
Zero element of the field.
Types
@type t() :: binary()
Functions
Creates a field element from a binary (32 bytes, big-endian).
@spec from_integer(non_neg_integer()) :: t()
Creates a field element from an integer.
Checks if a field element is zero.
@spec one() :: t()
One element of the field.
Converts a field element to 32-byte big-endian binary.
@spec to_integer(t()) :: non_neg_integer()
Converts a field element to integer.
@spec zero() :: t()
Zero element of the field.