Conversation
|
Thanks! I still don't completely understand how/why circomlibjs is supposed to be used? I've only seen it used for testing so far. I'll take a look at this early next week. |
|
@phated we use circomlibjs's hash functions, and will most likely rely on it for Ed25519 integration in the future. I'm sure we could have provided our own hash function implementation like dark forest does, but we didn't want to reinvent the wheel! If there is a better way to handle this I am certainly open your suggestions, but I have found this is an "easy" way to do things |
|
Are you using this in a repo? I get multiple errors loading
Ahh looks like the problem is that we're using an old version of circomlibjs... 0.0.8. Doesn't look like it's 1:1 compatible with this build scheme. |
|
Trying with the updated code (fully from your branch). Unminified: |
Currently, the circomlibjs repository only offers a .cjs rollup build. We have added options to create minified IIFE builds of the circomlibjs library that are compatible with an import using a script tag in an index.html header. This fix has been tested and works under webpack production bundling.