> Aztec.nr API reference, v6.0.0 (mainnet and testnet). Index: https://docs.aztec.network/aztec-nr-api/v6.0.0/llms.txt

# Function compute_private_serialized_event_commitment

Module: `noir_aztec::event::event_interface`

```rust
pub unconstrained fn compute_private_serialized_event_commitment(
    serialized_event: BoundedVec<Field, 10>,
    randomness: Field,
    event_type_id: Field,
) -> Field
```

Unconstrained variant of [`compute_private_event_commitment`](/aztec-nr-api/v6.0.0/noir_aztec/event/event_interface/fn.compute_private_event_commitment.md) which takes the event in serialized form.

This function is unconstrained as the mechanism it uses to compute the commitment would be very inefficient in a constrained environment (due to the hashing of a dynamically sized array). This is not an issue as it is typically invoked when processing event messages, which is an unconstrained operation.
