Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rusk-wallet: Improve address handling #2594

Merged
merged 1 commit into from
Oct 8, 2024
Merged

Conversation

moCello
Copy link
Member

@moCello moCello commented Oct 3, 2024

This PR removes the index field from the Address enum, so that it only either holds a phoenix public-key or bls public-key.

Additionally the internal storage of addresses changes from Vec<Address> to Vec<(PhoenixPublicKey, BlsPublicKey)>.
When the user selects and address from which to make a transaction from, she will select an index of the address keys. Depending on that index and the type of transaction that is performed, the wallet will choose the appropriate public-key from the addresses list.

Resolves #2580

@moCello moCello force-pushed the mocello/2580_fix_addresses branch 2 times, most recently from 2f003fd to 18b50df Compare October 4, 2024 12:40
xevisalle
xevisalle previously approved these changes Oct 7, 2024
@moCello moCello force-pushed the mocello/2580_fix_addresses branch 2 times, most recently from 0c18fd1 to 7fd0074 Compare October 7, 2024 10:14
The wallet addresses are now identified by their index internally.
@moCello moCello force-pushed the mocello/2580_fix_addresses branch from 7fd0074 to e370575 Compare October 7, 2024 11:44
@moCello moCello linked an issue Oct 7, 2024 that may be closed by this pull request
Copy link
Member

@HDauven HDauven left a comment

Choose a reason for hiding this comment

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

LGTM

@moCello moCello merged commit 56c82c9 into master Oct 8, 2024
16 checks passed
@moCello moCello deleted the mocello/2580_fix_addresses branch October 8, 2024 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants