Browse Source

add poseidon comments and refactorings

master
poma 4 years ago
parent
commit
fabc586fea
No known key found for this signature in database GPG Key ID: BA20CB01FE165657
3 changed files with 100 additions and 99 deletions
  1. +6
    -95
      circuits/poseidon.circom
  2. +94
    -0
      circuits/poseidon_constants.circom
  3. +0
    -4
      src/poseidon_gencontract.js

+ 6
- 95
circuits/poseidon.circom
File diff suppressed because it is too large
View File


+ 94
- 0
circuits/poseidon_constants.circom
File diff suppressed because it is too large
View File


+ 0
- 4
src/poseidon_gencontract.js

@ -23,10 +23,6 @@ function createCode(nInputs) {
const nRoundsF = N_ROUNDS_F; const nRoundsF = N_ROUNDS_F;
const nRoundsP = N_ROUNDS_P[t - 2]; const nRoundsP = N_ROUNDS_P[t - 2];
// const nRoundsF = 2;
// const nRoundsP = 2;
const C = new Contract(); const C = new Contract();
function saveM() { function saveM() {

Loading…
Cancel
Save