# Function signed::write_package

> 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.

`zaun_community_protocol::signed::write_package` · Function

```rust
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.

# Errors
`EncodeError::OverLimit` for a part over its limit.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/signed/bot_package/container/fn.write_package.html)
