Verifies the X-Umis-Command of a request against the exact body text. In this order: the input, the signature (a
trusted key, typumis-relay-cmd+jwt), the hash of the body (bh, a difference is SIGNATURE_INVALID), the relay
(aud must be listed), the lifetime (exp - iat at most 30 s), the clock (iat at most skewSeconds ahead,
now before exp + skew) and the replay store (a jti is accepted once). A structure, algorithm or typ the relay
does not know is MALFORMED; a key that is not trusted is SIGNATURE_INVALID. It never throws.
At most eight trusted keys are tried per command, the key named by kid first, then the others in the order given; a
command signed by a key beyond the eighth that no kid names is SIGNATURE_INVALID.
The replay id is relay:<jti>, remembered until exp + skew; it is claimed last, so a command refused for another
reason is not used up. A replay store without its own clock learns the time from this call.
Verifies the
X-Umis-Commandof a request against the exact body text. In this order: the input, the signature (a trusted key,typumis-relay-cmd+jwt), the hash of the body (bh, a difference is SIGNATURE_INVALID), the relay (audmust be listed), the lifetime (exp - iatat most 30 s), the clock (iatat mostskewSecondsahead,nowbeforeexp + skew) and the replay store (ajtiis accepted once). A structure, algorithm ortypthe relay does not know is MALFORMED; a key that is not trusted is SIGNATURE_INVALID. It never throws.At most eight trusted keys are tried per command, the key named by
kidfirst, then the others in the order given; a command signed by a key beyond the eighth that nokidnames is SIGNATURE_INVALID.The replay id is
relay:<jti>, remembered untilexp + skew; it is claimed last, so a command refused for another reason is not used up. A replay store without its own clock learns the time from this call.