Setup
The test verifies a locally signed ledger sequence and then changes row contents, signatures, order, or chain references. It also checks the verifier’s explicit treatment of latest-head freshness.
Observed result
The original signed chain verifies. Tampered rows and broken linkage fail verification. The verifier reports latestHeadVerified: false because a valid partial chain cannot show that the server returned its newest state. The runnable case is TestVerifyLedgerRows in the Go SDK ledger tests.
These checks use a generated test signing key and local SQLite state. Independent checkpoints and separate ledger operators require additional evaluation.
SDK example: Run the ledger-chain-tampering case in the SDK source tree.