GithubHelp home page GithubHelp logo

ritikkhulbe / lambdaworks Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lambdaclass/lambdaworks

0.0 0.0 0.0 195 KB

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

License: Apache License 2.0

Rust 99.79% Nix 0.07% Makefile 0.10% Dockerfile 0.04%

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.

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: agreggation, 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 benchmark

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

cargo criterion --bench field

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

lambdaworks's People

Contributors

ajgara avatar aminarria avatar diegokingston avatar elfantasma avatar franfiuba avatar gianfrancobazzani avatar iavecilla avatar igamigo avatar ilitteri avatar jrchatruc avatar jsign avatar maurotoscano avatar pablodeymo avatar ritikkhulbe avatar schouhy avatar unbalancedparentheses avatar xqft 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.