Skip to content

Refactor(account) introducing account id key#2495

Open
swaploard wants to merge 4 commits into0xMiden:nextfrom
swaploard:refactor(account)--introducing-AccountIdKey
Open

Refactor(account) introducing account id key#2495
swaploard wants to merge 4 commits into0xMiden:nextfrom
swaploard:refactor(account)--introducing-AccountIdKey

Conversation

@swaploard
Copy link
Contributor

This PR addresses issue (#2443) by introducing a dedicated AccountIdKey type to unify and centralize all AccountId → SMT and advice-map key conversions across the account tree and transaction layers. Previously, this logic was implemented via multiple free/helper functions, leading to duplication and scattered layout assumptions. This change removes those functions and replaces them with a single, strongly-typed abstraction that encapsulates the canonical word representations, leaf index conversion, and advice map key format, improving type safety, maintainability, and clarity.

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.

1 participant