Skip to content

feat(starknet_os): implement hint store_da_segment #4880

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@dorimedini-starkware dorimedini-starkware self-assigned this Mar 12, 2025
@dorimedini-starkware dorimedini-starkware marked this pull request as ready for review March 12, 2025 17:22
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 5bf613d to 5c0d583 Compare March 12, 2025 17:44
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 8c33915 to 5ab6b71 Compare March 12, 2025 17:44
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 5c0d583 to cd5d37b Compare March 12, 2025 18:05
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 5ab6b71 to 0799258 Compare March 12, 2025 18:05
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from cd5d37b to 0dbe5e5 Compare March 13, 2025 08:46
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 0799258 to 7bbfc46 Compare March 13, 2025 08:46
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 0dbe5e5 to 82c59dd Compare March 13, 2025 09:30
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 7bbfc46 to 62dfb82 Compare March 13, 2025 09:30
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 82c59dd to 116f2ea Compare March 13, 2025 09:33
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 62dfb82 to 455100b Compare March 13, 2025 09:33
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 116f2ea to b2b3803 Compare March 13, 2025 11:42
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 455100b to e9d56df Compare March 13, 2025 11:42
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 6d3ce17 to b75afc4 Compare March 16, 2025 10:02
Copy link
Contributor

@aner-starkware aner-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r5, 5 of 5 files at r6, all commit messages.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @amosStarkware, @dorimedini-starkware, and @nimrod-starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 63b7b9e to 7cb9a02 Compare March 16, 2025 14:09
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from b75afc4 to 8eb8647 Compare March 16, 2025 14:09
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 7cb9a02 to f048f3f Compare March 16, 2025 16:16
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 8eb8647 to bc1a882 Compare March 16, 2025 16:17
Copy link
Collaborator Author

@dorimedini-starkware dorimedini-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewable status: 0 of 5 files reviewed, 1 unresolved discussion (waiting on @amosStarkware, @aner-starkware, and @nimrod-starkware)


crates/starknet_os/src/hints/hint_implementation/kzg/implementation.rs line 42 at r4 (raw file):

Previously, aner-starkware wrote…

This double conversion doesn't seem to be the most efficient way; maybe we can write a tailored conversion for this specific case?

this would require implementing a custom conversion on Felt, which is out of our repo, so I'm against it; this is also a single conversion operation so the performance impact is negligible


crates/starknet_os/src/hints/hint_implementation/kzg/implementation.rs line 57 at r4 (raw file):

Previously, aner-starkware wrote…

Not about the log, about the types and the conversion.

ah, I see we can convert to Felts directly in polynomial_coefficients_to_kzg_commitment.
done.
(BigUint is added here at the top of the stack)

Copy link
Contributor

@aner-starkware aner-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 5 of 5 files at r7, 5 of 5 files at r8, 3 of 3 files at r9, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from f048f3f to dc3fb38 Compare March 17, 2025 08:20
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from bc1a882 to 5e305dd Compare March 17, 2025 08:21
Copy link
Contributor

@aner-starkware aner-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 3 of 5 files at r11, 3 of 3 files at r12, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from dc3fb38 to 3cb038f Compare March 17, 2025 15:24
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from 5e305dd to e7ab684 Compare March 17, 2025 15:24
Copy link
Contributor

@aner-starkware aner-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 6 of 6 files at r13, 5 of 5 files at r14, 3 of 3 files at r15, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)

@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor branch from 3cb038f to f8b582d Compare March 17, 2025 17:59
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch 2 times, most recently from 2184e84 to ac22bc5 Compare March 18, 2025 13:19
@dorimedini-starkware dorimedini-starkware changed the base branch from 03-12-feat_starknet_os_add_the_da_segment_field_to_the_hint_processor to main March 18, 2025 13:19
@dorimedini-starkware dorimedini-starkware force-pushed the 03-12-feat_starknet_os_implement_hint_store_da_segment branch from ac22bc5 to b7449ea Compare March 18, 2025 16:29
Copy link
Contributor

@aner-starkware aner-starkware left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 6 of 6 files at r16, 5 of 5 files at r17, 3 of 3 files at r18, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)

@dorimedini-starkware dorimedini-starkware added this pull request to the merge queue Mar 18, 2025
Merged via the queue into main with commit 7f9ae86 Mar 18, 2025
10 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Mar 20, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants