Skip to content

Instantly share code, notes, and snippets.

@LCamel
Created March 15, 2023 02:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LCamel/c96e9cad37fc3c8fe01bd488d04a1822 to your computer and use it in GitHub Desktop.
Save LCamel/c96e9cad37fc3c8fe01bd488d04a1822 to your computer and use it in GitHub Desktop.
Poseidon hash with 7 inputs ?
% node
Welcome to Node.js v16.15.1.
Type ".help" for more information.
> var a = require("circomlibjs")
undefined
> a.poseidon_gencontract.createCode(1).length / 2
6858
> a.poseidon_gencontract.createCode(2).length / 2
9756
> a.poseidon_gencontract.createCode(6).length / 2
23654
> a.poseidon_gencontract.createCode(7).length / 2
Uncaught Error: Assertion failed
at Contract.dup (/Users/lcamel/vc/PoseidonHashTests/circomlibjs-0.0.8/node_modules/circomlibjs/src/evmasm.js:177:19)
at mix (/Users/lcamel/vc/PoseidonHashTests/circomlibjs-0.0.8/node_modules/circomlibjs/src/poseidon_gencontract.js:82:23)
at Object.createCode (/Users/lcamel/vc/PoseidonHashTests/circomlibjs-0.0.8/node_modules/circomlibjs/src/poseidon_gencontract.js:153:5)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment