Skip to content

Fix bls documentation - G1/G2 compression flag must be *unset* #1455

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 14, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions soroban-sdk/src/crypto/bls12_381.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct Bls12_381 {
/// `Fp`
/// - The most significant three bits (bits 0-3) of the first byte are reserved
/// for encoding flags:
/// - compression_flag (bit 0): Must always be set (1), as only uncompressed
/// - compression_flag (bit 0): Must always be unset (0), as only uncompressed
/// points are supported.
/// - infinity_flag (bit 1): Set if the point is the point at infinity (zero
/// point), in which case all other bits must be zero.
Expand Down Expand Up @@ -57,7 +57,7 @@ pub struct G1Affine(BytesN<96>);
/// are components of `Fp2` (each being `Fp`).
/// - The most significant three bits (bits 0-3) of the first byte are reserved
/// for encoding flags:
/// - compression_flag (bit 0): Must always be set (1), as only uncompressed
/// - compression_flag (bit 0): Must always be unset (0), as only uncompressed
/// points are supported.
/// - infinity_flag (bit 1): Set if the point is the point at infinity (zero
/// point), in which case all other bits must be zero.
Expand Down