Problem loading @celo/identity WASM in browser #245
-
I'm trying to create a web-app that can interact with ODIS and the identity smart contracts to do phone number registration. Building on Josh's work there's already a node.js script that does this, and works on the server, here: https://github.com/jsaur/register-number/blob/web-app/index.js However, when attempting to import OdisUtils from @celo/identity in a web browsers, we run into an issue loading the blind-threshold-bls WASM module:
Based on this discord discussion: "A difficulty with this is that the @celo/identity package only includes the WASM builds for use in Node and ReactNative" If you alternatively want to make the calls from Django, that will require creating a new SDK. It's certainly possibly if you want to try it. The core cryptography code is implemented in Rust https://github.com/celo-org/celo-threshold-bls-rs and so will need interop to be created" |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 2 replies
-
Thanks for posting the details here @jsaur! |
Beta Was this translation helpful? Give feedback.
-
update, a workaround has been found: https://github.com/celo-org/SocialConnect/blob/main/privacy.md#web |
Beta Was this translation helpful? Give feedback.
update, a workaround has been found: https://github.com/celo-org/SocialConnect/blob/main/privacy.md#web