-
Notifications
You must be signed in to change notification settings - Fork 55
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
Make one wallet the standard #228
Comments
On most systems the wallet password is the only encryption standing between needing a password or having the bitcoin keys readily available for anyone with physical access to the disk. Be aware that getting rid of wallet password there will be no security left. Think of what happens when someone takes the node away. The problem with loosening the security is that JM is meant for higher amounts by nature so autounlocks and passwordless setups risk a lot potentially. |
I wouldn't be comfortable with implementing completely passwordless wallets for the reasons @openoms mentioned above. I do like the general idea of having a single wallet flow by default (with the option to create more wallets if needed). I feel like most of our users would be perfectly fine with having only one wallet. Currently the "choose wallet" screen is really prominent and I don't think it needs to be such a central thing in the UX when most users (I assume; might be wrong of course) have a single wallet only. We could, for example, build a guided onboarding flow that is shown the first time the user opens the app. There we could guide the user to create a wallet and then make this wallet the default. After unlocking the app (and the wallet) this wallet would then be opened directly. A pro user could still reach the "switch / create wallets" screen via settings for example. There they could also choose which wallet (if they have several) is the default one. Does that make sense from a UX point of view? |
nice, I like the insights. if its a possible way, I would love to see the user punching in the chosen wallet password as the jam login password. we need to optimize the wording for the user to understand that a login is the same as unlock the wallet in general. after that we are in a single wallet environment. all the other features like adding another wallet, switch wallets, make a wallet the new default, lock and unlock wallets, maybe even delete wallets and export and import plus rescan wallets should live under settings. imo that makes more sense. |
💯 agree on this! About reusing the wallet password as the app password: While I'd love to have this from a Jam point-of-view, I'm not sure we can do that in a clean way considering the bigger picture. It might turn out to be more confusing in the end. (Sorry in advance for the wall of text.) App Password vs. Wallet PasswordCurrently, there's two different passwords:
Like pointed out by openoms, a way of maybe achieving a single-password flow would be to reuse the wallet password for the app password. However, since nodes like RaspiBlitz or Umbrel work with a single shared app password ("Password B" on a RaspiBlitz) to unlock the apps (e.g. RTL, Thunderhub) running on these nodes, it would be "non-standard" in a way for us to deviate from this scheme. That could be confusing for users who are used to the shared app-password. I feel like it's the safer route to stick with the way the nodes want us to use their app-password. We also can't reuse this app-password for the wallet of course, since it's stored on disk e.g. on the RaspiBlitz. So assuming all my assumptions above are true (please tell me if I'm wrong!) we basically have to keep the two passwords around:
I do see how this is confusing. We somehow have to engineer the UI in a way that it isn't weird to enter two passwords at once. Maybe we could do it like a 2FA flow since users are already accustomed to entering two passwords there. 🤔 Another option might be to stick with Basic Auth (our current approach on Umbrel) since browsers cache these passwords so it would feel like a one-password flow most of the time. I'd love to see a simpler, one-password approach though if anyone has any ideas! Hope this is helpful background. Let me know what you think everyone! |
This is an interesting point and intuitively, correct (arguable though!). It's worth remembering that one of the main distinguishing features of a Joinmarket wallet is that it has 5 (by default, which most don't change) accounts and they function very much like separate wallets to all intents and purposes. There is definitely a use case for switching up to a new wallet file at least from time to time. Depending on .. stuff .., a user can end up having thousands of used addresses in a JM wallet, unlike most wallets (don't forget - even failed coinjoins "use up" addresses, because they were communicated to counterparties and are therefore considered unusable in future - notice how different that is, from most wallets). This causes more scanning slowdown, and our wallet sync is not the fastest, in the first place! (Of course there are other reasons to switch to a new wallet file; I just mention that one as it's less obvious) So the obvious thing I guess is to hide 'new wallet' away from the main workflow, but do keep it and don't hide it too well :) |
|
Agreed, it's partially resolved (also relevant: #325). For the scope of v0.0.7 we can definitely consider it resolved. The meat of this feature will be replacing the "home" screen which is currently the "select which wallet to unlock screen" with something more sleek that just asks you to input the wallet password for the default wallet. The screen to switch wallets will then only be accessible from the settings. @editwentyone If you're motivated to think about how this could look, feel free to open a new issue with any UI ideas! 🙏 ✨ |
lets use this to unlock the default wallet. also it would be nice to declare another wallet the "default", is this possible through settings screen? https://www.figma.com/file/kfejZJFlwBywvLEnPEmJo1/?node-id=3994%3A73345 |
@editwentyone I'd say it'll be easiest to slap that onto the "wallet switcher" screen: What do you think? Any ideas on how it could look like? I'm thinking a "make default wallet" button would probably be sufficient. 🤔 |
How about a star icon? |
"make default wallet" button was also my idea, but there will be too many buttons on each row. star icon is more the "favorite" route |
I like this direction the most. Drap and drop implies an order between the elements which is not there in our case. What about the radio buttons option but make them ⭐ shaped? |
because there can only be one default wallet, I would stay with radios. stars are more favorites and you can have more then one |
See also #337 |
Finishing this is blocked by #337. |
Moving this issue out of v0.0.10 since we need a decision / designs for #337 first. |
what do you think about sliming down the overall use of passwords for JAM and wallets by giving the user in the normal journey the following:
(no preview, created screens would be wired differently)
we are not getting rid of the screens and functionality that is build already, we just link them differently into another flow.
later we could also maybe build in import/ export of wallets for different cross usage like joininbox or backups if needed.
the default user would have an easier experience without too many passwords to remember/ secure and there is no lock/unlock issue with running processes in the background.
The text was updated successfully, but these errors were encountered: