Function compute_private_serialized_event_commitment
pub unconstrained fn compute_private_serialized_event_commitment(
serialized_event: BoundedVec<Field, 12>,
randomness: Field,
event_type_id: Field,
) -> Field
pub unconstrained fn compute_private_serialized_event_commitment(
serialized_event: BoundedVec<Field, 12>,
randomness: Field,
event_type_id: Field,
) -> Field
Unconstrained variant of compute_private_event_commitment 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.