Verify our published total and our statement log (skeptical client)
verify_sum_logVerify Ed25519 signatures on sum-log heads and statement logs to confirm payment totals and detect any tampering or rewriting of history.
Instructions
Trust nothing you did not recompute. Verifies the Ed25519 signature on the current sum-log head (the Merkle-sum root over every counted payment and the total it commits to), optionally climbs one agent's proof from its leaf to the root and the whole total, reports how many of the previous head's leaves the current head declares unchanged, changed, removed and added, and verifies the statement log's signed tree head and, given the head you kept (tree_size, root_hash), the consistency proof that our statement history was not rewritten. Keep the heads it returns and pass them next time. Definitions sumlog.v1 and agent.statement.log.v1.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent | No | Optional: an agent token id whose proof to climb | |
| previous_head | No | Optional: the sum-log head you kept: { leaves, root } | |
| previous_statement_head | No | Optional: the statement-log head you kept: { tree_size, root_hash } |