Skip to content

Implement cryptographically verifiable mint authorization log chain#263

Open
daree-dev wants to merge 1 commit intokellymusk:masterfrom
daree-dev:feature/mint-authorization-audit-chain
Open

Implement cryptographically verifiable mint authorization log chain#263
daree-dev wants to merge 1 commit intokellymusk:masterfrom
daree-dev:feature/mint-authorization-audit-chain

Conversation

@daree-dev
Copy link
Copy Markdown
Contributor

This PR adds a dedicated, cryptographically verifiable audit trail for cNGN mint authorizations.

Key features:

  • New append-only database table with hash chain verification
  • Mint action logging integrated into onramp processor and transaction monitor
  • Periodic chain integrity checks with critical security alerts
  • Immutable WORM-style storage enforced by database triggers

Changes include:

  • Migration: 20260401000000_mint_authorization_audit.sql
  • New module: src/audit/mint_authorization.rs
  • Updates to main.rs, onramp_processor.rs, transaction_monitor.rs

- Add new mint_authorization_logs table with append-only triggers
- Create MintAuthorizationService for hash-chain verified audit trail
- Integrate mint action logging into onramp processor and transaction monitor
- Add periodic chain verification with critical security alerts
@drips-wave
Copy link
Copy Markdown

drips-wave bot commented Mar 28, 2026

Hey @daree-dev! 👋 It looks like this PR isn't linked to any issue.

If this PR is for one of the issues assigned to you as part of a Wave, please link it to ensure your contribution is tracked properly. You can do this by adding a keyword to the PR description (e.g., Closes #123), or by clicking a button below:

Issue Title
#215 Mint Authorization Audit Trail & Tamper-Evident Logging Link to this issue

ℹ️ Learn more about linking PRs to issues

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