feat(sub-account-anonymizer): two-stage commitment + get_sub_accounts view (#883)
privacy_compute becomes hash(hash(identity_key, dapp_name), nonce); the inner
hash is the PartialCommitment. get_sub_accounts(partial, start, end) resolves each
nonce in range to a SubAccountInfo { nonce, address, is_deployed } — a deployed
nonce carries its stored address, an undeployed one the deterministic address it
would deploy to (via OZ calculate_contract_address_from_deploy_syscall, matching
the deploy syscall). Range capped by MAX_SCAN_RANGE.
<!-- Reviewable:start -->
- - -
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/starkware-libs/starknet-privacy/883)
<!-- Reviewable:end --> I
Ittay Dror committed
f78c4976d477aaec7128115bb355032573d0d064
Parent: efc61cb
Committed by GitHub <noreply@github.com>
on 7/8/2026, 1:55:08 PM