SEVN Assurance
Continuous, on-chain financial assurance powered by Chainlink CRE.
What it is
SEVN Assurance is a continuous, decentralized financial assurance platform built using Chainlink CRE.
Today, companies report quarterly and audits are delivered months after the fact. This creates systemic trust gaps in capital markets, where investors rely on delayed and retrospective information.
SEVN replaces periodic audit with continuous verification, bringing greater trust to capital markets like never before.
The platform performs automated three-way reconciliation across independent financial data sources (e.g., accounting systems, Stripe, and on-chain token records). It then runs AI-driven risk classification and publishes a cryptographically verifiable attestation on-chain.
At any time, an auditor or investor can trigger an assurance request using World ID verification. This writes a request to the blockchain, which triggers a Chainlink CRE workflow that:
- Fetches data from external APIs
- Reads on-chain records
- Reconciles discrepancies
- Applies AI-based risk scoring
- Encodes and submits an attestation on-chain
All results are published as tamper-resistant attestations, creating a real-time, verifiable assurance layer for financial systems.
This demonstrates how Chainlink CRE can power continuous audit, compliance automation, and capital markets infrastructure.
How it Works
SEVN Assurance is built as a full-stack, cross-chain system combining smart contracts, Chainlink CRE workflows, external financial APIs, and AI-based risk classification into a single decentralized execution pipeline.
The system is production-shaped and uses live financial and on-chain data from a real regulated Australian business, not dummy or mock data.
- Chainlink CRE Workflow (Core Orchestration Layer)
At the core is a 7-step TypeScript workflow built using @chainlink/cre-sdk.
The workflow includes:
- Log trigger from the AuditRequested event
- Confidential HTTP requests to authenticated backend endpoints
- Cross-chain EVM reads (Polygon Mainnet + Sepolia)
- Deterministic reconciliation compute step
- AI-based risk classification using Google Gemini
- ABI encoding of structured report data
- Final EVM write after DON consensus to publish an on-chain attestation
Execution was demonstrated using: cre workflow simulate --broadcast
This simulates DON execution and publishes real attestations to Ethereum Sepolia.
- Smart Contracts (Solidity + Foundry)
Two Solidity contracts were deployed on Ethereum Sepolia:
AuditGate.sol
- Integrates World ID Router for zero-knowledge human verification
- Emits AuditRequested event (CRE log trigger in production)
AuditAttestation.sol
- Implements Chainlink IReceiver interface
- Accepts payloads delivered via KeystoneForwarder after DON consensus
- Decodes 19 structured report fields
- Emits ReportPublished event
Contracts were built and tested using Foundry to ensure strict ABI consistency across all layers.
- Financial Reconciliation Backend (Next.js + Prisma + Postgres)
A production backend aggregates and reconciles live financial data:
- Pulls transactions from the real company platform API
- Pulls charge, refund, and fee data from Stripe
- Computes reconciliation match rates
Two authenticated endpoints are exposed to CRE:
- /api/cre/btx-truth
- /api/cre/stripe-truth
These are accessed via Chainlink Confidential HTTP to protect credentials.
The backend is deployed on Vercel.
- Cross-Chain On-Chain State Verification
Within the same CRE workflow execution, direct EVM reads are performed on Polygon Mainnet:
- totalSupply
- balanceOf
No bridges, mirrors, or cached copies are used. State is read cross-chain and reconciled before publishing the final attestation to Sepolia.
- AI Risk Classification
After reconciliation, structured data is sent to Google Gemini 2.5 Flash via HTTP.
Gemini returns:
- Deterministic risk classification (LOW / MEDIUM / HIGH)
- Human-readable explanation
Both are embedded directly into the on-chain attestation.
Prompts were optimized for determinism and CRE execution constraints.
- Frontend Application (React + Vite + ethers.js + World ID)
A single-page dashboard provides:
- MetaMask connection
- World ID zero-knowledge verification
- On-chain audit request submission
- Real-time visualization of the 7-step workflow
- Event polling for ReportPublished
- Decoding and rendering of the 19-field attestation payload
The UI reflects live on-chain execution and CRE workflow simulation.
Architecture Summary
SEVN Assurance integrates:
- Zero-knowledge identity gating
- Cross-chain EVM state reads
- Confidential HTTP external API ingestion
- Deterministic reconciliation logic
- AI-based risk scoring
- DON consensus execution
- On-chain attestation publication
This demonstrates how Chainlink CRE can power continuous, decentralized financial assurance across multiple systems and blockchains.
Links
Created by
- Steve Piek
- Victa Phu
- Noor Phu
- Elyse Bargwanna