Open neruthes opened 4 years ago
I think the link between Persona
and Wallet
should be cancelled
A wallet should be created automatically in certain circumstances:
The initial 6 characters of the wallet address, e.g. 0x1234
.
Temporary solution: https://github.com/DimensionDev/Maskbook/pull/962
I think we need to follow the on-demand principle.
In a recent discussion, we agreed that the concept of Wallet here is like the concept of Address in shopping apps. A customer will need to create an address when he is about to place an order, and address-less users should be fine as long as they do not buy things.
With this in mind, we can largely avoid automatic creation, and use an opportunistic suggestion strategy. When a plugin is about to make an operation which requires the presence of a wallet, it should ask Maskbook to ask the user to add a wallet before proceeding. Related APIs include getWalletCount
and askCreateWallet
. For now, Red Packet and Gitcoin will require a wallet for certain operations, while native usages do not.
This matter is pretty tricky...