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
There are some constraints that come with WASI modules. They are similar to system calls: the number of functions should be as small as possible, and they should be generic and future-proof rather than specific. Even at the expense of performance. Breaking changes would be complicated and would break all existing applications.
Parameters or return values that are not primitive types should generally be handles. This is especially true for secrets, as the API can also be used in a HSM-like context, where the secrets are only accessible by the runtime, not directly by applications.
The interfaces themselves are described in a language called witx.
Activity
armfazh commentedon Sep 1, 2023
How do we start sketching the specification for (V)OPRFs?
jedisct1 commentedon Sep 1, 2023
Hi Armando!
First, take a look at the existing modules.
There are some constraints that come with WASI modules. They are similar to system calls: the number of functions should be as small as possible, and they should be generic and future-proof rather than specific. Even at the expense of performance. Breaking changes would be complicated and would break all existing applications.
Parameters or return values that are not primitive types should generally be handles. This is especially true for secrets, as the API can also be used in a HSM-like context, where the secrets are only accessible by the runtime, not directly by applications.
The interfaces themselves are described in a language called
witx.The witx files for the current modules can be found here: https://github.com/WebAssembly/wasi-crypto/tree/main/witx/witx-0.10
So, in order to add a new module for {P,V}OPRFs, a new
wasi_ephemeral_crypto_oprf.witxfile should be added there.We can set up a meeting to discuss all this if you like.