crypto/crypto/group/api/api library

Classes

Bn254G1CurveApi
BN254 (alt_bn128) G1 curve operations (no extras beyond CurveApi). Points are 64-byte uncompressed (EIP-197), scalars 32-byte big-endian. Only the native (Rust) implementation exists; the pure-Dart implementation throws UnsupportedError.
Bn254G2CurveApi
BN254 (alt_bn128) G2 curve operations (no extras beyond CurveApi). Points are 128-byte uncompressed (EIP-197 word order x1,x0,y1,y0), scalars 32-byte big-endian. Only the native (Rust) implementation exists; the pure-Dart implementation throws UnsupportedError.
CurveApi
Common byte-level curve operations, shared across every supported curve. pointLen/scalarLen vary per curve — e.g. 32 bytes for Ed25519, 48 for BLS12-381 G1.
Ed25519CurveApi
Ed25519/EdDSA-specific curve operations, beyond the shared CurveApi.
G1ProjectiveCurveApi
BLS12-381 G1: compressed (48) + uncompressed (96) forms.
G2ProjectiveCurveApi
BLS12-381 G2: compressed (96) + uncompressed (192) forms.
JubJubCurveApi
JubJub curve operations, beyond the shared CurveApi.
PallasCurveApi
Pallas curve operations, beyond the shared CurveApi.
RistrettoCurveApi
Ristretto group operations, beyond the shared CurveApi.
Secp256k1CurveApi
secp256k1 curve operations: compressed (33) + uncompressed (65) forms.
Secp256r1CurveApi
secp256r1 (NIST P-256): compressed (33) + uncompressed (65) forms.
ValidatedCurveApi
Validates lengths on every CurveApi call, then delegates to inner.
VestaCurveApi
Vesta curve operations, beyond the shared CurveApi.