Skip to content

Conversation

@GarmashAlex
Copy link
Contributor

The signature builtin contained multiple redundant Felt252 byte round-trips (to_bytes_be followed by from_bytes_be) that provided no normalization benefit since Felt252 values in this codebase are already canonical modulo the Cairo prime, and all consumers (including starknet_crypto::verify and the Cairo PIE serializers) accept or serialize felts directly. This change removes those conversions in add_signature, add_validation_rule, get_additional_data, extend_additional_data, and simplifies air_private_input for r and w computation, reducing allocations and improving clarity without altering behavior or formats.

Copy link
Contributor

@JulianGCalderon JulianGCalderon 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 @GarmashAlex! Thanks for the contribution.

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