Created
March 15, 2023 02:24
-
-
Save LCamel/c96e9cad37fc3c8fe01bd488d04a1822 to your computer and use it in GitHub Desktop.
Poseidon hash with 7 inputs ?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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