Skip to content

fix(starknet-bb): Clears extraneous MSB from r_inv_wasm_5/r_inv_wasm_7#13704

Merged
ludamad merged 3 commits intoAztecProtocol:masterfrom
raugfer:stark252-wasm-fix
May 7, 2025
Merged

fix(starknet-bb): Clears extraneous MSB from r_inv_wasm_5/r_inv_wasm_7#13704
ludamad merged 3 commits intoAztecProtocol:masterfrom
raugfer:stark252-wasm-fix

Conversation

@raugfer
Copy link
Contributor

@raugfer raugfer commented Apr 21, 2025

This PR attempts to fix a bb.js/WASM bug for the UltraStarknetFlavor. Unfortunately, it was introduced by the original implementation (#11489).

In short, the STARK252 field constants r_inv_wasm_5 and r_inv_wasm_7 were declared with 30-bits when 29-bits are expected.

Hopefully this simple change should fix bb.js's buggy behavior.

@ludamad Please take a look, thanks in advance

@ludamad ludamad changed the title FIX: Clears extraneous MSB from r_inv_wasm_5/r_inv_wasm_7 fix(starknet-bb): Clears extraneous MSB from r_inv_wasm_5/r_inv_wasm_7 May 7, 2025
@ludamad ludamad merged commit 6d593a6 into AztecProtocol:master May 7, 2025
1 check failed
@raugfer raugfer deleted the stark252-wasm-fix branch May 8, 2025 13:07
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