Giter VIP home page Giter VIP logo

lit-tornado's Introduction

Lit Tornado: A Mixer App Powered by Lit Protocol

Introduction

Lit Tornado is a mixer app designed to facilitate confidential transactions, similar to Tornado Cash, but with a significant innovation - it utilizes Lit Protocol instead of zero-knowledge proofs. This innovative approach leverages the power of Lit Actions and PKPs to validate off-chain computations on-chain, providing a similar privacy level as zero-knowledge proofs but without the associated high computational and implementation costs.

Why Lit Protocol?

In traditional mixer apps like Tornado Cash, zero-knowledge proofs are employed to ensure transaction privacy. However, these proofs can be computationally expensive and complex to implement. Lit Protocol offers a unique solution to this problem. By utilizing Lit Actions and PKPs, we can validate off-chain computations on-chain, ensuring transaction privacy without the need for zero-knowledge proofs. This approach significantly reduces computational and implementation costs while maintaining a high privacy level.

How It Works

With Lit Tornado, users can make deposits in a manner similar to Tornado Cash, with the deposit mechanism functioning the same way. The difference lies in how withdrawals are processed. In Lit Tornado, we employ Lit Actions and PKPs to validate transactions, ensuring that the commitment generated from the user's secret and nullifier is included in the smart contract's Merkle tree. This process maintains user privacy, as the target of the proof is not disclosed. Additionally, to prevent the sender's information from being revealed during withdrawals, we use a relayer. This relayer is also powered by Lit Actions and PKPs, simplifying the process and further enhancing user privacy.

Implementation Comparison: From Zero-Knowledge Proofs to Lit Actions

Zero-Knowledge Proof Circuit and Lit Action Comparison:

This comparison clearly showcases the innovative approach we took in migrating from complex zero-knowledge proofs to the streamlined and efficient process using Lit Actions and PKPs.

Smart Contract Comparison:

At first glance, the two functions may appear almost identical. However, Tornado Cash's verifyProof is for zero-knowledge proof, whereas Lit Tornado's verifyMessage is for signature verification. This results in a significant difference in computation costs.

Lit Action Relayer: A Strong Caution on Security

The transaction content is created on the client side, and the Lit Action Relayer simply signs it. This is entirely insecure because, in a fully secure implementation, the relayer should validate the content of the transaction before signing it. Our implementation is meant solely for demonstration and does not uphold the security measures necessary for real-world applications.

Live Demo

Click here to access the live demo.

ETHGlobal Showcase

Learn more about our project and its journey in the ETHGlobal hackathon by visiting our showcase page.

Scroll📜

We have deployed our smart contract on Scroll Sepolia network.

Smart Contract Code

Our smart contract code can be found and verified here.

Working Demo on Scroll Sepolia

You can also experience our working demo on Scroll Sepolia here.

lit-tornado's People

Contributors

enu-kuro avatar

Forkers

akshayacode

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.