oasisprotocol / sapphire-paratime

Oasis Sapphire - the confidential EVM-compatible ParaTime for the Oasis Network
https://oasisprotocol.org/sapphire
Apache License 2.0
39 stars 27 forks source link

Initial work to implement Sapphire snap connection #431

Open CedarMist opened 1 month ago

CedarMist commented 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.

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:

netlify[bot] commented 1 month ago

Deploy Preview for oasisprotocol-sapphire-paratime canceled.

Name Link
Latest commit 1b3fab0ce5056d496d2741b89a60c6f75a478983
Latest deploy log https://app.netlify.com/sites/oasisprotocol-sapphire-paratime/deploys/6708f72c25062e000805cb82