5 releases

new 4.0.0-beta.2 Mar 13, 2026
4.0.0-beta.1 Mar 10, 2026
4.0.0-beta.0 Mar 6, 2026
4.0.0-alpha.0 Feb 27, 2026
0.0.0 Jan 12, 2026

#669 in Magic Beans

Download history 207/week @ 2026-02-27 317/week @ 2026-03-06

524 downloads per month

Apache-2.0

145KB
1.5K SLoC

Implementation of the BLS12-381 Elliptic Curve operations for Solana syscalls.

This crate provides the native implementations for the syscalls defined in SIMD-0388.

Supported Operations

  • Group Operations (G1 & G2): Addition, Subtraction, Scalar Multiplication.
  • Pairing: Multi-scalar multiplication (Miller loop + Final Exponentiation).
  • Validation: Subgroup and on-curve checks.
  • Decompression: Converting compressed byte representations to affine points.

Encoding and Endianness

The operations support two encoding formats defined in Endianness:

  1. Big-Endian (BE): Follows the Zcash BLS12-381 specification and IETF draft.
  2. Little-Endian (LE): This mirrors the Zcash structure but utilizes little-endian byte ordering for base field elements.

Dependencies

~4.5MB
~156K SLoC