Module ssi::jws[][src]

Structs

Functions

Decode JWS parts (JOSE header, payload, and signature) into useful values. The payload argument is bytes since it may be unencoded if the b64:false header parameter is used; otherwise it must be a base64url-encoded string. Header and signature are always expected to be base64url-encoded. “crit” (critical) header parameters are checked and disallowed if unrecognized/unsupported.

Recover a JWK from a JWS and payload, if the algorithm supports that (such as ES256K-R).

Verify a JWS with detached payload. Returns the JWS header on success.

Recover a key from a signature and message, if the algorithm supports this. (e.g. ES256K-R)