Function ssb_validate::message::validate_ooo_message_hash_chain[][src]

pub fn validate_ooo_message_hash_chain<T: AsRef<[u8]>, U: AsRef<[u8]>>(
    message_bytes: T,
    previous_msg_bytes: Option<U>
) -> Result<()>

Check that an out-of-order message is valid.

It expects the messages to be the JSON encoded message of shape: {key: "", value: {...}}

This checks that:

This does not check:

previous_msg_bytes will be None only when message_bytes is the first message by that author.