Skip to content

feat(audit): integrate Nirium audit trail anchoring and verification for payouts - #8

Open
Santia2004 wants to merge 1 commit into
Fundable-Protocol:mainfrom
Santia2004:feat/nirium-audit-trail-adapter
Open

feat(audit): integrate Nirium audit trail anchoring and verification for payouts#8
Santia2004 wants to merge 1 commit into
Fundable-Protocol:mainfrom
Santia2004:feat/nirium-audit-trail-adapter

Conversation

@Santia2004

Copy link
Copy Markdown

Summary

Integrates an independent, domain-separated audit trail adapter for Fundable payout and stream settlements using Nirium's Audit Trail framework.

Changes

  • Added canonical settlement schema FundablePayoutAuditRecord.
  • Implemented deterministic canonical SHA-256 hashing (computeCanonicalAuditHash).
  • Added domain-separated attestation signing with prefix nirium-audit-v1:<sha256>.
  • Added anchorFundablePayout for external IPFS anchoring without modifying Soroban contracts or custody logic.
  • Implemented verifyAnchoredPayoutReceipt for independent verification by finance teams and external auditors.
  • Added comprehensive unit tests (src/audit/adapter.test.ts) and runnable verification example (examples/verify-anchored-payout.ts).

Verification

  • pnpm test: All unit tests passing.
  • pnpm typecheck: Type check clean.
  • pnpm verify: Full SDK pipeline passed.

@coderabbitai

coderabbitai Bot commented Aug 27, 2026

Copy link
Copy Markdown

Important

  • 🔍 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: de3c89fe-7834-4e9a-b7cc-9065dcd69f8f


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Santia2004

Copy link
Copy Markdown
Author

team! Just following up on this PR. It's fully ready for review with clean tests and no merge conflicts. Whenever you have a moment, could you please approve the workflow run and take a look? Let me know if you need any adjustments.

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.

1 participant