Skip to main content

append_use

Function append_use 

Source
pub fn append_use(j: &Journal, rec: ApprovalUse) -> Result<Head, JournalError>
Expand description

Append an ApprovalUse to the journal. The caller MUST set previous_record_digest to the current head’s digest on the incoming record; we re-validate before write. record_digest is computed from the canonical form and stamped on the stored record.

Returns the new head’s index and digest.