-
Notifications
You must be signed in to change notification settings - Fork 29
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
[WIP] RFC - Full Wallet Lifecycle #11
Conversation
@yeastplume nice job putting together the first wallet RFC! :) Changing the wallet backend data structure and supporting multiple wallets seem quite distinct from the proposed changes to how init and instantiation behaves, and the addition of new API calls. Do you think it would make sense for these to be broken down into multiple RFCs so they can be reviewed separately? |
Wrestling with whether this should be split up myself. Thing is with the way it's currently structured, many of these changes don't make a lot of sense without the others also being in place. However, it might make more sense ordered thusly:
|
Splitting, this PR just contains the description of API functions that will work on the current single wallet instance. |
|
||
1. In the command line case, each wallet command is a separate invocation. Command line invocation will ask for a password, decrypt the master seed and initialize the wallet with the descrypted seed. It will then perform the desired function and return, zeroing memory and exiting the process. | ||
|
||
1. In the case of a listening API (owner or foreign), the password is given once and the wallet seed is decrypted. The wallet instance is then kept in memory by the handling thread, and re-used for each Foreign or Owner API call. |
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.
Should probably be a 2.
here?
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.
Nope, this is markdown syntax. :) It renders well in the actual document.
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.
Oh it totally does. 😄 Didn't know that markdown fixed list indexes like that.
Replaced by #18 |
Initial (very WIP) of RFC describing changes to the Wallet APIs to support wallet lifecycle events in the API, as well as other changes to support their use in the command-line wallet.