Signs payload as a compact ES256 JWS (RFC 7515). alg is always ES256. The header carries kid (the signer's,
unless one is given or a jwk is embedded instead) and jwk (reduced to its public members). Members of header
beyond typ, kid and jwk are copied as they are; crit is refused because verification refuses it.
Signs
payloadas a compact ES256 JWS (RFC 7515).algis always ES256. The header carrieskid(the signer's, unless one is given or ajwkis embedded instead) andjwk(reduced to its public members). Members ofheaderbeyondtyp,kidandjwkare copied as they are;critis refused because verification refuses it.