Skip to content

builder

Structs

  • EventBuilder - Builds signed [ExecutionEvent]s from [AuditPayload]s.

Enums


firma_sidecar::audit::builder::EventBuilder

Section titled “firma_sidecar::audit::builder::EventBuilder”

Struct

Builds signed [ExecutionEvent]s from [AuditPayload]s.

Loaded once at startup with an ECDSA P-256 signing key. Each call to build produces a new event with an aevt TypeID backed by UUID v7, a nanosecond-precision timestamp, and an ECDSA signature covering all preceding fields.

Methods:

  • fn with_sandbox_id(self: Self, sandbox_id: Option<SandboxId>) -> Self - Sets the per-run sandbox identity stamped on every emitted

Trait Implementations:

  • Debug
    • fn fmt(self: &Self, f: & mut fmt::Formatter) -> fmt::Result

firma_sidecar::audit::builder::EventBuilderError

Section titled “firma_sidecar::audit::builder::EventBuilderError”

Enum

Errors that can occur when constructing an [EventBuilder].

Variants:

  • InvalidKey(String) - The PEM-encoded signing key could not be parsed.

Traits: Error

Trait Implementations:

  • Display
    • fn fmt(self: &Self, __formatter: & mut ::core::fmt::Formatter) -> ::core::fmt::Result
  • Debug
    • fn fmt(self: &Self, f: & mut $crate::fmt::Formatter) -> $crate::fmt::Result