Skip to content

Function signed::write_package

zaun_community_protocol::signed::write_package · Function

pub fn write_package(header: &Signed<BotPackage>, manifest: &[u8], component: &[u8]) -> Result<Vec<u8>, EncodeError>

Writes a .zbot file from a signed header and its parts. The caller computed the header’s hashes from these exact manifest and component bytes.

EncodeError::OverLimit for a part over its limit.

Full rustdoc page