Skip to content

feat!: update address derivation#23151

Open
IlyasRidhuan wants to merge 1 commit into
ir/04-30-feat_add_immutables_hash_to_contract_instancefrom
ir/05-05-feat_update_address_derivation
Open

feat!: update address derivation#23151
IlyasRidhuan wants to merge 1 commit into
ir/04-30-feat_add_immutables_hash_to_contract_instancefrom
ir/05-05-feat_update_address_derivation

Conversation

@IlyasRidhuan
Copy link
Copy Markdown
Contributor

@IlyasRidhuan IlyasRidhuan commented May 11, 2026

Part 2 of the immutables_hash changes as part of AZIP-9

Updates address derivation to include the immutables_hash. Specifically, immutables_hash is now part of the salted_initialization_hash computation

This also includes a constant update from DOM_SEP__CONTRACT_ADDRESS_V1 -> DOM_SEP__CONTRACT_ADDRESS_V2

Copy link
Copy Markdown
Contributor Author

IlyasRidhuan commented May 11, 2026

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more

This stack of pull requests is managed by Graphite. Learn more about stacking.

@IlyasRidhuan IlyasRidhuan force-pushed the ir/05-05-feat_update_address_derivation branch from dc34889 to f8f8953 Compare May 11, 2026 16:30
@IlyasRidhuan IlyasRidhuan force-pushed the ir/04-30-feat_add_immutables_hash_to_contract_instance branch from ab7fc16 to 30d8c61 Compare May 11, 2026 16:30
@IlyasRidhuan IlyasRidhuan force-pushed the ir/05-05-feat_update_address_derivation branch from f8f8953 to 9c8d4d8 Compare May 11, 2026 16:37
@IlyasRidhuan IlyasRidhuan force-pushed the ir/04-30-feat_add_immutables_hash_to_contract_instance branch from 30d8c61 to c549ab9 Compare May 14, 2026 18:37
@IlyasRidhuan IlyasRidhuan force-pushed the ir/05-05-feat_update_address_derivation branch from 9c8d4d8 to a91ac39 Compare May 14, 2026 18:37
@IlyasRidhuan IlyasRidhuan force-pushed the ir/04-30-feat_add_immutables_hash_to_contract_instance branch from c549ab9 to c684929 Compare May 14, 2026 19:43
@IlyasRidhuan IlyasRidhuan force-pushed the ir/05-05-feat_update_address_derivation branch 2 times, most recently from 4311e6b to 3457e34 Compare May 14, 2026 20:37
@IlyasRidhuan IlyasRidhuan force-pushed the ir/04-30-feat_add_immutables_hash_to_contract_instance branch 2 times, most recently from 8a3f592 to 276df60 Compare May 14, 2026 21:07
@IlyasRidhuan IlyasRidhuan force-pushed the ir/05-05-feat_update_address_derivation branch from 3457e34 to 524585d Compare May 14, 2026 21:07
@IlyasRidhuan IlyasRidhuan requested a review from nventuro May 14, 2026 21:31
@IlyasRidhuan IlyasRidhuan marked this pull request as ready for review May 14, 2026 21:32
@IlyasRidhuan IlyasRidhuan removed the request for review from LeilaWang May 14, 2026 21:32
Copy link
Copy Markdown
Contributor

@jeanmon jeanmon left a comment

Choose a reason for hiding this comment

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

Good job! I have only one nitpick comment.

// ... ... constructor_fn_selector constructor_args_hash
// artifact_hash | public_bytecode_commitment salted_initialization_hash
// | / / \ \
// private_function_tree_root deployer_address salt immutables_hash initialization_hash
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

nitpick: The order of the elements that we hash is: salt, init_hash, deployer_addr, immutables_hash
which is different as the order in this diagram.

@IlyasRidhuan IlyasRidhuan force-pushed the ir/05-05-feat_update_address_derivation branch from 524585d to bf16019 Compare May 15, 2026 15:15
Copy link
Copy Markdown
Contributor

@mverzilli mverzilli left a comment

Choose a reason for hiding this comment

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

PXE and stdlib look good to me! I defer to others for other parts of the 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.

3 participants