You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
### What
Expose `prng_reseed`, `u64_in_inclusive_range` and `vec_shuffle` in the
SDK.
### Why
Exposing the PRNG functions in the SDK allows users to utilize
randomness provided by the host in their smart contracts.
### Known limitations
N/A
Close#969
-----
I added tests for `sha256` and `verify_sig_ed25519` while I was in here.
Let me know if those changes should be moved to a separate PR. I
considered adding a PRNG module separate from the `crypto` module. I
decided to keep them under `crypto` because there are only three
functions. Also this is also similar `getRandomValues` is a function
implemented within the [Web Crypto
API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Crypto_API) in
browsers.
---------
Co-authored-by: Leigh McCulloch <351529+leighmcculloch@users.noreply.github.com>
There are some new host functions that should surface in the SDK now.
The text was updated successfully, but these errors were encountered: