Testing helpers¶
testing ¶
Explicitly non-production helpers for examples and host tests.
FixedClock ¶
SequentialIdentifiers ¶
Predictable identifiers for assertions; never use them in production.
RecordingEventSink ¶
Capture minimized runtime events in emission order.
EphemeralProtection ¶
Process-local test protection that loses all data on restart.
This helper provides real keyed commitments and keeps canonical payloads out of stored records, but it is not encryption, durable key custody, rotation, recovery, or a production protection service.
verify
async
¶
verify(*, proposal_reference: str, canonical_payload: bytes, commitment: KeyedCommitment) -> bool