Closed javiesses closed 3 years ago
Agree. At this moment we should assume that and inform the user that the encryption feature is not enabled for any non-metamask wallet (same way we do with Nifty and WC).
The best way to do this is given the provider: (provider.isMetaMask && !provider.isNifty)
Because Nifty wallet will return true forisMetaMask
.
I am going to close this as we are using an asymmetric encryption method for non Metamask wallets.
I think we should assume that if the wallet is not Metamask, we should not try to encrypt. Let's create an issue out of this
_Originally posted by @javiesses in https://github.com/rsksmart/rif-identity-manager/pull/44#discussion_r562116438_