pub fn verify_internal_work(
token: &str,
controller: &VerifyingKey,
expected_aud: &str,
now: i64,
) -> Result<InternalWorkClaims>Expand description
Verify a work order against the PINNED controller key (never a CA key source) and bind it to one expected instance audience.
Pinned-alg Ed25519 only; typ must be exactly INTERNAL_WORK_JWT_TYP;
the declared kid must name the pinned key (invariant I2); freshness and
the hard lifetime bound are enforced here.