UMIS SDK
    Preparing search index...

    Function signJws

    • 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.

      Parameters

      • i: {
            header: { jwk?: EcPublicJwk; kid?: string; typ: string } & Record<
                string,
                unknown,
            >;
            payload: object;
            signer: Signer;
        }

      Returns Promise<string>