Jack Edwards
Jack Edwards
I'm having some difficulty compiling to WASM using the `dist-build/wasm32-wasi.sh` script in the `stable` branch. * Ubuntu 20.04. * Fresh installs of `make` and `clang` through `apt`. * Installed `zig`...
Installing a runtime did the trick. I am referring to output in my project's `.csproj` file like this: ``` ``` However, when I make a call to `randombytes_buf` through the...
> Libsodium requires either the emscripten or wasi environments, as it's not even possible to generate random numbers in standalone WebAssembly. [Source](https://github.com/jedisct1/libsodium/discussions/1145) If this comment still describes the current state...
https://github.com/dotnet/runtime/issues/74352
There has been some discussion on the linked issue. Sounds complicated. Will you elaborate on how we get from `arc4random` to `randombytes`? I think I understand that `arc4random` is a...
Seconded. I added an issue on the main libsodium repo asking if their nuget package could contain a binary for webassembly, which should be possible now. To be honest I'm...
I made some progress in another .NET wrapper/repo. https://github.com/ektrah/libsodium-core/issues/87 https://github.com/ektrah/libsodium-core/pull/88
> This allows the ValueOf consumer to decide whether Validate should throw exceptions, or TryValidate should just fail silently; or whether both should append one or more validation errors to...
I was probably about to encounter the same problem. I'd like to use this library in the browser as well.
> Linking a WASI implementation would be the best way to go. And there has to be ways to do that in .NET. Is this what you are referring to...