WebAssembly / wasi-crypto

WASI Cryptography API Proposal
162 stars 25 forks source link

feat: add policy to relevant key-based functions #78

Closed rjzak closed 11 months ago

rjzak commented 1 year ago

Is this about that you had in mind @npmccallum, @jedisct1?

Addresses #58.

Signed-off-by: Richard Zak richard@profian.com

jedisct1 commented 1 year ago

Not sure that this is it.

In #58, there's a set of functions that don't inherit any existing handle. So we can't get back to the global context.

A context (or "policy") should be added to them.

This is a different thing than the get_*_metadata() function that we would add to public, secret and key pairs.