diff --git a/index.html b/index.html index a2223bc0..d2f35291 100644 --- a/index.html +++ b/index.html @@ -1636,10 +1636,61 @@

Data URIs

- Detached Payload + COSE Examples

-

-TODO add COSE Sign1 detached payload examples +

+These examples rely on CBOR Diagnostic Notation. +Remember that all actual interchange always happens in the binary format. +

+ +
+{                                   / Protected                     /
+  1: -35,                           / Algorithm                     /
+  3: application/vc+ld+json,        / Content type                  /
+  4: h'177f12cb...1933d554',        / Key identifier                /
+  15: {                             / CWT Claims                    /
+    1: urn:example:123,             / Issuer                        /
+    2: urn:example:456,             / Subject                       /
+  },
+}
+        
+ +
+{                                   / Protected                     /
+  1: -35,                           / Algorithm                     /
+  3: application/vp+ld+json,        / Content type                  /
+  4: h'177f12cb...1933d554',        / Key identifier                /
+  15: {                             / CWT Claims                    /
+    1: urn:example:123,             / Issuer                        /
+    2: urn:example:456,             / Subject                       /
+  },
+}
+          
+ +
+18(                                 / COSE Sign 1                   /
+    [
+      h'a4013822...3a343536',       / Protected Header              /
+      {}                            / Unprotected Header            /
+      h'0fbe22a0...3a009118',       / Attached payload              /
+      h'09772c7f...5c4e736f'        / Signature                     /
+    ]
+)
+      
+ +
+18(                                 / COSE Sign 1                   /
+    [
+      h'a4013822...3a343536',       / Protected Header              /
+      {}                            / Unprotected Header            /
+      nil,                          / Detached payload              /
+      h'09772c7f...5c4e736f'        / Signature                     /
+    ]
+)
+      
+

+The payload can be either a credential or presentation as described in +Securing Verifiable Credentials.