pub type Sealer<'a> = dyn Fn(Option<(u64, String)>, Option<i64>) -> Pin<Box<dyn Future<Output = Result<AuditRecord, A2aError>> + Send + 'a>> + Send + Sync + 'a;Available on crate feature
audit only.Expand description
Seals one record onto a chain, for AuditStore::append_next.
Called with the chain’s head, (seq, hash) of its last record (None for
an empty chain), and the store’s own clock in Unix milliseconds when the
store keeps one every writer shares. Returns the record with its seq,
prev, time and hash set. A store calls it and does not look inside:
choosing the position and computing the hash is
AuditLog’s job, so every store gets it right in one
place.