Skip to content

starknet_committer: db keys for proofs and accessed keys digest#13997

Closed
ArielElp wants to merge 1 commit into
ariel/add_committer_request_typesfrom
ariel/patricia_proofs_db_keys
Closed

starknet_committer: db keys for proofs and accessed keys digest#13997
ArielElp wants to merge 1 commit into
ariel/add_committer_request_typesfrom
ariel/patricia_proofs_db_keys

Conversation

@ArielElp
Copy link
Copy Markdown
Contributor

@ArielElp ArielElp commented May 7, 2026

No description provided.

@reviewable-StarkWare
Copy link
Copy Markdown

This change is Reviewable

@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from dfd62d8 to c672275 Compare May 7, 2026 12:40
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 1653f27 to b645f94 Compare May 14, 2026 08:43
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from c672275 to 765284d Compare May 14, 2026 08:43
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from b645f94 to abf2f2d Compare May 18, 2026 11:56
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch 2 times, most recently from 2562066 to d34fe2c Compare May 18, 2026 13:52
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch 2 times, most recently from bc12ddd to 9e42fdf Compare May 19, 2026 06:55
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from d34fe2c to 509ef2f Compare May 19, 2026 06:55
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 9e42fdf to 9ab840a Compare May 19, 2026 07:08
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from 509ef2f to 4f7483a Compare May 19, 2026 07:08
@ArielElp ArielElp marked this pull request as ready for review May 19, 2026 07:08
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch 2 times, most recently from 16a3024 to d0b8e0c Compare May 26, 2026 13:03
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch 2 times, most recently from 12faee1 to 267f776 Compare May 26, 2026 13:11
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from d0b8e0c to 00a8555 Compare May 26, 2026 13:11
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from 267f776 to df115c1 Compare May 27, 2026 07:23
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 1a8e8fc to 9458412 Compare May 27, 2026 09:45
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from df115c1 to 777d9c0 Compare May 27, 2026 09:45
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 9458412 to 9dc7ed9 Compare May 27, 2026 11:52
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch 2 times, most recently from 27c8153 to afa6924 Compare May 27, 2026 12:00
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 9dc7ed9 to 2b512c8 Compare May 27, 2026 12:00
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from afa6924 to 6303205 Compare May 27, 2026 12:20
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 2b512c8 to 88b3f9b Compare May 27, 2026 12:20
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from 6303205 to 3ef582d Compare May 27, 2026 12:24
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 88b3f9b to 32233ea Compare May 27, 2026 12:24
key.extend_from_slice(&block_number_bytes);
key.extend_from_slice(&[0u8; 24]);
DbKey(key)
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Duplicated key-building logic already exists in helper function

Low Severity

patricia_proofs_db_key reimplements the same key-construction logic as the existing metadata_block_number_key helper (prefix + block number bytes + 24-byte padding into a 64-byte vec). It could delegate to that helper and wrap the result in DbKey, avoiding duplicated logic that could drift out of sync.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 3ef582d. Configure here.

@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from 32233ea to c1d1d19 Compare May 27, 2026 14:31
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from 3ef582d to 99c87bd Compare May 27, 2026 14:31
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from c1d1d19 to ed0c4b1 Compare May 27, 2026 15:31
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from 99c87bd to a619b13 Compare May 27, 2026 15:31
@ArielElp ArielElp force-pushed the ariel/add_committer_request_types branch from ed0c4b1 to d1e67a9 Compare May 27, 2026 15:47
@ArielElp ArielElp force-pushed the ariel/patricia_proofs_db_keys branch from a619b13 to 0f8ba99 Compare May 27, 2026 15:47
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit d02b777. Configure here.

IndexLayoutSubTree,
IndexNodeContext,
};
#[cfg(feature = "os_input")]
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Feature-gated import breaks non-os_input compilation

High Severity

The DbBlockNumber import was changed from unconditional to #[cfg(feature = "os_input")], but metadata_block_number_key at line 349 uses DbBlockNumber in its signature without any feature gate. That function is called from the non-gated ForestMetadata::metadata_key match arms for StateDiffHash and StateRoot. This breaks compilation when the os_input feature is not enabled.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit d02b777. Configure here.

Copy link
Copy Markdown
Collaborator

@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.

@dorimedini-starkware reviewed all commit messages and made 1 comment.
Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on ArielElp and yoavGrs).


a discussion (no related file):
isn't this PR a subset of [this one](https://reviewable.io/reviews/starkware-libs/sequencer/13995...?

Copy link
Copy Markdown
Contributor Author

@ArielElp ArielElp left a comment

Choose a reason for hiding this comment

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

@ArielElp made 1 comment.
Reviewable status: 0 of 1 files reviewed, 3 unresolved discussions (waiting on dorimedini-starkware and yoavGrs).


a discussion (no related file):

Previously, dorimedini-starkware wrote…

isn't this PR a subset of [this one](https://reviewable.io/reviews/starkware-libs/sequencer/13995...?

Yeah, I'm not really sure what happened here, I think the original intention was for this PR to contain all the prefixes as they're not really related to the forest trait changes. Given that the previous one was already checked, I'm moving the new prefix there and closing this PR.

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