-
Notifications
You must be signed in to change notification settings - Fork 572
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
Conversation
49815b7
to
19637d8
Compare
19637d8
to
818d105
Compare
8c107ff
to
c178808
Compare
c178808
to
1fb485b
Compare
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
1fb485b
to
b7253e0
Compare
ironfish/src/migrations/data/033-multisig-keys-identity/new/accountValue.ts
Show resolved
Hide resolved
There was a problem hiding this 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.
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
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. |
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
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.
Breaking Change
Is this a breaking change? If yes, add notes below on why this is breaking and label it with
breaking-change-rpc
orbreaking-change-sdk
.