Skip to main content

history_block

Function history_block 

Source
pub fn history_block<const P: usize>(
    session: b64,
    link: Link,
    acc: [b64; 4],
    rec: Record<P>,
) -> [b64; 16]
Expand description

One link of a history chain: 128 bytes, "RUB2-HIS" ‖ session ‖ view ‖ subject ‖ j ‖ flags ‖ h_j ‖ record view ‖ record instance ‖ record digest ‖ len ‖ value (P ≤ 4 words) ‖ 0, as big-endian SHA-512 words. flags is 1 for a valid record, 0 for an empty slot.