Open CedarMist opened 1 month ago
fixes #389
This provides the decryption keys to snap.
[!WARNING] If an RPC server pretends to implement the MetaMask snap protocol it could trick users into revealing the transaction encryption key. For this reason, we have to explicitly enable Snap support in the dApp, by passing the enableSapphireSnap option.
[!WARNING] If an RPC server pretends to implement the MetaMask snap protocol it could trick users into revealing the transaction encryption key.
For this reason, we have to explicitly enable Snap support in the dApp, by passing the enableSapphireSnap option.
enableSapphireSnap
Usage:
wrapEthereumProvider(window.ethereum, {enableSapphireSnap:true})
This must only be done if the dApp is sure that the provider it's connecting to is MetaMask.
TODO:
wallet_invokeSnap
fixes #389
This provides the decryption keys to snap.
Usage:
This must only be done if the dApp is sure that the provider it's connecting to is MetaMask.
TODO:
wallet_invokeSnap