Links
🐍

Connecting EVM with Snakepath

Need help with using Snakepath or want to discuss use cases for your dApp? Please ask in the Secret Network Telegram or Discord.
Snakepath is a protocol for lightweight, secure, privacy preserving message-passing between chains. Its purpose is to serve as a critical building block for bringing private data onchain in a useful yet privacy-preserving manner.
In technical terms, Snakepath is a message passing system for non-malleable, trustless interchain message passing. In more practical terms, Snakepath enables public chains to call arbitrary functions on private compute chains while preserving the privacy of the inputs and validity of the outputs. Snakepath is built using a primitive that we call TNLS ("Transport Network Layer Security") which is effectively a blockchain derivative of the TLS protocol.
Snakepath itself does not store or compute over data. Rather, it connects public blockchains and their applications to privacy-preserving computation networks. This design allows public blockchain applications to build and operate private computation contracts on privacy-preserving chains while keeping their primary smart contract logic and liquidity on public blockchains.
Ultimately, Snakepath enables the building of new applications that combine the transparency, UX, and latency benefits of public blockchains with the trust-minimized and private computation features of privacy-preserving blockchains.
The following sections provide a detailed technical overview of the current relayer and gateway architecture for Snakepath.
  1. 1.
    To get an overview of the Architecture go here: Architecture Overview
  2. 2.
    If you like to use SecretVRF in the most elegant way for you as an EVM developer, go here:EVM RNG Developer Tutorial
  3. 3.
    If you like to EVM with Encrypted Payloads
As an user and developer, all you need to know is how to send messages to one gateway/receive messages from a gateway, which will be covered in those respective documentation sections. More tutorials with encrypted payloads are coming soon.
As a maintainer, you might want to look more closely at the relayer section of the codebase as well here: https://github.com/SecretSaturn/TNLS
You can try a demo of Snakepath that bridges Secret VRF into EVMs here: vrfdemo.secretsaturn.net
This documentation was taken from https://fortress-labs.gitbook.io/snakepath and the curtesy of Leor Fishman.
Last modified 2d ago