Skip to main content

batch_verify_events_parallel

Function batch_verify_events_parallel 

Source
pub fn batch_verify_events_parallel(events: &[AuditEvent]) -> Result<()>
Expand description

Batch-verify event signatures with parallel canonical bytes computation.

Uses Rayon to parallelize the canonical bytes serialization across cores, then uses batch verification for signatures. This is optimal for large batches.

ยงPerformance

  • 100 events: ~1.5x faster than batch_verify_events
  • 1000 events: ~2-3x faster than batch_verify_events
  • Scales with available CPU cores