Coder Social home page Coder Social logo

vivijj / tachyon Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kroma-network/tachyon

0.0 0.0 0.0 22.41 MB

Modular ZK(Zero Knowledge) backend accelerated by GPU

License: MIT License

Shell 0.04% JavaScript 0.01% C++ 86.38% Python 0.68% C 1.59% Objective-C 0.44% Rust 0.27% TypeScript 0.50% Objective-C++ 1.01% Smarty 1.95% Starlark 7.14%

tachyon's Introduction







Overview

Tachyon is a Modular ZK Backend, powered by GPU.

Design Goals

  1. General Purpose: A versatile ZK library empowers developers to implement any proving scheme with minimal effort, often enhancing developer productivity. To create a general-purpose backend, aligning the code structure as closely as possible with the algebraic structure is paramount.
  2. Easy to Use: Achieving widespread adoption is essential for the success of any product. Consequently, one of the key focal points of the Tachyon project is to include offering packages for various programming languages and runtimes.
  3. Blazing Fast: Tachyon's foremost requirement is speed, and not just any speed, but blazing speed! This entails Tachyon delivering exceptional performance on both CPU and GPU platforms.
  4. GPU Interoperability: Tachyon's code is designed to be compatible with both CPU and GPU in the majority of scenarios.

List of Features

Symbol Definitions:

  • โœ”๏ธ Currently supported.
  • ๐Ÿ—๏ธ Partially implemented or is under active construction.
  • โŒ Not currently supported.

Finite Fields

CPU GPU
BabyBear โœ”๏ธ โœ”๏ธ
BinaryFields โœ”๏ธ โœ”๏ธ
Goldilocks โœ”๏ธ โœ”๏ธ
Mersenne-31 โœ”๏ธ โœ”๏ธ
KoalaBear โœ”๏ธ โœ”๏ธ

Elliptic Curves

CPU GPU
BN254 โœ”๏ธ โœ”๏ธ
BLS12-381 โœ”๏ธ โœ”๏ธ
Secp256k1 โœ”๏ธ โœ”๏ธ
Pallas โœ”๏ธ โœ”๏ธ
Vesta โœ”๏ธ โœ”๏ธ

Commitment Schemes

CPU GPU
GWC โœ”๏ธ โŒ
SHPlonk โœ”๏ธ โŒ
FRI โœ”๏ธ โŒ
Pedersen โœ”๏ธ โŒ

Hashes

CPU GPU
Poseidon โœ”๏ธ โŒ
Poseidon2 โœ”๏ธ โŒ

Lookups

CPU GPU
Halo2 โœ”๏ธ โŒ

SNARKs

CPU GPU
Groth16 โœ”๏ธ โŒ
Halo2 โœ”๏ธ โŒ

Frontends

CPU GPU
Circom(groth16) โœ”๏ธ โŒ
Halo2 โœ”๏ธ โŒ

Roadmap

  • 2024Q1 - Enable producing the zkEVM proof.
  • 2024Q2 - Replace Halo2 with Tachyon in Kroma mainnet.
  • 2024Q3a - Implement and optimize Plonky3 in Tachyon.
  • 2024Q3b - Replace zkEVM with SP1 zkVM in Kroma mainnet.

Prerequisites

Bazel

Please follow the instructions here.

Ubuntu

sudo apt install libgmp-dev libomp-dev

Macos

brew install gmp libomp

Getting started

Build

bazel build --config {os} //...

Test

bazel test --config {os} //...

Check How To Build for more information.

Join Our Developer Community

We're thrilled to have you become a part of our community!

If your passion for Tachyon matches ours, we extend a warm invitation for you to join our developer community on Telegram. Ask questions, share insights, or simply stay informed on Tachyon's newest updates with other developers and the original team through our Telegram group. We hope to see you there!

Thank you for your keen interest in contributing to Tachyon! โœจ

tachyon's People

Contributors

chokobole avatar dongchangyoo avatar tomtaehoonkim avatar ashjeong avatar insun35 avatar batzor avatar lightscale-luke avatar gideokkim avatar leegwangwoon avatar enjoyooor avatar whoisgautxm avatar eltociear avatar simlecode avatar xiaoxianboy avatar

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.