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

stores identity in multisig account value #5630

Merged
merged 3 commits into from
Jan 21, 2025

Conversation

hughy
Copy link
Contributor

@hughy hughy commented Nov 8, 2024

Summary

updates the MultisigKeys interface to store the multisig account identity in the account value

adds a migration, 033, that derives the account identity from the account secret already stored in the account

updates importAccount to derive identity from secret at time of import. deriving the identity instead of using the identity included in the import maintains backwards compatibility

Closes IFL-3118

Testing Plan

  1. export multisig account as JSON on staging, see that it does not contain identity
  2. export multisig account as JSON on this branch, see that it does contain identity
  3. import exports back into new datadirs on this branch, verify that imports succeed

Documentation

Does this change require any updates to the Iron Fish Docs (ex. the RPC API
Reference
)? If yes, link a
related documentation pull request for the website.

[ ] Yes

Breaking Change

Is this a breaking change? If yes, add notes below on why this is breaking and label it with breaking-change-rpc or breaking-change-sdk.

[ ] Yes

@hughy hughy force-pushed the feat/hughy/migrate-encrypted-wallet branch 3 times, most recently from 49815b7 to 19637d8 Compare November 14, 2024 18:52
@hughy hughy force-pushed the feat/hughy/migrate-encrypted-wallet branch from 19637d8 to 818d105 Compare November 22, 2024 20:27
Base automatically changed from feat/hughy/migrate-encrypted-wallet to staging November 26, 2024 19:00
@hughy hughy force-pushed the feat/hughy/multisig-keys-identity branch 3 times, most recently from 8c107ff to c178808 Compare December 4, 2024 23:27
@hughy hughy marked this pull request as ready for review December 4, 2024 23:45
@hughy hughy requested a review from a team as a code owner December 4, 2024 23:45
@hughy hughy marked this pull request as draft December 4, 2024 23:58
@hughy hughy force-pushed the feat/hughy/multisig-keys-identity branch from c178808 to 1fb485b Compare December 5, 2024 00:04
updates the MultisigKeys interface to store the multisig account identity in the
account value

adds a migration, 034, that derives the account identity from the account
secret already stored in the account

updates importAccount to derive identity from secret at time of import. deriving
the identity instead of using the identity included in the import maintains
backwards compatibility
@hughy hughy force-pushed the feat/hughy/multisig-keys-identity branch from 1fb485b to b7253e0 Compare December 5, 2024 00:05
@hughy hughy marked this pull request as ready for review December 5, 2024 00:15
Copy link
Contributor

@jowparks jowparks left a comment

Choose a reason for hiding this comment

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

Seems good, will be nice to see this tested in staging.

hughy added 2 commits January 21, 2025 14:10
updates initialization of multisigKeys from accountValue to occur as soon as
accountValue.multisigKeys is checked

updates multisigKeys using its own value instead of accountValue.multisigKeys.
preserves any updates to multisigKeys after initialization
accommodates future additions of other multisigKeys types
@NullSoldier
Copy link
Contributor

I tested this migration by creating a coordinator, 3 participants, and 1 normal single signer account.

I ran the migration and checked the data, I also encrypted my wallet and checked the migrations again.

All cases seem to work. I'm going to LGTM this PR but one more person should manually test the migrations.

@hughy hughy merged commit 42099f8 into staging Jan 21, 2025
12 checks passed
@hughy hughy deleted the feat/hughy/multisig-keys-identity branch January 21, 2025 23:35
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