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

Use of ed25519-dalek in wasm requires "wasm-bindgen" feature of getrandom crate #453

Open
vdods opened this issue Jun 28, 2022 · 0 comments

Comments

@vdods
Copy link
Contributor

vdods commented Jun 28, 2022

There is a runtime failure in getrandom in wasm target when using ed25519-dalek feature, which is fixed by adding

getrandom = { version = "0.1", features = ["wasm-bindgen"] }

to Cargo.toml. The problem is that this is only needed when the "ed25519-dalek" feature is used, and only for target_arch = "wasm32". I'm not quite sure how to specify this specific condition within Cargo.toml. Fortunately, adding the above line to my Cargo.toml does the trick, but ideally this could be specified within the ssi crate Cargo.toml.

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