Module ssb_validate::message[][src]

Expand description

Functions for validating messages in the form of KVT (key, value, timestamp).

Structs

Data type representing a key-value message object, where the key is a hash of the value.

Functions

Batch validate a collection of messages, all by the same author, ordered by ascending sequence number, with no missing messages.

Batch validate a collection of out-of-order messages by multiple authors. No previous message checks are performed, meaning that missing messages are allowed, the collection is not expected to be ordered by ascending sequence number and the author is not expected to match between current and previous message.

Batch validate a collection of out-of-order messages by a single author. Checks of previous message hash and ascending sequence number are not performed, meaning that missing messages are allowed and the collection is not expected to be ordered by ascending sequence number.

Validate a message in relation to the previous message.

Validate an out-of-order message without checking the author.

Validate an out-of-order message.