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

Support walletd encryption #29

Open
OrmEmbaar opened this issue Sep 6, 2019 · 3 comments
Open

Support walletd encryption #29

OrmEmbaar opened this issue Sep 6, 2019 · 3 comments
Labels
enhancement New feature or request fat-cli fatd good first issue Good for newcomers

Comments

@OrmEmbaar
Copy link
Contributor

Walletd supports full wallet.db encryption. Fatd should support walletd encryption in order to fully cater to users that require heightened wallet security, such as exchanges.

@AdamSLevy
Copy link
Collaborator

I want to better understand the need for this here. To be clear, neither fatd nor fat-cli access the wallet.db directly. Instead they use the factom-walletd API to retrieve secret addresses. HTTPS can be used to query this endpoint for security. Alternatively a user can supply the raw secret address on the CLI directly but that is of course not recommended for security critical applications.

Please let me know specifically how fatd or fat-cli should support wallet.db encryption if you think this is still applicable.

I will close this in a few days if I don't here back.

@OrmEmbaar
Copy link
Contributor Author

I think I have muddied the waters by referring to wallet.db. Really, this is just about walletd.

From a security perspective, best practice would be to use encryption both in transit and at rest. Currently, fatd only facilitates in transit encryption, not at rest.

Handling an encrypted wallet is done via the unlock-wallet method, which decrypts the wallet for x seconds to allow you to access keys. That decryption command must be sent from the client. Therefore, if a user wants to be able to use fatd with an encrypted wallet, they would currently be forced to handle unlocking themselves. However, I believe the user is ill-suited to understand when and for how long the wallet should be decrypted. It adds complexity to an already complex ecosystem.

@AdamSLevy
Copy link
Collaborator

Ah, this makes sense. Thank you for clarifying.

We can definitely add this to the factom API and use it in fatd and fat-cli.

@AdamSLevy AdamSLevy added enhancement New feature or request fat-cli fatd good first issue Good for newcomers labels Sep 15, 2019
@AdamSLevy AdamSLevy added this to the v1 milestone Sep 17, 2019
@AdamSLevy AdamSLevy removed this from the v1 milestone Oct 29, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request fat-cli fatd good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants