Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: eddsa.verifyMiMCSponge #57

Open
johnson86tw opened this issue Jun 16, 2021 · 0 comments
Open

Error: eddsa.verifyMiMCSponge #57

johnson86tw opened this issue Jun 16, 2021 · 0 comments

Comments

@johnson86tw
Copy link

When I run this script:

console.log(eddsa.verifyMiMCSponge(msgHash, signature, pubKey));

First problem would happen in 'bigInt' with 'ReferenceError: bigInt is not defined'

code:

let Pright = babyJub.mulPointEscalar(A, hm.times(bigInt("8")));

After I change bigInt to BigInt, it would run error below:

/Users/howard/Desktop/circom-playground/node_modules/circomlib/src/eddsa.js:207
    let Pright = babyJub.mulPointEscalar(A, hm.times(BigInt("8")));
                                               ^

TypeError: hm.times is not a function
    at Object.verifyMiMCSponge (/Users/howard/Desktop/circom-playground/node_modules/circomlib/src/eddsa.js:207:48)
    at Object.<anonymous> (/Users/howard/Desktop/circom-playground/eddsa/js/index.js:28:19)

sorry, I can't really understand how these cryptography works under the hood.

@johnson86tw johnson86tw changed the title Error in ./src/eddsa.js Error: eddsa.verifyMiMCSponge Jun 18, 2021
piotr-roslaniec pushed a commit to piotr-roslaniec/circomlib that referenced this issue Sep 18, 2024
Fix compiler panic on exit modified variables not in env
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant