isSignedByHost

suspend fun isSignedByHost(): Boolean

Whether the signature on wire is hostKey's over the layout. false, never a throw, for a bad signature or a hostKey whose point is not on the curve.

Throws

when this platform's cryptographic provider cannot run here.


suspend fun isSignedByHost(scheme: KeyScheme): Boolean

isSignedByHost, checked in scheme rather than always in KeyScheme.P256. A room passes its own DeviceKeyStore.keyScheme, so a room on the real scheme checks with ECDSA whatever was sent.