Skip to content

Conversation

JulianGCalderon
Copy link
Contributor

@JulianGCalderon JulianGCalderon commented Aug 22, 2025

This PR implements the QM31 newtype, as a wrapper of Lambdawork's type.

As the actual implementation is from Lambdaworks, I only needed to implement manually the pack_into_felt and unpack_from_felt methods.

I also implemented wrappers for some common operations (add, mul, sub, div, inv, zero, one). Let me know if you prefer to add anything else.

Pull Request type

  • Feature

What is the current behavior?

We have no implementation of QM31

What is the new behavior?

Implements QM31 as a newtype of Lambdawork's type.

Does this introduce a breaking change?

No

@JulianGCalderon JulianGCalderon changed the title Add QM31 implementation (Lambdaworks) Add QM31 Lambdaworks wrapper Aug 28, 2025
@JulianGCalderon JulianGCalderon marked this pull request as ready for review August 28, 2025 21:33
@tdelabro tdelabro requested a review from 0xLucqs September 1, 2025 13:40
@gabrielbosio gabrielbosio merged commit 2ede7b7 into starknet-io:main Sep 4, 2025
3 checks passed
gabrielbosio added a commit that referenced this pull request Sep 18, 2025
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.

4 participants