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
Hey 👋 I think the rationale is/was that theoretically, another spec could define an algorithm (as per section 3.1) with operations which return a different type. That being said, I think that would obviously be a bad idea, and we may want to get rid of this extensibility anyway (as per #286 (comment)). After we get rid of that, we could make these types more specific, too 👍
Currently most of them use just
Promise<any>
, but many algorithms always returns the same type of value:encrypt
:ArrayBuffer
decrypt
:ArrayBuffer
sign
:ArrayBuffer
verify
:boolean
generateKey
:(CryptoKey or CryptoKeyPair)
I guess it's
any
for extensibility but I doubt the above methods will have different return values, or can they?The text was updated successfully, but these errors were encountered: