Skip to content

Conversation

@dorimedini-starkware
Copy link
Collaborator

No description provided.

@reviewable-StarkWare
Copy link

This change is Reviewable

@dorimedini-starkware dorimedini-starkware self-assigned this Apr 17, 2025
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch 4 times, most recently from 3da610e to 33636e2 Compare April 17, 2025 14:39
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from 4285720 to bca7a50 Compare April 17, 2025 18:36
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from 33636e2 to b0600fa Compare April 17, 2025 18:36
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from bca7a50 to d36ae68 Compare April 17, 2025 18:54
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from b0600fa to f79b6de Compare April 17, 2025 18:54
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from d36ae68 to 1cd12cf Compare April 18, 2025 10:05
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from f79b6de to cf90eea Compare April 18, 2025 10:06
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from 3f5e290 to 7cd384d Compare May 26, 2025 14:51
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from 2a746c6 to 14f58db Compare May 27, 2025 07:57
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from 7cd384d to 6b2700d Compare May 27, 2025 07:57
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from 14f58db to fc32d1d Compare May 27, 2025 08:36
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from 6b2700d to f38164b Compare May 27, 2025 08:36
Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

Reviewed 2 of 6 files at r1, 4 of 4 files at r2, all commit messages.
Reviewable status: all files reviewed, 4 unresolved discussions (waiting on @amosStarkware and @nimrod-starkware)


crates/apollo_starknet_os_program/src/program_hash.rs line 25 at r2 (raw file):

#[derive(Debug, Deserialize, Serialize, PartialEq)]
pub struct ProgramHash {

?

Suggestion:

ProgramHashes

crates/apollo_starknet_os_program/src/program_hash.rs line 43 at r2 (raw file):

    if len > 32 {
        panic!("Data length exceeds 32 bytes.");
    }

Consider

Suggestion:

fn pad_to_32_bytes(data: &[u8]) -> Result<[u8; 32], &'static str> { {
    let len = data.len();
    if len > 32 {
         Err("Data length exceeds 32 bytes.")?;
    }
    let mut padded = [0; 32];

crates/apollo_starknet_os_program/src/program_hash.rs line 70 at r2 (raw file):

            } else {
                Ok(Felt::from_bytes_be(&pad_to_32_bytes(&builtin_bytes)))
            }

Consider sort of this

Suggestion:

            Ok(Felt::from_bytes_be(&pad_to_32_bytes(&builtin_bytes).unwrap_or(
                Err(ProgramHashError::BuiltinNameTooLong {
                    builtin: *builtin,
                    name: builtin.to_str().to_string(),
                })?))
            

crates/apollo_starknet_os_program/src/program_hash_test.rs line 27 at r2 (raw file):

fn test_program_hash() {
    let AggregatorHash { with_prefix, without_prefix } = compute_aggregator_program_hash().unwrap();
    let computed_hash = ProgramHash {

Suggestion:

computed_hashes

@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from fc32d1d to 0fdab8f Compare May 27, 2025 10:25
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from f38164b to 5ca04d6 Compare May 27, 2025 10:25
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from 0fdab8f to 9f1ec6b Compare May 27, 2025 11:49
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from 5ca04d6 to 87bc0a2 Compare May 27, 2025 11:49
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: 3 of 7 files reviewed, 3 unresolved discussions (waiting on @amosStarkware, @nimrod-starkware, and @TzahiTaub)


crates/apollo_starknet_os_program/src/program_hash.rs line 25 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

?

Done.


crates/apollo_starknet_os_program/src/program_hash.rs line 43 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Consider

this is a test util; so I'll pass


crates/apollo_starknet_os_program/src/program_hash.rs line 70 at r2 (raw file):

Previously, TzahiTaub (Tzahi) wrote…

Consider sort of this

as this is a test util, I prefer to fail early


crates/apollo_starknet_os_program/src/program_hash_test.rs line 27 at r2 (raw file):

fn test_program_hash() {
    let AggregatorHash { with_prefix, without_prefix } = compute_aggregator_program_hash().unwrap();
    let computed_hash = ProgramHash {

Done.

@github-actions
Copy link

github-actions bot commented May 27, 2025

Benchmark movements: No major performance changes detected.

Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

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


crates/apollo_starknet_os_program/src/program_hash_test.rs line 25 at r3 (raw file):

/// ```
#[test]
fn test_program_hash() {

Suggestion:

test_program_hashes

@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from 9f1ec6b to c6d8279 Compare May 27, 2025 20:52
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch 2 times, most recently from f99e821 to 53d8b0e Compare May 27, 2025 20:54
Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r4, 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 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing branch from c6d8279 to 663b3bd Compare May 28, 2025 09:02
@dorimedini-starkware dorimedini-starkware force-pushed the 04-17-feat_apollo_starknet_os_program_add_aggregator_program_program_hash_es_ branch from 53d8b0e to 967d6c8 Compare May 28, 2025 09:02
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.

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

@dorimedini-starkware dorimedini-starkware changed the base branch from 04-17-test_ci_prepare_apollo_starknet_os_program_for_publishing to main-v0.14.0 May 28, 2025 10:50
@github-actions
Copy link

Artifacts upload workflows:

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.

Reviewed 2 of 2 files at r6, 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 May 28, 2025
Copy link
Contributor

@TzahiTaub TzahiTaub left a comment

Choose a reason for hiding this comment

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

Reviewed 1 of 1 files at r5, 2 of 2 files at r6, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @amosStarkware and @nimrod-starkware)

Merged via the queue into main-v0.14.0 with commit 50c4c10 May 28, 2025
33 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators May 30, 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.

4 participants