|
| 1 | +<fdd-container extension=".fdd"> |
| 2 | + <script type="application/vc+json" id="fdd-data"> |
| 3 | + { |
| 4 | + "@context": [ |
| 5 | + "https://www.w3.org/2018/credentials/v1", |
| 6 | + "https://www.w3.org/2018/credentials/examples/v1" |
| 7 | + ], |
| 8 | + "type": ["VerifiableCredential"], |
| 9 | + "issuer": "did:web:firstnational.example", |
| 10 | + "issuanceDate": "2026-04-11T00:00:00Z", |
| 11 | + "credentialSubject": { |
| 12 | + "bankName": "First National Bank", |
| 13 | + "accountHolder": "Jordan M. Castillo", |
| 14 | + "accountNumber": "••••••7821", |
| 15 | + "accountType": "Personal Checking", |
| 16 | + "statementPeriod": "March 1–31, 2026", |
| 17 | + "openingBalance": "4,218.44", |
| 18 | + "closingBalance": "3,601.17", |
| 19 | + "totalCredits": "5,200.00", |
| 20 | + "totalDebits": "5,817.27", |
| 21 | + "transactions": [ |
| 22 | + { "date": "03/01", "description": "Opening Balance", "amount": "", "balance": "4,218.44", "type": "balance" }, |
| 23 | + { "date": "03/03", "description": "Direct Deposit — Acme Corp Payroll", "amount": "+2,600.00", "balance": "6,818.44", "type": "credit" }, |
| 24 | + { "date": "03/05", "description": "Rent — AutoPay Clearwater Apartments", "amount": "-1,450.00", "balance": "5,368.44", "type": "debit" }, |
| 25 | + { "date": "03/07", "description": "Whole Foods Market", "amount": "-112.34", "balance": "5,256.10", "type": "debit" }, |
| 26 | + { "date": "03/10", "description": "Netflix Subscription", "amount": "-15.99", "balance": "5,240.11", "type": "debit" }, |
| 27 | + { "date": "03/12", "description": "ATM Withdrawal — 5th Ave Branch", "amount": "-200.00", "balance": "5,040.11", "type": "debit" }, |
| 28 | + { "date": "03/17", "description": "Direct Deposit — Acme Corp Payroll", "amount": "+2,600.00", "balance": "7,640.11", "type": "credit" }, |
| 29 | + { "date": "03/18", "description": "Chase Credit Card Payment", "amount": "-1,800.00", "balance": "5,840.11", "type": "debit" }, |
| 30 | + { "date": "03/22", "description": "Amazon.com", "amount": "-67.94", "balance": "5,772.17", "type": "debit" }, |
| 31 | + { "date": "03/25", "description": "Spotify", "amount": "-10.99", "balance": "5,761.18", "type": "debit" }, |
| 32 | + { "date": "03/28", "description": "Utility — ComEd Electric", "amount": "-98.01", "balance": "5,663.17", "type": "debit" }, |
| 33 | + { "date": "03/29", "description": "Gas Station — Shell", "amount": "-62.00", "balance": "5,601.17", "type": "debit" }, |
| 34 | + { "date": "03/31", "description": "Transfer to Savings", "amount": "-2,000.00", "balance": "3,601.17", "type": "debit" }, |
| 35 | + { "date": "03/31", "description": "Closing Balance", "amount": "", "balance": "3,601.17", "type": "balance" } |
| 36 | + ] |
| 37 | + }, |
| 38 | + "proof": { |
| 39 | + "type": "Ed25519Signature2020", |
| 40 | + "created": "2026-04-01T00:00:00Z", |
| 41 | + "proofPurpose": "assertionMethod", |
| 42 | + "verificationMethod": "did:web:firstnational.example#key-1", |
| 43 | + "signatureValue": "EXAMPLE_SIGNATURE_REPLACE_WITH_REAL_VALUE_AFTER_fdd-sign_pack" |
| 44 | + } |
| 45 | + } |
| 46 | + </script> |
| 47 | + |
| 48 | + <script type="application/json" id="user-notes"> |
| 49 | + { |
| 50 | + "tags": [] |
| 51 | + } |
| 52 | + </script> |
| 53 | + |
| 54 | + <template shadowrootmode="open" bind="#fdd-data, #user-notes"> |
| 55 | + <style> |
| 56 | + * { box-sizing: border-box; margin: 0; padding: 0; } |
| 57 | + .stmt { max-width: 820px; margin: 2rem auto; font-family: 'Segoe UI', system-ui, sans-serif; color: #1e293b; } |
| 58 | + .header { background: linear-gradient(135deg, #1e3a5f, #0ea5e9); color: white; padding: 2rem; border-radius: 8px 8px 0 0; display: flex; justify-content: space-between; align-items: flex-end; } |
| 59 | + .bank-name { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; } |
| 60 | + .header-right { text-align: right; font-size: 0.85rem; opacity: 0.9; line-height: 1.6; } |
| 61 | + .summary { display: grid; grid-template-columns: repeat(4, 1fr); background: #f8fafc; border: 1px solid #e2e8f0; border-top: none; } |
| 62 | + .summary-item { padding: 1rem; border-right: 1px solid #e2e8f0; } |
| 63 | + .summary-item:last-child { border-right: none; } |
| 64 | + .summary-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: #64748b; margin-bottom: 0.25rem; } |
| 65 | + .summary-value { font-size: 1.1rem; font-weight: 700; color: #0f172a; } |
| 66 | + .summary-value.green { color: #16a34a; } |
| 67 | + .summary-value.red { color: #dc2626; } |
| 68 | + table { width: 100%; border-collapse: collapse; font-size: 0.875rem; border: 1px solid #e2e8f0; border-top: none; } |
| 69 | + th { background: #1e293b; color: #e2e8f0; padding: 0.6rem 1rem; text-align: left; font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; } |
| 70 | + td { padding: 0.6rem 1rem; border-bottom: 1px solid #f1f5f9; } |
| 71 | + tr:hover td { background: #f8fafc; } |
| 72 | + tr.type-balance td { background: #f1f5f9; font-weight: 600; color: #334155; } |
| 73 | + tr.type-credit td { color: #15803d; } |
| 74 | + tr.type-credit .amt { font-weight: 700; } |
| 75 | + tr.type-debit .amt { color: #dc2626; } |
| 76 | + .balance-col { font-family: monospace; text-align: right; } |
| 77 | + .footer { padding: 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-top: none; border-radius: 0 0 8px 8px; font-size: 0.75rem; color: #94a3b8; display: flex; justify-content: space-between; } |
| 78 | + </style> |
| 79 | + <div class="stmt"> |
| 80 | + <div class="header"> |
| 81 | + <div> |
| 82 | + <div class="bank-name">{{bankName}}</div> |
| 83 | + <div style="font-size:0.85rem;margin-top:0.25rem;opacity:0.9;">Account Statement</div> |
| 84 | + </div> |
| 85 | + <div class="header-right"> |
| 86 | + <div>{{accountHolder}}</div> |
| 87 | + <div>{{accountType}} · {{accountNumber}}</div> |
| 88 | + <div>Period: {{statementPeriod}}</div> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + |
| 92 | + <div class="summary"> |
| 93 | + <div class="summary-item"> |
| 94 | + <div class="summary-label">Opening Balance</div> |
| 95 | + <div class="summary-value">${{openingBalance}}</div> |
| 96 | + </div> |
| 97 | + <div class="summary-item"> |
| 98 | + <div class="summary-label">Total Credits</div> |
| 99 | + <div class="summary-value green">+${{totalCredits}}</div> |
| 100 | + </div> |
| 101 | + <div class="summary-item"> |
| 102 | + <div class="summary-label">Total Debits</div> |
| 103 | + <div class="summary-value red">-${{totalDebits}}</div> |
| 104 | + </div> |
| 105 | + <div class="summary-item"> |
| 106 | + <div class="summary-label">Closing Balance</div> |
| 107 | + <div class="summary-value">${{closingBalance}}</div> |
| 108 | + </div> |
| 109 | + </div> |
| 110 | + |
| 111 | + <table> |
| 112 | + <thead> |
| 113 | + <tr><th>Date</th><th>Description</th><th style="text-align:right">Amount</th><th style="text-align:right">Balance</th></tr> |
| 114 | + </thead> |
| 115 | + <tbody> |
| 116 | + {{#each transactions}} |
| 117 | + <tr class="type-{{type}}"> |
| 118 | + <td>{{date}}</td> |
| 119 | + <td>{{description}}</td> |
| 120 | + <td class="balance-col amt">{{amount}}</td> |
| 121 | + <td class="balance-col">${{balance}}</td> |
| 122 | + </tr> |
| 123 | + {{/each}} |
| 124 | + </tbody> |
| 125 | + </table> |
| 126 | + |
| 127 | + <div class="footer"> |
| 128 | + <span>Issued by {{bankName}} · did:web:firstnational.example · Cryptographically Verified</span> |
| 129 | + <span>This statement is a Formatted Data Document (.fdd) — tamper-evident and machine-readable.</span> |
| 130 | + </div> |
| 131 | + </div> |
| 132 | + </template> |
| 133 | +</fdd-container> |
0 commit comments