isSignedByIssuer

suspend fun isSignedByIssuer(): Boolean

Whether the signature on this grant is issuer's, over exactly these terms. A grant whose terms — any byte of the signed layout: its subject, its scope, its expiry — changed after signing answers false. The signature bytes themselves are another matter: see the note on malleability above.

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


suspend fun isSignedByIssuer(scheme: KeyScheme): Boolean

isSignedByIssuer, checked in scheme rather than always in KeyScheme.P256. A room's GrantTrust passes the room's own DeviceKeyStore.keyScheme.