Skip to main content
. 2026 Sep 20;26(18):5960. doi: 10.3390/s26185960
Algorithm 4 Merkle-Batch Audit Anchoring
Require: evidence queue Q, batch size B, flush interval Tflush
1: while gateway is running do
2:       collect ℓi=H(enc(hi,Ri,Decisioni,reasoni)) into buffer E
3:        if |E|≥B or elapsed ≥Tflush then
4:              root← MerkleRoot(E)
5:              tx← SignnskG(anchor,root,|E|,[tstart,tend])
6:              SubmitAsync(L,tx) ▹ non-blocking; edge path never waits
7:              persist E and proofs off-chain; E←∅
8:        end if
9: end while