Skip to content

Crypto12381 v0.2.0

Choose a tag to compare

@Adttil Adttil released this 09 Aug 20:03
· 7 commits to main since this release

Added

  • Added parse<GT> support for deserializing serialized target-group elements.
  • Added a Shamir Secret Sharing example covering share generation and Lagrange-based reconstruction.
  • Added a complete MHAC-BBS example covering threshold issuance with public and private attributes, credential presentation, verification, and reusable precomputation for participant sets and presentation types.
  • Added AC-BBS, AC-RBBS, and AC-RPS examples covering issuance, selective disclosure or redaction, presentation, and verification.

Changed

  • Refactored and generalized the existing range-based algebra DSL into algebra.hpp, adding named symbols, partial substitution, symbolic invocations, runtime-sized random selections, and composable algebraic range adaptors.
  • Moved MIRACL Core usage behind an internal adapter so public crypto12381 headers no longer include MIRACL Core headers or require its include directories.
  • Updated the MHAC-BBS example so complete private attributes are not retained; only the required private-attribute shares are stored.
  • Updated the AC-RPS example to follow the corrected protocol, including user key generation and binding issued signatures to user public keys.

Fixed

  • Fixed partially substituted algebraic expressions being evaluated before all remaining symbols were supplied.
  • Corrected Zp limb masking, range propagation, carry handling, multiplication safety checks, negation, accumulation, reduction, and serialization-time normalization.
  • G1 and G2 deserialization now checks MIRACL Core's return status and throws when a non-identity point encoding is invalid.
  • Added round-trip serialization support for G1 and G2 identity elements using the library's zero-filled representation.
  • Fixed the omitted G1 public-key slot in the AC-RBBS example so every eagerly deserialized slot contains a valid group element.

Breaking Changes

  • RandomEngine is now non-copyable, and its constructor is no longer declared noexcept.
  • crypto12381/ranges.hpp has been replaced by crypto12381/algebra.hpp. Code that directly included the former header or depended on its concrete range wrapper types must be updated.