# Function crypto::verify

> Verifies `sig` over `message` with context `ctx` against `pk`.

`zaun_community_protocol::crypto::verify` · Function

```rust
pub fn verify(pk: &PublicKey, sig: &Signature, ctx: Context, message: &[u8], min_suite: u8) -> Result<(), VerifyError>
```

Verifies `sig` over `message` with context `ctx` against `pk`.

`min_suite` is the community's minimum suite, or `0x01` outside a community.

# Errors
`VerifyError` on a suite mismatch or downgrade, or when either component fails.

[Full rustdoc page](/docs/api/rust/zaun-community-protocol/zaun_community_protocol/crypto/composite/fn.verify.html)
