package
0.0.0-20230904125328-1f23a7beb09a
Repository: https://github.com/oasisprotocol/curve25519-voi.git
Documentation: pkg.go.dev

# Functions

New returns a scalar set to zero.
NewFromBits constructs a scalar from the low 255 bits of a 256-bit integer.
NewFromBytesModOrder constructs a scalar by reducing a 256-bit little-endian integer modulo the group order L.
NewFromBytesModOrderWide constructs a scalar by reducing a 512-bit little-endian integer modulo the group order L.
NewFromCanonicalBytes attempts to construct a scalar from a canoical byte representation.
NewFromUint64 returns a scalar set to the given uint64.
One returns a scalar set to 1.
ScMinimalVartime returns true if the given byte-encoded scalar is less than the order of the curve, in variable-time.
ToRadix2wSizeHint returns a size hint indicating how many entries of the return value of ToRadix2w are nonzero.

# Constants

ScalarSize is the size of a scalar in bytes.
ScalarWideSize is the size of a wide scalar in bytes.

# Variables

BASEPOINT_ORDER is the order of the Ed25519 basepoint and the Ristretto group.

# Structs

Scalar holds an integer s < 2^255 which represents an element of Z/L.