Function: verifyRlt()
function verifyRlt(token, ctx): VerifyResult;
Defined in: verify.ts:83
Verify a compact-JWS Rasd License Token. Steps and reasons per §4.1:
- Bounds & shape (length ≤ 4096, exactly three non-empty base64url
segments, decodable JSON) ⇒
MALFORMED. - Header:
alg === "EdDSA",typ === "RLT",kidstring ≤ 32 chars — any otheralg(includingnone,HS256) or a wrongtyp⇒WRONG_TYP. - Key lookup:
kidunknown ⇒UNKNOWN_KID;kidrevoked ⇒REVOKED. - Ed25519 signature over the ASCII bytes of
header.payload⇒BAD_SIGNATURE. - Claims schema ⇒
SCHEMA;iss !== "rasd"⇒ISSUER. nbf > now + 300 s⇒NOT_YET_VALID(exp/graceare NOT validity conditions here — they drive the state machine, §5).- App binding against
apps[]⇒APP_MISMATCH(apps: []matches everything; a node host is never evaluated). { ok: true, claims, kid }.
Parameters
| Parameter | Type |
|---|---|
token | string |
ctx | VerifyContext |