From f69242eab91765b8f6d02850b83414f5d55ca1b6 Mon Sep 17 00:00:00 2001 From: KDean-GS1 Date: Fri, 10 Nov 2023 10:30:11 -0500 Subject: [PATCH 1/3] Refactored examples to use inclusion. --- ...ravel_with_minor_and_upgrade_examples.html | 147 +++++++++++++++++ index.html | 148 +----------------- 2 files changed, 149 insertions(+), 146 deletions(-) create mode 100644 focal/3_international_travel_with_minor_and_upgrade_examples.html diff --git a/focal/3_international_travel_with_minor_and_upgrade_examples.html b/focal/3_international_travel_with_minor_and_upgrade_examples.html new file mode 100644 index 0000000..e630a07 --- /dev/null +++ b/focal/3_international_travel_with_minor_and_upgrade_examples.html @@ -0,0 +1,147 @@ +
+

Focal Use Case: International Travel with Minor and Upgrade

+ +
+{
+      "@context": [
+            "https://w3id.org/credentials/v1",
+            "https://example.com/travel-vocab/v1"
+      ],
+      "id": "urn:uuid:9f6878c8-73c7-11e8-ab37-23a1a3504fd0",
+      "type": ["VerifiableCredential", "PassportCredential"],
+      /* gov't DID */
+      "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
+      "expires": "2028-01-01T00:00:00Z",
+      "claim": {
+            "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
+            "givenName": "Malathi",
+            "familyName": "Hamal",
+            "citizenship": "US",
+            /* any other claims made by gov't */
+      },
+      "proof": {/* signature by gov't */}
+}
+  
+ +
+{
+      "@context": [
+            "https://w3id.org/credentials/v1",
+            "https://example.com/travel-vocab/v1"
+      ],
+      "id": "urn:uuid:9f6878c8-73c7-11e8-ab37-23a1a3504fd0",
+      "type": ["VerifiableCredential", "PassportCredential"],
+      /* gov't DID */
+      "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
+      "expires": "2028-01-01T00:00:00Z",
+      "claim": {
+            "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
+            "passport": {
+                  "id": "urn:uuid:79c181dc-73c7-11e8-8c1f-2bb1fd2d268a",
+                  "type": "Passport",
+                  "traveler": {
+                        "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
+                        "givenName": "Malathi",
+                        "familyName": "Hamal",
+                        "citizenship": "US"
+                  },
+                  /* any other passport fields */
+            }
+      },
+      "proof": {/* signature by gov't */}
+}
+  
+ +
+{
+      "@context": [
+            "https://w3id.org/credentials/v1",
+            "https://example.com/travel-vocab/v1"
+      ],
+      "id": "urn:uuid:b306614c-73c7-11e8-b596-47e8c5ce9144",
+      "type": ["VerifiableCredential", "PassportCredential"],
+      /* gov't DID */
+      "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
+      "expires": "2020-01-01T00:00:00Z",
+      "claim": {
+            "id": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
+            "givenName": "Anand",
+            "familyName": "Hamal"
+            "citizenship": "US",
+            /* any other claims made by gov't */
+      },
+      "proof": {/* signature by gov't */}
+}
+  
+ +
+{
+      "@context": [
+            "https://w3id.org/credentials/v1",
+            "https://example.com/travel-vocab/v1"
+      ],
+      "id": "urn:uuid:05a47fe2-73c8-11e8-ac1e-7fe0051a1d75",
+      "type": ["VerifiableCredential", "BirthCertificate"],
+      "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
+      "expires": "2020-01-01T00:00:00Z",
+      "claim": {
+            "id": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
+            "citizenship": "US",
+            "birthDate": "2017-10-01T00:00:00Z",
+            "birthPlace": {
+                  "type": "Hospital",
+                  "address": {
+                        "type": "US address",
+                        "addressLocality": "Denver",
+                        "addressRegion": "CO",
+                        "postalCode": "80209",
+                        "streetAddress": "123 Main St."
+                  }
+            },
+            "givenName": "Anand",
+            "familyName": "Hamal",
+            "parent": [{
+                  "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
+                  "type": "Person",
+                  "givenName": "Malathi",
+                  "familyName": "Hamal",
+                  "maidenName": "Holla"
+                  }, {
+                  "id": "did:example:BgXRjB4RPrrsUVoVNaYNwzfznKsWep7AWrZkiyVcorEN",
+                  "type": "Person",
+                  "givenName": "Rajesh",
+                  "familyName": "Hamal"
+            }]
+      },
+      "proof": {/* signature by gov't */}
+}
+      
+ +
+{
+      "@context": [
+            "https://w3id.org/credentials/v1",
+            "https://example.com/travel-vocab/v1"
+      ],
+      "id": "urn:uuid:58c08196-73c6-11e8-b030-3bd8a829a356",
+      "type": ["VerifiableCredential", "ChildTravelPass"],
+      "issuer": "did:example:BgXRjB4RPrrsUVoVNaYNwzfznKsWep7AWrZkiyVcorEN",
+      "expires": "2018-07-01T00:00:00Z",
+      "claim": {
+            "id": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
+            "potentialAction": {
+                  "type": "TravelAction",
+                  "agent": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
+                  "participant": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
+                  "location": {
+                        "type": "Country",
+                        "address": {
+                              "addressCountry": "CA"
+                        }
+                  }
+            }
+      },
+      "proof": {/* signature by Rajesh proving control of DID */}
+}
+  
diff --git a/index.html b/index.html index ba1e198..a42d510 100644 --- a/index.html +++ b/index.html @@ -769,152 +769,8 @@

Terminology

Example Verifiable Credentials

-

Focal Use Case: International Travel with Minor

- -
-{
-  "@context": [
-    "https://w3id.org/credentials/v1",
-    "https://example.com/travel-vocab/v1"
-  ],
-  "id": "urn:uuid:9f6878c8-73c7-11e8-ab37-23a1a3504fd0",
-  "type": ["VerifiableCredential", "PassportCredential"],
-  /* gov't DID */
-  "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
-  "expires": "2028-01-01T00:00:00Z",
-  "claim": {
-    "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
-    "givenName": "Malathi",
-    "familyName": "Hamal",
-    "citizenship": "US",
-    /* any other claims made by gov't */
-  },
-  "proof": {/* signature by gov't */}
-}
-      
- -
-{
-  "@context": [
-    "https://w3id.org/credentials/v1",
-    "https://example.com/travel-vocab/v1"
-  ],
-  "id": "urn:uuid:9f6878c8-73c7-11e8-ab37-23a1a3504fd0",
-  "type": ["VerifiableCredential", "PassportCredential"],
-  /* gov't DID */
-  "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
-  "expires": "2028-01-01T00:00:00Z",
-  "claim": {
-    "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
-    "passport": {
-      "id": "urn:uuid:79c181dc-73c7-11e8-8c1f-2bb1fd2d268a",
-      "type": "Passport",
-      "traveler": {
-        "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
-        "givenName": "Malathi",
-        "familyName": "Hamal",
-        "citizenship": "US"
-      },
-      /* any other passport fields */
-    }
-  },
-  "proof": {/* signature by gov't */}
-}
-      
- -
-{
-  "@context": [
-    "https://w3id.org/credentials/v1",
-    "https://example.com/travel-vocab/v1"
-  ],
-  "id": "urn:uuid:b306614c-73c7-11e8-b596-47e8c5ce9144",
-  "type": ["VerifiableCredential", "PassportCredential"],
-  /* gov't DID */
-  "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
-  "expires": "2020-01-01T00:00:00Z",
-  "claim": {
-    "id": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
-    "givenName": "Anand",
-    "familyName": "Hamal"
-    "citizenship": "US",
-    /* any other claims made by gov't */
-  },
-  "proof": {/* signature by gov't */}
-}
-      
- -
-{
-  "@context": [
-    "https://w3id.org/credentials/v1",
-    "https://example.com/travel-vocab/v1"
-  ],
-  "id": "urn:uuid:05a47fe2-73c8-11e8-ac1e-7fe0051a1d75",
-  "type": ["VerifiableCredential", "BirthCertificate"],
-  "issuer": "did:example:CCnF3zFaXkPN4zB94XaomRdvw2zX3XHPVX3aExcgo6PV",
-  "expires": "2020-01-01T00:00:00Z",
-  "claim": {
-    "id": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
-    "citizenship": "US",
-    "birthDate": "2017-10-01T00:00:00Z",
-    "birthPlace": {
-      "type": "Hospital",
-      "address": {
-        "type": "US address",
-        "addressLocality": "Denver",
-        "addressRegion": "CO",
-        "postalCode": "80209",
-        "streetAddress": "123 Main St."
-      }
-    },
-    "givenName": "Anand",
-    "familyName": "Hamal",
-    "parent": [{
-      "id": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
-      "type": "Person",
-      "givenName": "Malathi",
-      "familyName": "Hamal",
-      "maidenName": "Holla"
-    }, {
-      "id": "did:example:BgXRjB4RPrrsUVoVNaYNwzfznKsWep7AWrZkiyVcorEN",
-      "type": "Person",
-      "givenName": "Rajesh",
-      "familyName": "Hamal"
-    }]
-  },
-  "proof": {/* signature by gov't */}
-}
-      
- -
-{
-  "@context": [
-    "https://w3id.org/credentials/v1",
-    "https://example.com/travel-vocab/v1"
-  ],
-  "id": "urn:uuid:58c08196-73c6-11e8-b030-3bd8a829a356",
-  "type": ["VerifiableCredential", "ChildTravelPass"],
-  "issuer": "did:example:BgXRjB4RPrrsUVoVNaYNwzfznKsWep7AWrZkiyVcorEN",
-  "expires": "2018-07-01T00:00:00Z",
-  "claim": {
-    "id": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
-    "potentialAction": {
-      "type": "TravelAction",
-      "agent": "did:example:8vFBbPrhBUyG6DEzVncBZpzBNsmRrbfsQKXQKPLskBCu",
-      "participant": "did:example:BcRisGnqV4QPb6bRmDCqEjyuubBarS1Y1nhDwxBMTXY4",
-      "location": {
-        "type": "Country",
-        "address": {
-          "addressCountry": "CA"
-        }
-      }
-    }
-  },
-  "proof": {/* signature by Rajesh proving control of DID */}
-}
-      
+
From 0b3daa2c0e264447c4322231917c72f1efe4f482 Mon Sep 17 00:00:00 2001 From: Kevin Dean Date: Fri, 10 Nov 2023 13:14:28 -0500 Subject: [PATCH 2/3] Added base for preview. --- index.html | 1 + 1 file changed, 1 insertion(+) diff --git a/index.html b/index.html index a42d510..b9b4dc1 100644 --- a/index.html +++ b/index.html @@ -1,6 +1,7 @@ + Verifiable Credentials Use Cases From 384ff61b29589c73868008c1252649f873f24e46 Mon Sep 17 00:00:00 2001 From: Kevin Dean Date: Fri, 10 Nov 2023 13:21:47 -0500 Subject: [PATCH 3/3] Removed base for preview. --- index.html | 1 - 1 file changed, 1 deletion(-) diff --git a/index.html b/index.html index b9b4dc1..a42d510 100644 --- a/index.html +++ b/index.html @@ -1,7 +1,6 @@ - Verifiable Credentials Use Cases