πŸ–₯️Tech Stack

Description of the Shade Protocol tech stack.

The Shade Apps are made possible from the following key tech stack pieces:

  • Data Privacy

  • Private Smart Contracts

  • Oracle Solutions

  • Secret Token (SNIP) Standard

Ultimately, the above underlying tech components are what empower the unique value proposition of the performant, privacy-preserving DeFi known as Shade Protocol.

Data Privacy

Shade Protocol applications are built on top of Secret Networkarrow-up-right. To achieve data privacy, the Secret Network protocol leverages the following:

TEEs are part of the hardware specification for all validator nodes of the network, guaranteeing that nodes are unable to view computations that occur within the trusted environment - preserving the privacy of the underlying data during the computation. Shade Protocol implements programmable privacy, which is defined as arbitrarily complex data privacy controls within Shade Apps.

Private Smart Contracts

Shade Protocol smart contracts are coded in Rust - a multi-paradigmarrow-up-right, general-purpose programming languagearrow-up-right. Rust emphasizes the following:

Rust enforces memory safetyarrow-up-rightβ€”that is, that all referencesarrow-up-right point to valid memoryβ€”without requiring the use of a garbage collectorarrow-up-right or reference countingarrow-up-right present in other memory-safe languages. To simultaneously enforce memory safety and prevent concurrent data racesarrow-up-right, Rust's borrow checker tracks the object lifetimearrow-up-right and variable scopearrow-up-right of all referencesarrow-up-right in a program during compilationarrow-up-right.

Shade Protocol smart contract uses the SecretWasmarrow-up-right contract framework which adds a private computation module to the well-known CosmWasm contract frameworkarrow-up-right - which was built with a specific focus on security and testing:

Oracle Solutions

Shade Protocol leverages two oracle solutions: Band Protocolarrow-up-right & SupraOraclesarrow-up-right. Currently, the SupraOracles implementation is under active research.

Band Protocol

Band Protocol is a cross-chain data oracle platform that aggregates and connects real-world data and APIs to smart contracts. This allows data from other blockchains as well as real-world data to be directly used by Shade Protocol for Silk, ShadeSwap, Bonds, and the many various Shade Apps. Band Protocol was implemented for the following reasons:

  • Easy to integrate

  • Cosmos native

  • Open-source

  • Audited

  • Operated by a wide array of decentralized professional node operators

SupraOracles

Shade Protocol partnered with SupraOracles in 2022 - a long term initiative to further decentralize Shade Protocol's existing oracle solutions. SupraOracles implementation is being pursued for the following reasons:

  • 3-5 second finality

  • Cross-chain interoperability

  • Cutting edge cryptography

  • Data provider rotations

  • Decentralized

Secret Token (SNIP) Standard

Shade Protocol leverages the Secret Tokenarrow-up-right standard for Silk and SHD. The SNIP standard is a specification for private fungible tokens based on CosmWasm on the Secret Network. The name and design is loosely based on Ethereum’s ERC-20 & ERC-777 standards, and a superset of CosmWasm’s CW-20. Key additions to this spec over the CW-20 specification are mostly for privacy-focused features, and as such will strive to maintain compatibility. Features of SNIP tokens are as follows:

Last updated