Functions

fn random(endian: std.builtin.Endian) CompressedScalar

Return a random scalar

fn reduce48(s: [48]u8, endian: std.builtin.Endian) CompressedScalar

Reduce a 48-bytes scalar to the field size.

fn reduce64(s: [64]u8, endian: std.builtin.Endian) CompressedScalar

Reduce a 64-bytes scalar to the field size.

fn rejectNonCanonical(s: CompressedScalar, endian: std.builtin.Endian) NonCanonicalError!void

Reject a scalar whose encoding is not canonical.

Values

encoded_length
comptime_int

Number of bytes required to encode a scalar.

field_order
undefined

The scalar field order.