Search…
⌃K
Links
🖥

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 Network. 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.
Secret Network Whitepaper.pdf
213KB
PDF

Private Smart Contracts

Shade Protocol smart contracts are coded in Rust - a multi-paradigm, general-purpose programming language. Rust emphasizes the following:
Rust enforces memory safety—that is, that all references point to valid memory—without requiring the use of a garbage collector or reference counting present in other memory-safe languages. To simultaneously enforce memory safety and prevent concurrent data races, Rust's borrow checker tracks the object lifetime and variable scope of all references in a program during compilation.
Shade Protocol smart contract uses the SecretWasm contract framework which adds a private computation module to the well-known CosmWasm contract framework - which was built with a specific focus on security and testing:

Oracle Solutions

Shade Protocol leverages two oracle solutions: Band Protocol & SupraOracles. Currently, the SupraOracles implementation is under active research.
​Band Protocol​

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 Token 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:
  • Private transactions
  • Private smart contract interactions
  • IBC interoperable