Structs§
- Groth16
Proof - Groth16 proof composed of points A, B, and C. G2 point B uses Soroban’s c1||c0 (imaginary||real) ordering.
- Verification
KeyBytes - Groth16 verification key for BN254 curve (byte-oriented). All G2 points use Soroban’s c1||c0 (imaginary||real) ordering.
Enums§
- Groth16
Error - Errors that can occur during Groth16 proof verification.
Constants§
- FIELD_
ELEMENT_ SIZE - Size of a single BN254 field element in bytes.
- G1_SIZE
- Size of a G1 point
- G2_SIZE
- Size of a G2 point
- PROOF_
SIZE - Total proof size: A (G1) || B (G2) || C (G1) = 64 + 128 + 64 = 256 bytes.