arnaucube 58639462ea Update 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`
2020-12-25 13:48:09 +01:00
2019-07-08 14:08:04 +02:00
2020-03-26 19:24:20 +01:00
2018-10-21 19:51:38 +02:00
2020-11-26 07:38:39 +01:00
2020-11-26 07:38:39 +01:00
2020-10-05 10:18:06 +02:00

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
No description provided
Readme 5.9 MiB
Languages
Circom 73.9%
JavaScript 26.1%