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

webcrypto api (question) #32

Open
sublimator opened this issue May 8, 2023 · 3 comments
Open

webcrypto api (question) #32

sublimator opened this issue May 8, 2023 · 3 comments
Labels
documentation Improvements or additions to documentation question Further information is requested

Comments

@sublimator
Copy link
Contributor

Curious what the plans are with the webcrypto API given the proof needs more than simple scalar arithmetic to solve. Meaning you couldn't really construct a useful client without user-land JS to to implement Group/Scalar functions. Signing is just one small piece ?

@armfazh armfazh added documentation Improvements or additions to documentation question Further information is requested labels Aug 31, 2023
@armfazh
Copy link
Contributor

armfazh commented Aug 31, 2023

The initial proposal (found in webcrypto.md) tries to re-purpose the signing operation under a different algorithm name. Thus, webcrypto API suffers no changes.

As the protocol got more variants (POPRF and VOPRF), the webcrypto API may not cover all of them. Then, it is desirable to have a special API to deal with the oblivious-PRF functions from the specification.

One potential solution is defining a proper API in WASI crypto, instead of in the Webcrypto API. Certainly, we want to hear more about use cases, and users to motivate its integration in WASI (cc: @jedisct1).

@jedisct1
Copy link

jedisct1 commented Sep 1, 2023

Designing a nice generic API may be challenging, but support for OPRFs can definitely be added to the WASI-Crypto specification.

Not as a REQUIRED module, but as an optional one. At least, this will ensure that all implementations share the same API.

@jedisct1
Copy link

jedisct1 commented Sep 1, 2023

Note that the module can be promoted to REQUIRED later, depending on usage.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants