Skip to main content

encode_packlist

Function encode_packlist 

Source
pub fn encode_packlist(
    prev: Option<Hash>,
    packs: &[Hash],
) -> Result<Vec<u8>, PackListError>
Expand description

Serialise one packlist node: the MKPL/version guard header followed by the prev/packs body encoded with commonware-codec (idiomatic Option + Vec).

ยงErrors

PackListError::TooManyEntries if packs exceeds the cap.