# Function signed::verify_package

> Verifies the signature under the header's publisher key (`min_suite` 1) before anything else, then both hashes and the manifest's `app_id` and `version`. An all-zero signature is a

`zaun_community_protocol::signed::verify_package` · Function

```rust
pub fn verify_package(parsed: ParsedPackage, allow_unsigned: bool) -> Result<VerifiedPackage, PackageError>
```

Verifies the signature under the header's publisher key (`min_suite` 1) before anything
else, then both hashes and the manifest's `app_id` and `version`. An all-zero signature is
accepted only with `allow_unsigned`.

# Errors
`PackageError` naming the first failed check.

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