Skip to content

Commit 947ab1a

Browse files
author
Corey B
committed
feat: real did:web identity, re-signed examples, tabbed sandbox UI (Source/Log/Output)
1 parent 17ab53a commit 947ab1a

5 files changed

Lines changed: 693 additions & 687 deletions

File tree

.well-known/did.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"@context": [
3+
"https://www.w3.org/ns/did/v1",
4+
"https://w3id.org/security/suites/ed25519-2020/v1"
5+
],
6+
"id": "did:web:spuds0588.github.io:open-fdd",
7+
"verificationMethod": [
8+
{
9+
"id": "did:web:spuds0588.github.io:open-fdd#key-1",
10+
"type": "Ed25519VerificationKey2020",
11+
"controller": "did:web:spuds0588.github.io:open-fdd",
12+
"publicKeyMultibase": "z302a300506032b6570032100e41f58f75e8a34b09ec5f404a697a2263012c5e4442941163965bb95b21a3810"
13+
}
14+
],
15+
"assertionMethod": [
16+
"did:web:spuds0588.github.io:open-fdd#key-1"
17+
],
18+
"authentication": [
19+
"did:web:spuds0588.github.io:open-fdd#key-1"
20+
]
21+
}

examples/bank_statement_v2.fdd

Lines changed: 109 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
"https://www.w3.org/2018/credentials/v1",
66
"https://www.w3.org/2018/credentials/examples/v1"
77
],
8-
"type": ["VerifiableCredential"],
9-
"issuer": "did:web:firstnational.example",
10-
"issuanceDate": "2026-04-11T00:00:00Z",
8+
"type": [
9+
"VerifiableCredential"
10+
],
11+
"issuer": "did:web:spuds0588.github.io:open-fdd",
12+
"issuanceDate": "2026-04-12T04:28:27.881Z",
1113
"credentialSubject": {
1214
"bankName": "First National Bank",
1315
"accountHolder": "Jordan M. Castillo",
@@ -19,28 +21,112 @@
1921
"totalCredits": "5,200.00",
2022
"totalDebits": "5,817.27",
2123
"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" }
24+
{
25+
"date": "03/01",
26+
"description": "Opening Balance",
27+
"amount": "",
28+
"balance": "4,218.44",
29+
"type": "balance"
30+
},
31+
{
32+
"date": "03/03",
33+
"description": "Direct Deposit — Acme Corp Payroll",
34+
"amount": "+2,600.00",
35+
"balance": "6,818.44",
36+
"type": "credit"
37+
},
38+
{
39+
"date": "03/05",
40+
"description": "Rent — AutoPay Clearwater Apartments",
41+
"amount": "-1,450.00",
42+
"balance": "5,368.44",
43+
"type": "debit"
44+
},
45+
{
46+
"date": "03/07",
47+
"description": "Whole Foods Market",
48+
"amount": "-112.34",
49+
"balance": "5,256.10",
50+
"type": "debit"
51+
},
52+
{
53+
"date": "03/10",
54+
"description": "Netflix Subscription",
55+
"amount": "-15.99",
56+
"balance": "5,240.11",
57+
"type": "debit"
58+
},
59+
{
60+
"date": "03/12",
61+
"description": "ATM Withdrawal — 5th Ave Branch",
62+
"amount": "-200.00",
63+
"balance": "5,040.11",
64+
"type": "debit"
65+
},
66+
{
67+
"date": "03/17",
68+
"description": "Direct Deposit — Acme Corp Payroll",
69+
"amount": "+2,600.00",
70+
"balance": "7,640.11",
71+
"type": "credit"
72+
},
73+
{
74+
"date": "03/18",
75+
"description": "Chase Credit Card Payment",
76+
"amount": "-1,800.00",
77+
"balance": "5,840.11",
78+
"type": "debit"
79+
},
80+
{
81+
"date": "03/22",
82+
"description": "Amazon.com",
83+
"amount": "-67.94",
84+
"balance": "5,772.17",
85+
"type": "debit"
86+
},
87+
{
88+
"date": "03/25",
89+
"description": "Spotify",
90+
"amount": "-10.99",
91+
"balance": "5,761.18",
92+
"type": "debit"
93+
},
94+
{
95+
"date": "03/28",
96+
"description": "Utility — ComEd Electric",
97+
"amount": "-98.01",
98+
"balance": "5,663.17",
99+
"type": "debit"
100+
},
101+
{
102+
"date": "03/29",
103+
"description": "Gas Station — Shell",
104+
"amount": "-62.00",
105+
"balance": "5,601.17",
106+
"type": "debit"
107+
},
108+
{
109+
"date": "03/31",
110+
"description": "Transfer to Savings",
111+
"amount": "-2,000.00",
112+
"balance": "3,601.17",
113+
"type": "debit"
114+
},
115+
{
116+
"date": "03/31",
117+
"description": "Closing Balance",
118+
"amount": "",
119+
"balance": "3,601.17",
120+
"type": "balance"
121+
}
36122
]
37123
},
38124
"proof": {
39125
"type": "Ed25519Signature2020",
40-
"created": "2026-04-01T00:00:00Z",
126+
"created": "2026-04-12T04:28:27.883Z",
41127
"proofPurpose": "assertionMethod",
42-
"verificationMethod": "did:web:firstnational.example#key-1",
43-
"signatureValue": "EXAMPLE_SIGNATURE_REPLACE_WITH_REAL_VALUE_AFTER_fdd-sign_pack"
128+
"verificationMethod": "did:web:spuds0588.github.io:open-fdd#key-1",
129+
"signatureValue": "HD4kZWfbRiXWmG94FaI1WyKPjJLah9Ebtb+kYrU7GXVlsOb3z8Lxq9U0o4fuozvhwfaGuwjkvBHl/BhCLQ38DA=="
44130
}
45131
}
46132
</script>
@@ -52,6 +138,7 @@
52138
</script>
53139

54140
<template shadowrootmode="open" bind="#fdd-data, #user-notes">
141+
55142
<style>
56143
* { box-sizing: border-box; margin: 0; padding: 0; }
57144
.stmt { max-width: 820px; margin: 2rem auto; font-family: 'Segoe UI', system-ui, sans-serif; color: #1e293b; }
@@ -129,5 +216,6 @@
129216
<span>This statement is a Formatted Data Document (.fdd) — tamper-evident and machine-readable.</span>
130217
</div>
131218
</div>
219+
132220
</template>
133-
</fdd-container>
221+
</fdd-container>

examples/legal_contract.fdd

Lines changed: 31 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
"https://www.w3.org/2018/credentials/v1",
66
"https://www.w3.org/2018/credentials/examples/v1"
77
],
8-
"type": ["VerifiableCredential"],
9-
"issuer": "did:web:hartwell-law.example",
10-
"issuanceDate": "2026-04-11T00:00:00Z",
8+
"type": [
9+
"VerifiableCredential"
10+
],
11+
"issuer": "did:web:spuds0588.github.io:open-fdd",
12+
"issuanceDate": "2026-04-12T04:28:27.888Z",
1113
"credentialSubject": {
1214
"documentTitle": "Consulting Services Agreement",
1315
"documentId": "HSL-2026-0041",
@@ -29,18 +31,34 @@
2931
"compensation": "$8,500/month retainer, billed on the 1st of each month. Hourly overage rate: $450/hour.",
3032
"governingLaw": "State of Illinois",
3133
"clauses": [
32-
{ "number": "1", "title": "Term", "text": "This Agreement shall commence on the Effective Date and continue for one (1) year unless terminated earlier." },
33-
{ "number": "2", "title": "Confidentiality", "text": "Both parties agree to maintain the confidentiality of all proprietary information disclosed during the engagement." },
34-
{ "number": "3", "title": "Termination", "text": "Either party may terminate this Agreement with thirty (30) days written notice." },
35-
{ "number": "4", "title": "Governing Law", "text": "This Agreement shall be governed by the laws of the State of Illinois." }
34+
{
35+
"number": "1",
36+
"title": "Term",
37+
"text": "This Agreement shall commence on the Effective Date and continue for one (1) year unless terminated earlier."
38+
},
39+
{
40+
"number": "2",
41+
"title": "Confidentiality",
42+
"text": "Both parties agree to maintain the confidentiality of all proprietary information disclosed during the engagement."
43+
},
44+
{
45+
"number": "3",
46+
"title": "Termination",
47+
"text": "Either party may terminate this Agreement with thirty (30) days written notice."
48+
},
49+
{
50+
"number": "4",
51+
"title": "Governing Law",
52+
"text": "This Agreement shall be governed by the laws of the State of Illinois."
53+
}
3654
]
3755
},
3856
"proof": {
3957
"type": "Ed25519Signature2020",
40-
"created": "2026-04-11T00:00:00Z",
58+
"created": "2026-04-12T04:28:27.888Z",
4159
"proofPurpose": "assertionMethod",
42-
"verificationMethod": "did:web:hartwell-law.example#key-1",
43-
"signatureValue": "EXAMPLE_SIGNATURE_REPLACE_WITH_REAL_VALUE_AFTER_fdd-sign_pack"
60+
"verificationMethod": "did:web:spuds0588.github.io:open-fdd#key-1",
61+
"signatureValue": "HuZG30SseNW9Cf3c+j4BoIq6/70XRTJplYb2jpe5Gsn1XrKDFmVsVN/SLOvZt+753OxnRh8y1/b8Byxmzam9AA=="
4462
}
4563
}
4664
</script>
@@ -54,6 +72,7 @@
5472
</script>
5573

5674
<template shadowrootmode="open" bind="#fdd-data, #user-notes">
75+
5776
<style>
5877
* { box-sizing: border-box; margin: 0; padding: 0; }
5978
.doc { max-width: 760px; margin: 2rem auto; padding: 2.5rem; background: #fff; border: 1px solid #d1d5db; font-family: 'Times New Roman', Georgia, serif; color: #1a1a1a; }
@@ -137,5 +156,6 @@
137156
Governing Law: {{governingLaw}} · This document is cryptographically signed. Issuer: did:web:hartwell-law.example
138157
</div>
139158
</div>
159+
140160
</template>
141-
</fdd-container>
161+
</fdd-container>

examples/medical_lab_result.fdd

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@
55
"https://www.w3.org/2018/credentials/v1",
66
"https://www.w3.org/2018/credentials/examples/v1"
77
],
8-
"type": ["VerifiableCredential"],
9-
"issuer": "did:web:valleymedical.example",
10-
"issuanceDate": "2026-04-11T00:00:00Z",
8+
"type": [
9+
"VerifiableCredential"
10+
],
11+
"issuer": "did:web:spuds0588.github.io:open-fdd",
12+
"issuanceDate": "2026-04-12T04:28:27.886Z",
1113
"credentialSubject": {
1214
"patientName": "Alexandra Rivera",
1315
"dateOfBirth": "1987-03-22",
@@ -17,20 +19,56 @@
1719
"collectionDate": "2026-04-08",
1820
"reportDate": "2026-04-10",
1921
"results": [
20-
{ "test": "Hemoglobin (HGB)", "value": "13.8", "unit": "g/dL", "referenceRange": "12.0–16.0", "flag": "Normal" },
21-
{ "test": "White Blood Cell Count", "value": "9.2", "unit": "K/uL", "referenceRange": "4.5–11.0", "flag": "Normal" },
22-
{ "test": "Platelet Count (PLT)", "value": "142", "unit": "K/uL", "referenceRange": "150–400", "flag": "Low" },
23-
{ "test": "Glucose (Fasting)", "value": "118", "unit": "mg/dL", "referenceRange": "70–99", "flag": "High" },
24-
{ "test": "Cholesterol Total", "value": "201", "unit": "mg/dL", "referenceRange": "<200", "flag": "Borderline" },
25-
{ "test": "HDL Cholesterol", "value": "62", "unit": "mg/dL", "referenceRange": ">40", "flag": "Normal" }
22+
{
23+
"test": "Hemoglobin (HGB)",
24+
"value": "13.8",
25+
"unit": "g/dL",
26+
"referenceRange": "12.0–16.0",
27+
"flag": "Normal"
28+
},
29+
{
30+
"test": "White Blood Cell Count",
31+
"value": "9.2",
32+
"unit": "K/uL",
33+
"referenceRange": "4.5–11.0",
34+
"flag": "Normal"
35+
},
36+
{
37+
"test": "Platelet Count (PLT)",
38+
"value": "142",
39+
"unit": "K/uL",
40+
"referenceRange": "150–400",
41+
"flag": "Low"
42+
},
43+
{
44+
"test": "Glucose (Fasting)",
45+
"value": "118",
46+
"unit": "mg/dL",
47+
"referenceRange": "70–99",
48+
"flag": "High"
49+
},
50+
{
51+
"test": "Cholesterol Total",
52+
"value": "201",
53+
"unit": "mg/dL",
54+
"referenceRange": "<200",
55+
"flag": "Borderline"
56+
},
57+
{
58+
"test": "HDL Cholesterol",
59+
"value": "62",
60+
"unit": "mg/dL",
61+
"referenceRange": ">40",
62+
"flag": "Normal"
63+
}
2664
]
2765
},
2866
"proof": {
2967
"type": "Ed25519Signature2020",
30-
"created": "2026-04-10T12:00:00Z",
68+
"created": "2026-04-12T04:28:27.886Z",
3169
"proofPurpose": "assertionMethod",
32-
"verificationMethod": "did:web:valleymedical.example#key-1",
33-
"signatureValue": "EXAMPLE_SIGNATURE_REPLACE_WITH_REAL_VALUE_AFTER_fdd-sign_pack"
70+
"verificationMethod": "did:web:spuds0588.github.io:open-fdd#key-1",
71+
"signatureValue": "hrFWVQ03c9lflDzjzxdr1rRb43R2+H+rgK8LlcbE/YbZ1ZetACkfOR/g+nCw1J1er7o1oz935mcQv1WKy0VSCQ=="
3472
}
3573
}
3674
</script>
@@ -42,6 +80,7 @@
4280
</script>
4381

4482
<template shadowrootmode="open" bind="#fdd-data, #user-notes">
83+
4584
<style>
4685
* { box-sizing: border-box; margin: 0; padding: 0; }
4786
body { font-family: 'Segoe UI', system-ui, sans-serif; }
@@ -112,5 +151,6 @@
112151
Issuer: did:web:valleymedical.example
113152
</div>
114153
</div>
154+
115155
</template>
116-
</fdd-container>
156+
</fdd-container>

0 commit comments

Comments
 (0)