Truly independent web browser
enum KeyType { "public", "private", "secret" };
// https://wicg.github.io/webcrypto-modern-algos/#subtlecrypto-interface-keyusage
enum KeyUsage { "encrypt", "decrypt", "sign", "verify", "deriveKey", "deriveBits", "wrapKey", "unwrapKey", "encapsulateKey", "encapsulateBits", "decapsulateKey", "decapsulateBits" };
// https://w3c.github.io/webcrypto/#cryptokey-interface
[SecureContext,Exposed=(Window,Worker),Serializable,ImplementedIn=Rust]
interface CryptoKey {
[ImplementedAs=bindings_type] readonly attribute KeyType type;
readonly attribute boolean extractable;
[ReturnsJSValue] readonly attribute object algorithm;
[ReturnsJSValue] readonly attribute object usages;
};