Skip to content

feat: add u256 -> Felt scale down procedure#2320

Merged
partylikeits1983 merged 31 commits intoagglayerfrom
ajl-u256-felt-downscale-proc
Jan 22, 2026
Merged

feat: add u256 -> Felt scale down procedure#2320
partylikeits1983 merged 31 commits intoagglayerfrom
ajl-u256-felt-downscale-proc

Conversation

@partylikeits1983
Copy link
Contributor

@partylikeits1983 partylikeits1983 commented Jan 20, 2026

This PR adds functionality which scales a U256 value to a native Felt value using non-deterministic inputs from the AdviceProvider.

TODO: The math works, but need to think through the best way to create an event which is called inside scale_u256_to_native_amount to call outside to the host to compute the division and push to the AdviceStack.

Resolves point 2.2 here: #2237
Builds on top of: #2270
Context: #2011 (comment)

@partylikeits1983 partylikeits1983 self-assigned this Jan 20, 2026
@partylikeits1983 partylikeits1983 added no changelog This PR does not require an entry in the `CHANGELOG.md` file agglayer PRs or issues related to AggLayer bridging integration labels Jan 20, 2026
@partylikeits1983 partylikeits1983 changed the base branch from next to agglayer January 20, 2026 20:27
@partylikeits1983 partylikeits1983 changed the base branch from agglayer to ajl-claim-note-follow-up January 20, 2026 20:28
Base automatically changed from ajl-claim-note-follow-up to agglayer January 22, 2026 16:26
@partylikeits1983 partylikeits1983 merged commit 3d75428 into agglayer Jan 22, 2026
15 checks passed
@partylikeits1983 partylikeits1983 deleted the ajl-u256-felt-downscale-proc branch January 22, 2026 23:48
@partylikeits1983 partylikeits1983 restored the ajl-u256-felt-downscale-proc branch January 22, 2026 23:57
@bobbinth
Copy link
Contributor

I think this was merged into the agglayer branch without squashing. we'll probably need to squash the commits there to clean up the history a bit.

@partylikeits1983
Copy link
Contributor Author

An accidental merge occurred on this branch to agglayer. Reopened the PR here: #2331

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agglayer PRs or issues related to AggLayer bridging integration no changelog This PR does not require an entry in the `CHANGELOG.md` file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants