wasmCloud / interfaces

Deprecated: wasmCloud API interfaces: smithy IDLs and shared libraries
https://wasmcloud.github.io/interfaces/
Apache License 2.0
34 stars 22 forks source link

Numbergen RandomBytes Update #107

Closed andar1an closed 1 year ago

andar1an commented 1 year ago

Create an interface operation to allow users to generate a random number based on a defined input to indicate the number of bytes.

It is currently cumbersome to generate random numbers that are more than 32 Bytes. This operation will make it simple for a user to do so without chaining Numbergen calls.

Related PR

https://github.com/wasmCloud/wasmcloud-otp/pull/613

Release Information

Consumer Impact

As this is an addition and does not change any existing operations, there should be no impact to end users currently using the Numbergen provider.

Testing

Built on platform(s)

Tested on platform(s)

Unit Test(s)

Acceptance or Integration

Manual Verification

andar1an commented 1 year ago

I will do DCO signoff at the end in case I forget for more commits

andar1an commented 1 year ago

Incomplete but moving file out of draft for async help/feedback.

andar1an commented 1 year ago

The consensus from WasmCloud Wed on 26 Apr 2023 is to use a provider to generate cryptographically secure numbers, as the numbergen builtin can't and should not be used for crypto purposes.