verify

suspend fun verify(grant: Grant, subject: DidKey, roomId: String, now: Long): GrantVerdict

The verdict on grant, presented by the device whose key is subject, to the room roomId, at now in epoch milliseconds. subject must be a key the presenter has proved it holds, not one it merely claims: the grant names a key, and is worth nothing to anyone without it.

Never throws on a bad grant: every defect is a verdict. It throws IllegalStateException only when this platform's cryptographic provider cannot run at all.