Skip to main content

Module commit_log

Module commit_log 

Enums§

DiscardReason
Why a reader discards an envelope from a commit-log topic. No variant carries entry or key bytes.

Constants§

COMMIT_LOG_AUTHOR_CONTEXT
Domain separation for installation signatures on commit-log entries.

Functions§

open_entry
Open an entry read from the commit-log topic of the conversation whose keys are keys and whose group id is group_id. Every length is checked first, then the signature under the conversation’s commit-log id, then the decryption. The decrypted entry must name group_id and a commit sequence id greater than 0 and below its envelope sequence id, with a valid installation signature. A failure discards this envelope only.
seal_entry
Seal a conversation’s entry for its commit-log topic, after the self-check. The entry’s protobuf encoding is the plaintext, so the same entry sealed twice gives the same bytes.
sign_entry_author
Bind an entry to the installation publishing it and to its commit-log topic.