GithubHelp home page GithubHelp logo

upfeng1 / lambdaworks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lambdaclass/lambdaworks

1.0 0.0 0.0 2.25 MB

The library for kids who wanna learn how to do SNARKs and learn other cryptographic stuff too

Home Page: https://lambdaclass.github.io/lambdaworks/

License: Apache License 2.0

Rust 97.75% Nix 0.04% Makefile 0.09% Metal 2.10% Dockerfile 0.02%

lambdaworks's Introduction

LambdaWorks

Telegram Chat codecov

From the heights of these towers of fields, forty centuries of mathematics look down on us. The library for kids who wanna learn how to do SNARKs and learn other cryptographic stuff too.

FqJmqwtWABozHi_

If you use Lambdaworks libraries in your research projects, please cite them using the following template:

@software{Lambdaworks,
  author={Lambdaworks contributors},
  title={Lambdaworks},
  url={https://github.com/lambdaclass/lambdaworks},
  year={2023}
}

Building blocks

  • Finite Field Algebra
  • Elliptic curve models
  • Elliptic curve operations
  • Arithmetization schemes
  • Polynomial commitment schemes
  • PIOP
  • Cryptographic tools
  • Advanced tools: aggregation, recursion, accumulation
  • Protocols
  • Gadgets

Blocks

Finite Field Algebra

  • Big integer representation
  • Basic algebra: addition, multiplication, subtraction, inversion, square root (Tonelli–Shanks)
  • Field extensions
  • Number theoretic transform
  • Polynomial operations
  • Fast Fourier Transform
  • Montgomery and Barrett

Elliptic curve models

  • BLS12-381 (H)
  • BLS12-377 (H)
  • secp256k1 (H)
  • Ed25519 (H)
  • Jubjub (M)
  • BN254 (M)
  • Pasta: Pallas and Vesta (L)
  • Forms:
  1. Affine (H)
  2. Projective (H)
  3. Montgomery (M)
  4. Twisted Edwards (H)
  5. Jacobi (L)

Elliptic curve operations

  • Add, double, scalar multiplication.
  • Multiscalar multiplication (Pippenger)
  • Weyl, Tate and Ate pairings.

Arithmetization

  • R1CS - gadgets (H)
  • AIR (M)
  • Plonkish (H)
  • ACIR (L)

Polynomial commitment schemes

  • KZG and variants
  • Hashing
  • Inner product arguments
  • Dory (L)

PIOP/PCS

  • Groth16
  • Plonk
  • Marlin
  • FRI
  • Pseudorandom generator
  • Hashes
  • Blake2
  • Keccak
  • Poseidon
  • Pedersen
  • Encryption schemes
  • AES
  • ChaCha20
  • Rescue
  • ElGamal

Protocol

  • Fiat-Shamir

Gadgets

📊 Benchmarks

To run the benchmarks you will need cargo-criterion, to install do:

cargo install cargo-criterion

Run the complete benchmark suite with:

make benchmarks

Run a specific benchmark suite with cargo, for example to run the one for field:

make benchmark BENCH=field

You can check the generated HTML report in target/criterion/reports/index.html

lambdaworks's People

Contributors

unbalancedparentheses avatar maurotoscano avatar schouhy avatar ajgara avatar diegokingston avatar ilitteri avatar jrchatruc avatar pablodeymo avatar franfiuba avatar xqft avatar aminarria avatar gabrielbosio avatar gianfrancobazzani avatar entropidelic avatar iavecilla avatar tcoratger avatar aleksandermisztal avatar elfantasma avatar jsign avatar mpaulucci avatar techiepriyansh avatar ritikkhulbe avatar igamigo avatar josepchetrit12 avatar omahs avatar

Stargazers

 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.