fn check_onetime_key(
should_be_fallback: ShouldBeFallback,
otk: &SignedKey,
) -> Result<(), InputJsonError>Expand description
Performs various checks on a [OneTimeKey].
ยงErrors
This function returns a BadJson error for any of the following cases:
- The
fallbackfield is missing or not equal totruewhen the key is supposed to be a fallback key. - The
fallbackfield is present and set totruewhen the key is supposed to be a one-time key.