JwsFlattened
function JwsFlattened(aKey: tJoseKey; const aPayload: tBytes; const aUrl: string; const aNonce: string; const aKid: string): string;
JwsFlattened builds the flattened JWS JSON serialisation ACME posts.
When aKid is empty the protected header embeds the full public JWK, which is what newAccount and a certificate-key revocation require; otherwise it carries the account URL as "kid". An empty aNonce omits the member, for the inner JWS of a key-change request. An empty aPayload produces the empty payload of a POST-as-GET.