Oasis Privacy Layer

Add instant privacy to existing dApps running on any EVM network.

The Oasis Privacy Layer (OPL) is the industry-leading EVM-compatible Smart Privacy solution that redefines how Web3 developers engineer confidential smart contracts.

What does OPL offer?

Powered by Sapphire, OPL brings the first confidential EVM with interoperable on-chain privacy to Web3.

Customizable Privacy

Different dApps require different levels of privacy. From fully public to completely confidential, OPL enables privacy on any point of the spectrum, from fully public to completely confidential. Features of a dApp that require privacy can run on Sapphire via OPL while users and assets remain on their host network.

Cross-Chain Convenience

Web3 user safety starts with versatile, cross-chain privacy. The message-passing bridge built into OPL offers easy synchronization between dApp state and the host network using Sapphire’s secure runtime.

Productive Transparency

Forcing all on-chain activity to be completely public can be counterproductive. Instead of relying on basic smart contracts that offer no secrecy, OPL empowers Solidity developers to fine-tune discretionary transparency to the level that best suits their application.

How does OPL work?

Contracts for a dApp that uses OPL live on their host network where users and native assets also live. Elements of a dApp are deployed on Sapphire, and the host network can securely pass messages to and from the Sapphire runtime through OPL using its messaging bridge.

Every blockchain has its own native gas token, which can create cross-chain friction. But by using OPL, dApps can pay gas with their own native token while still leveraging the confidentiality features of the Sapphire runtime. Messages are passed through and executed on Sapphire. Users can directly interact with confidential contracts. And gas is paid for in whatever token fuels their native network.

Benefits of OPL

EVM Compatible

With full support for the two most popular frameworks, Truffle and Hardhat, you can develop, test, debug and deploy your dApp using OPL just like you normally do.

This is a default tooltip

Low-complexity

In comparison to zkSNARKs, Fully-Homomorphic Encryption (FHE) or Multi-Party-Computation (MPC) it is much easier to build cross-chain dApps with privacy, speed and confidentiality using OPL.

Cryptography

Confidential Sapphire contracts have access to a range of cryptographic primitives for random number generation, encryption, and asynchronous signatures with widely adopted algorithms such as Ed25519 and Secp256k1.

How to get started with OPL?

1

Start reading the OPL documentation to build your Hello World dApp using OPL.

2

Join the Oasis community to chat with the engineers behind OPL and other Solidity developers building privacy-first applications with OPL.

3

Participate in the Oasis Privacy4Web3 Hackathon.

4

Apply for an Oasis grant to build privacy-first Web3 dApps on Sapphire or any other blockchain that uses Sapphire as a privacy layer.

Dive into the code behind OPL

Explore the public Github repository and start adding it to your projects.

Github Repo

Who uses OPL?

The Oasis Privacy Layer is a privacy platform for all of Web3… and we mean all of it.

NFTs

  • Beyond being creative, high-resolution digital collectibles, NFTs hold vast potential for greater functionality as Web3 identities, memberships, and more. OPL enables customizable permissions for data associated with digital collectibles, thereby restricting access to sensitive data.
  • Consider a scenario where an NFT creator wants to include some more personalized content with their NFTs. An artist could include original sketches associated with the NFT, Gaming projects can add associated lore to items, or performers can include loyalty rewards to their ticket sales. This allows NFTs to go beyond proof that someone owns a unique item, but also allows individuals to have a unique experience connected to the NFTs they own. Creators can use OPL as a way to manage access to this unique content while enabling the NFTs to be minted on whichever chain they wish.
Docs and sample codes to be released soon.
Back

DAOs

  • Optimized community management and DAO decision making requires discretionary transparency, and privacy tools like OPL are essential to achieving it.
  • Consider a routine on-chain voting process and the benefits of implementing secret ballots via encrypted signed messages. A user will submit a vote on-chain, which the DAO will relay to Sapphire’s confidential compute environment through OPL. Messages containing the voting results as well as the original ballots will be sent back to the DAO’s native chain. The OPL gas relayer also allows voters to pay gas on their native chain while using Sapphire for confidential compute, so the entire process is abstracted away from the governance process.
Docs and sample codes to be released soon.
Back

DID

  • Decentralized identity (DID) in Web3 hinges on robust protections for users’ personal information. With OPL, Solidity developers can build DID dApps with customizable privacy settings allowing users to control exactly what information is revealed to whom..
  • Consider a scenario where a user needs to verify their credentials to gain access to a lending pool with better rates. Instead of publishing this personal data publicly on-chain, it can be stored in a confidential Soul Bound Token (SBT), which only the SBT owner can access. The lending pool dApp can request a signed message verifying these credentials stored in the SBT. which can then be sent through OPL to the dApp’s native chain. This entire transaction can be abstracted away from the frontend action. After Sapphire performs the necessary computation, the result of that computation will be messaged back to the dApp sharing whether the user meets or fails the pool’s criteria.
Docs and sample codes to be released soon.
Back

Gaming

  • Maintaining secret game state is essential for many Web3 games. Card games, strategy games and RPGs must manage secret state such as cards in a deck, other players’ hands, fog of war or puzzles/riddles/quests. However, current Web3 games have to move these features off-chain, sacrificing the high integrity and trustless guarantees unique to Web3 gaming. Fortunately, with Sapphire and the Oasis Privacy Layer, this trade off is no longer necessary. 
  • For instance, a role-playing game can leverage the Oasis Privacy Layer to include an on-chain puzzle with an NFT prize. During gameplay, the dApp will prompt the user to submit the solution in a signed encrypted message. If the puzzle is solved correctly, a message can then be sent back to the game on its home chain, unlocking an NFT reward that the player can use in the game. 
Docs and sample codes to be released soon.
Back

DeFi

  • Sapphire provides a range of options for dApps to customize their levels of transparency and confidentiality. This allows them to selectively reveal or encrypt specific aspects of the contract state, depending on their product requirements.
  • For instance, a DEX on Sapphire can opt to encrypt specific aspects of state, such as the orderbook and slippage parameters for trades. In this way a DEX would be MEV resistant as bots trying to frontrun or sandwich attack user’s trades would not have the necessary information to identify profitable opportunities.
Docs and sample codes to be released soon.
Back

DAOs

Secret voting protects DAO members’ freedom of expression and enables unbiased voting processes. Configurable privacy facilitates better DAO governance.

Read More

DID

User-controlled data sharing policies and selective disclosure unlock the true potential of on chain identities.

Read More

DeFi

Selectively encrypt specific trading parameters to avoid MEV

Read More

DAOs

Secret voting protects DAO members’ freedom of expression and enables unbiased voting processes. Configurable privacy facilitates better DAO governance.

Read More

Gaming

More on-chain game logic means stronger integrity guarantees and more transparency for Web3 games.

Read More

DID

User-controlled data sharing policies and selective disclosure unlock the true potential of on chain identities.

Read More

NFTs

Private attributes and unlockables add value to collections. They can be used to enable gaming features and to cultivate the relationships between creators and collectors.

Read More

DeFi

Selectively encrypt specific trading parameters to avoid MEV

Read More

And More!

And this is only the beginning!

Gaming

More on-chain game logic means stronger integrity guarantees and more transparency for Web3 games.

Read More

NFTs

Private attributes and unlockables add value to collections. They can be used to enable gaming features and to cultivate the relationships between creators and collectors.

Read More

And More!

And this is only the beginning!

Testimonials

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Nick Hynes

Software Developer

Oasis Privacy Layer FAQ’s

What is Oasis Sapphire?

Sapphire is a Confidential EVM with end-to-end encrypted transactions and encrypted storage. This allows contracts to operate on secret data, encrypt and decrypt information, generate random numbers and sign or verify cryptographic signatures.

Who pays for gas?

Contracts pay for gas on-chain where the message is sent from, this means you can ‘send and forget’ and can expect the contract on the target chain will be called with the message. See Celer IM Overview and the Fee Mechanism pages for more info.

Which bridge does it use?

OPL uses the Celer Inter-chain Message (Celer IM) Framework. It is very easy-to-use and allows a "plug'n'play" upgrade that often requires no modifications with already deployed code.

Are bridged messages encrypted?

Messages transmitted via the bridge are not encrypted, however any computation which happens on Sapphire is fully confidential and can operate on secret data.

Is OPL secure?

The Celer IM bridge is secured by the ‘State Guardian Network’ and has additional dApp safeguards with the Celer IM app guardian. See docs for more.

Sapphire is secured by Trusted Execution Environments (TEE) and the Oasis Layer1 BFT Proof-of-Stake consensus system, see the WhitePaper.

Is there an example application?

Yes, the ‘Secret Ballot Lite’ application shows how you can vote in private using OPL, where the main contract runs on a Transparent EVM chain such as Binance Smart Chain or Polygon.

Is there a tutorial?

The Oasis Docs includes an overview of Oasis Privacy Layer and a full tutorial which walks you through the steps of adapting an application to use OPL for selective privacy where it’s needed.

Read More

Featured Articles

Get Involved

How we use cookies?

At Oasis Foundation we believe in your privacy, so you can choose to browse our site without any tracking or by clicking “Accept”, you help us to improve our site and help us grow our ecosystem. View our Privacy Policy for more information.