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

feat(ironfish): Add encrypt method to wallet #5248

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

rohanjadvani
Copy link
Member

Summary

  • Adds an encrypt method to the Wallet which grabs the global transaction lock, encrypts accounts with a user-provided passphrase, and then saves the encrypted blobs to disk.
  • Updates Wallet.load to clear out the cached accounts and encrypted accounts so they can be freshly reloaded from the database

Testing Plan

Unit test

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

@rohanjadvani rohanjadvani self-assigned this Aug 13, 2024
@rohanjadvani rohanjadvani requested a review from a team as a code owner August 13, 2024 20:43
@rohanjadvani rohanjadvani merged commit 3a452da into staging Aug 14, 2024
11 checks passed
@rohanjadvani rohanjadvani deleted the rohan/ifl-2791-add-encrypt-method-to-wallet branch August 14, 2024 15:30
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.

2 participants