Returns the subgroup order used by the FROST and DKG primitives.
The Baby Jubjub subgroup order.
Returns the additive identity for the Baby Jubjub subgroup.
The affine identity point.
Samples a scalar uniformly from the subgroup order.
When true, uses rejection sampling to avoid bias.
A uniformly sampled scalar.
Multiplies the subgroup generator by a scalar.
Scalar multiplier.
The resulting affine point.
Multiplies an affine point by a scalar.
Affine point.
Scalar multiplier.
The resulting affine point.
Serializes an affine subgroup point using RFC 8032-style compression.
Affine point to serialize.
The compressed 32-byte point encoding.
Deserializes a compressed point and verifies subgroup membership.
Compressed point bytes.
The decoded affine point.
Serializes a scalar into the canonical 32-byte form expected by the repo.
Scalar to serialize.
The serialized scalar bytes.
Deserializes a scalar from the canonical 32-byte form.
Serialized scalar bytes.
The decoded scalar.
Compares two affine points for coordinate equality.
First affine point.
Second affine point.
true when both coordinates match.
Converts a scalar into the repo's canonical 32-byte little-endian form.
Scalar to encode.
Encoded bytes.
Decodes a scalar from the repo's canonical 32-byte little-endian form.
Encoded bytes.
The decoded scalar.
Reduces a bigint modulo the full curve order.
Value to reduce.
The reduced scalar.
Reduces a bigint modulo the prime-order subgroup.
Value to reduce.
The reduced scalar.
Computes a multiplicative inverse in the subgroup field.
Scalar to invert.
The multiplicative inverse modulo the subgroup order.
Applies EdDSA bit pruning to a 32-byte buffer.
Input bytes.
The pruned buffer.
Derives the Baby Jubjub secret scalar for the provided private key.
Private key bytes.
The derived subgroup scalar divided by the cofactor.
Maps an Edwards point into Montgomery coordinates when the mapping exists.
Edwards affine point.
Edwards x-coordinate.
Edwards y-coordinate.
The mapped Montgomery coordinates.
Derives the Baby Jubjub public key for a 32-byte private key.
Private key bytes.
The affine Baby Jubjub public key.
Signs an arbitrary message byte array using EDDSA-Poseidon.
Private key bytes.
Message bytes to sign.
The generated signature.
Verifies an EDDSA-Poseidon signature.
Message bytes that were signed.
Signature to verify.
Public key.
true when the signature is valid.
Packs an affine Baby Jubjub point into its compressed form.
Affine point to pack.
Compressed point bytes.
Unpacks a compressed Baby Jubjub public key.
Compressed point bytes.
The unpacked affine point or null if invalid.
ReadonlycurveReadonlygeneratorReadonlyFrReadonlyorderReadonlyidentityReadonlyfield
Baby Jubjub EDDSA-Poseidon, built on the prime-order subgroup primitives.