How sourik-work/certi_chain works
CertiChain Ledger lets institutions create and issue credentials, stores metadata and rendered assets on IPFS, anchors deterministic SHA-256 proof hashes in an EVM registry, and supports recipient and public verification. The graph follows the documented issuer, custom-template, storage, on-chain, and verification branches. Some feature links come from README claims because their implementation files were not sampled; those edges are cited to the README rather than inferred from module names.
Main entry points: IssuerDashboard.tsx Issuer dashboard · VerifyCertificate.tsx Verification portal · App.tsx React application · TemplateStudio.tsx Template studio
Components 24
Credential application
- React application
frontend/src/App.tsx - Issuer dashboard
frontend/src/pages/IssuerDashboard.tsx - Recipient dashboard
frontend/src/pages/RecipientDashboard.tsx - Wallet context
frontend/src/context/WalletContext.tsx
Template studio
- Template studio
frontend/src/components/template/TemplateStudio.tsx - Template state
frontend/src/hooks/useCustomTemplate.ts - Template analysis
frontend/src/lib/templateAnalysis.ts - OCR extraction
frontend/src/lib/ocrService.ts - AI analysis API
frontend/api/analyzeTemplate.ts - AI layout API
frontend/api/planLayout.ts
Proof and storage
- Certificate rendering
frontend/src/lib/renderCertificate.ts - Proof hashing
frontend/src/lib/hash.ts - Credential metadata
frontend/src/lib/customMetadataHelper.ts - IPFS pinning
frontend/src/lib/pinata.ts - Pinata proxy
frontend/api/pinJson.ts - IPFS network
EVM registry
- Registry access
frontend/src/hooks/useCertificateRegistry.ts - Certificate registry
frontend/src/contracts/src/CertificateRegistry.ts
Credential access
- Verification portal
frontend/src/pages/VerifyCertificate.tsx - Certificate preview
frontend/src/components/CertificatePreview.tsx - Custom certificate preview
frontend/src/components/CustomCertificatePreview.tsx
Other components
- Institutional issuer
- Credential recipient
- Public verifier
Connections 33
- Institutional issuer → React application: uses
README.md - Credential recipient → React application: uses
README.md - Public verifier → Verification portal: opens portal
README.md - React application → Issuer dashboard: routes to
frontend/src/App.tsx - React application → Recipient dashboard: routes to
frontend/src/App.tsx - React application → Verification portal: routes to
frontend/src/App.tsx - React application → Wallet context: provides context
frontend/src/App.tsx - Issuer dashboard → Wallet context: reads wallet
frontend/src/pages/IssuerDashboard.tsx - Issuer dashboard → Registry access: issues credentials
frontend/src/pages/IssuerDashboard.tsx - Issuer dashboard → Proof hashing: computes proof
frontend/src/pages/IssuerDashboard.tsx - Issuer dashboard → IPFS pinning: pins metadata
frontend/src/pages/IssuerDashboard.tsx - Issuer dashboard → Certificate rendering: renders artifact
frontend/src/pages/IssuerDashboard.tsx - Issuer dashboard → Credential metadata: resolves metadata
frontend/src/pages/IssuerDashboard.tsx - Issuer dashboard → Template studio: hosts studio
README.md - Template studio → Template state: edits template
- Template state → Template analysis: post-processes fields
frontend/src/hooks/useCustomTemplate.ts - OCR extraction → Template analysis: snaps boxes
frontend/src/lib/ocrService.ts - Template studio → AI analysis API: requests analysis
- Template studio → AI layout API: requests layout
- Template studio → OCR extraction: extracts text
- Certificate rendering → IPFS network: renders for pinning
- IPFS pinning → Pinata proxy: uses proxy
README.md - Pinata proxy → IPFS network: pins metadata
README.md - IPFS pinning → IPFS network: pins assets
README.md - Registry access → Wallet context: reads signer
frontend/src/hooks/useCertificateRegistry.ts - Registry access → Certificate registry: calls registry
README.md - Registry access → IPFS network: resolves stored metadata
- Verification portal → Registry access: checks proof
README.md - Verification portal → Proof hashing: validates integrity
README.md - Verification portal → IPFS network: reads payload
README.md - Verification portal → Certificate preview: shows certificate
- Verification portal → Custom certificate preview: shows rendered asset
README.md - Custom certificate preview → Credential metadata: resolves custom data
frontend/src/components/CustomCertificatePreview.tsx