mirror of
https://github.com/arnaucube/circomlib.git
synced 2026-02-06 18:56:43 +01:00
58639462eadb75b8f09639d6ef5333e8bb4d3c1c
mix to match reference implementation ver
Reference implementation: https://extgit.iaik.tugraz.at/krypto/hadeshash Tested with `sage code/poseidonperm_x5_254_3.sage` for inputs: `[1,2,0]`, equivalent to using `circomlib/poseidon.js` with inputs `[1,2]`, both return as result `11309872961022349216464221841186646423561022368884850929991258903497301047946` Tested with `sage code/poseidonperm_x5_254_5.sage` for inputs: `[1,2,3,4,0]`, equivalent to using `circomlib/poseidon.js` with inputs `[1,2,3,4]`, both return as result `18181515143627462196415302348515936346022476168236332098176009127325427112991`
CircomLib
Description
- This repository contains a library of circuit templates.
- All files are copyrighted under 2018 0KIMS association and part of the free software circom (Zero Knowledge Circuit Compiler).
- You can read more about the circom language in the circom documentation webpage.
Organisation
This respository contains 5 folders:
circuits: it contains the implementation of different cryptographic primitives in circom language.calcpedersenbases: set of functions in JavaScript used to find a set of points in Baby Jubjub elliptic curve that serve as basis for the Pedersen Hash.doc: it contains some circuit schemes in ASCII (must be opened with Monodraw, an ASCII art editor for Mac).src: it contains similar implementation of circuits in JavaScript.test: tests.
A description of the specific circuit templates for the circuit folder will be soon updated.
Description
Languages
Circom
73.9%
JavaScript
26.1%