Spindle_http.JwkPublic keys as RFC 7517 writes them, of the kinds a signature is checked with here: RSA (RFC 7518 §6.3) of 2048 bits or more, which RFC 7518 §3.3 requires of RS256; EC on P-256 (RFC 7518 §6.2); and OKP on Ed25519 (RFC 8037 §2). A private member a key carries is not read.
match Jwk.set_of_string body with
| Ok keys -> Jws.verify jws ~keys
| Error why -> ...val kid : t -> string optionIts "kid": which key of a set a JWS names.
val alg : t -> string optionIts "alg", where it names the one algorithm it is for (RFC 7517 §4.4).
val of_string : string -> (t, string) Stdlib.resultOne key, as JSON. An Error says in words why it is no key of these kinds -- another "kty" or curve, a member its kind requires missing, a number that is not one, an RSA modulus under 2048 bits, a "use" other than "sig" -- and quotes nothing of it.
val verify : t -> signature:string -> string -> boolverify t ~signature input: whether signature signs input under t, by its kind's algorithm -- RS256, ES256 with signature its 64 octets R || S (RFC 7518 §3.4), or EdDSA.