F4 · Seal and Anchor: The Audit Proof

Seal signs the decision with ed25519 and the local Ledger chains it; Anchor carries the hash to Sui. The auditor verifies the proof without trusting your database or your word.

Core theory

A log can be edited; a signature cannot. Layer 05 (Seal) signs the decision-context pair locally with ed25519, and Layer 06 (Ledger) appends it to an append-only record whose hash chains to the previous entry. Changing one entry invalidates every later hash, and verification can be done offline.

Layer 07 (Anchor) periodically carries the root of that chain to the Sui blockchain. That turns local evidence into third-party-verifiable proof: the auditor compares the anchored hash with the presented record and detects any rewrite. It is the technical basis for SOX controls and for GDPR traceability: who acted, what was decided, under which policy, and when.

Key concepts

Sign a canonical form

Two JSON objects with the same keys in a different order produce different hashes. Canonicalise before signing: sorted keys, no whitespace, consistent numeric precision. Skip it and verification will fail at the worst possible moment.

The chain catches rewrites

Each entry includes the previous hash. Changing a decision from March invalidates everything after it. You do not need to trust your database; you need to prove nobody edited it.

Anchor the root, not every leaf

Sending every decision to Sui would be slow and expensive. The chain root is anchored in batches. An auditor compares that root with the record you hand over and detects divergence.

Where each half acts

Edge · 05 Seal + 06 Ledger — Signs the decision and chains it locally, even offline.

Core · 07 Anchor — Publishes the chain root on Sui for immutable third-party proof.

Case study

During an audit request about a 12,000 USD refund, the team presented the signed decision, the exact policy version applied and the hash anchored on Sui weeks earlier. The auditor verified the signature and compared the hash without access to the internal database. The finding moved from “insufficient evidence” to a tested control, and the team stopped reconstructing emails to justify an operation.

Hands-on lab

Prepare a verifiable evidence pack for a financial operation.

  1. Step 1 — Decision: pick one operation and gather intent, verdict, applied policy, actor and timestamp.
  2. Step 2 — Signature: define exactly what is signed and how the ed25519 signature is verified without relying on the origin server.
  3. Step 3 — Chain: describe how altering one entry breaks the hash of the following ones.
  4. Step 4 — Anchoring: explain what is sent to Sui, how often, and how an auditor compares the anchored hash with the presented record.

Best practices

Common mistakes

Signing the log string

Logs get formatted, truncated and reordered. The signature must cover the canonical structured object, not the line you printed to the console.

Storing only the auditId

The identifier leads you to the record but proves nothing by itself. If the record disappears, the auditId is a nice number.

Anchoring without verifying

Publishing a hash and never comparing it with the local record is theatre. Periodic verification is half the control.

Where the product stops

Anchor proves a record did not change after it was anchored. It does not prove the source data was correct. If the agent declared a false amount and policy approved it, the chain will preserve that error with an impeccable signature.

Resources

Validation

What gets anchored on Sui?

  1. Every individual decision
  2. The root of the record chain, in batches
  3. The agent's full prompt

Answer: The root of the record chain, in batches. Anchoring every leaf would be expensive. The root lets you verify the set and detect rewrites.

An auditor verifies an ed25519 signature. What does it prove?

  1. That the key holder produced the decision and it was not altered
  2. That the decision was financially correct
  3. That the payment executed

Answer: That the key holder produced the decision and it was not altered. The signature proves authorship and integrity. Business correctness is decided by policy and people.