Skip to content

Conversation

@LStan
Copy link
Contributor

@LStan LStan commented Oct 31, 2025

This is a follow-up to #332, where I forgot to add the _be suffix to the BE compress/decompress functions.
I also changed the input to a sized array for the new functions, as in #334.

@LStan
Copy link
Contributor Author

LStan commented Oct 31, 2025

@samkim-crypto I set the deprecated since version to 3.2.0. But maybe it can be released as 3.1.3. If so, I'll change the version.

Copy link
Contributor

@samkim-crypto samkim-crypto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks!

I don't think we should introduce deprecations on a patch release, so v3.2 seems fine to me.

}
}

pub fn alt_bn128_g1_compress_be(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alt_bn128_g1_compress is not invoking alt_bn128_g1_compress_be to save on CUs here, correct?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If it was invoking alt_bn128_g1_compress_be here, then the length of the input would be checked, which is not the case in the original logic.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah yes makes sense to me. Thanks!

samkim-crypto
samkim-crypto previously approved these changes Nov 16, 2025
@samkim-crypto samkim-crypto merged commit 5390fa9 into anza-xyz:master Nov 17, 2025
50 checks passed
@LStan LStan deleted the be-suffix branch November 17, 2025 12:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants