Skip to content

Conversation

JulianGCalderon
Copy link
Contributor

We were using to_raw to obtain the QM31 coefficients, instead of representative. Internally, there are two valid representation for the zero value: 0 and PRIME. When packing a QM31 into a felt, however, we need to use the representative value (0).

Pull Request type

  • Bugfix

What is the current behavior?

We are serializing a PRIME coefficient with the raw value (PRIME), instead of the representative value (0).

What is the new behavior?

Serialize a PRIME coefficient with the representative value (0).

Does this introduce a breaking change?

No

@JulianGCalderon JulianGCalderon marked this pull request as ready for review September 24, 2025 13:16
@gabrielbosio gabrielbosio merged commit 706b7e9 into starknet-io:main Sep 26, 2025
3 checks passed
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.

3 participants