Skip to content

fix(example): verify locally logged audit CIDs - #439

Merged
M0nsxx merged 2 commits into
nirium-protocol:mainfrom
storm-beyndtech:fix/audit-forensic-export
Nov 22, 2026
Merged

M0nsxx merged 2 commits into
nirium-protocol:mainfrom
storm-beyndtech:fix/audit-forensic-export

Conversation

@storm-beyndtech

@storm-beyndtech storm-beyndtech commented Nov 21, 2026 •

Copy link
Copy Markdown
Contributor

Closes #426

Changes

  • Append each bridge anchor's CID, content hash, and optional signer to a local git-ignored anchors.jsonl.
  • Read that log in pnpm export and verify every CID with nirium-cli@latest verify --json. Report verified and failed counts, the reason for each failure, and a nonzero exit status on failure.
  • Add the example's tsconfig.json, offline tests for successful verification, changed records, invalid signatures, and log mismatch, and updated documentation.

Testnet evidence

I generated a new local Stellar testnet signing key for this run. Its public key is GBBQIOW2ACAHEGY6QJ7Z64ZMT4RDTUYH5ZC5HUV3CD72CWXMGPD5GUO2; the secret is in a git-ignored local .env and is not committed. Two non-personal placeholder events were posted to /webhook against https://nirium-agent.fly.dev with a wave11- tag.

  • QmdG5F3ZVF7WJHQzz9DUhcZSsCfRxbAn1cCWHVy36nb9B5: nirium verify --json reports verified: true, hash match, valid ed25519 signature.
  • QmTYLcQDYcbjd6FRtTX7F2LZqtP6wXUdrfEp5cNnnJcGAW: same result.

pnpm export output:

Verified: 2; failed: 0; total: 2
VERIFIED QmdG5F3ZVF7WJHQzz9DUhcZSsCfRxbAn1cCWHVy36nb9B5
VERIFIED QmTYLcQDYcbjd6FRtTX7F2LZqtP6wXUdrfEp5cNnnJcGAW
Report written to audit-verified-report.json

Checks

  • pnpm test: 8 passed, no network
  • pnpm typecheck: passed
  • npm run build in packages/sdk: passed (no SDK changes)
Nirium.audit.bridge.demo.2026-11-22.12-42-13.mp4

@drips-wave

drips-wave Bot commented Nov 21, 2026

Copy link
Copy Markdown

@storm-beyndtech Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

@M0nsxx M0nsxx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AI-assisted review (Claude)

Checked: CI green after fork approval; both CIDs (QmdG5F3Z…, QmTYLcQD…) verify with nirium-cli 3.2.7, hash match and valid ed25519 signature from the author's own testnet key GBBQIOW2…; no secrets committed, .env stays ignored. Approving.

@M0nsxx
M0nsxx merged commit 663773d into nirium-protocol:main Nov 22, 2026
21 checks passed
M0nsxx pushed a commit that referenced this pull request Nov 22, 2026
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Audit forensic bridge: make export re-check the CIDs it anchored (Audit Trail, testnet)

2 participants