From ce9ef28cf9a73dc919e5e0dc92892d8821d21c81 Mon Sep 17 00:00:00 2001 From: Markus Sabadello Date: Thu, 30 Jul 2020 16:32:11 +0200 Subject: [PATCH 1/4] Move "created" and "updated" from Core Properties to DID document metadata. Addresses #203 and #174. --- index.html | 85 +++++++++++++++++++----------------------------------- 1 file changed, 29 insertions(+), 56 deletions(-) diff --git a/index.html b/index.html index 260d6744..d7785030 100644 --- a/index.html +++ b/index.html @@ -2248,60 +2248,6 @@

Service Endpoints

-
-

Created

- -

-A DID document SHOULD include a created property. -

- -
-
created
-
-If a DID document includes a created property, the value -of the property MUST be a valid XML datetime value, as defined in section -3.3.7 of W3C XML Schema -Definition Language (XSD) 1.1 Part 2: Datatypes [[XMLSCHEMA11-2]]. This -datetime value MUST be normalized to UTC 00:00, as indicated by the trailing -"Z". -
-
- -
-{
-  "created": "2002-10-10T17:00:00Z"
-}
-      
-
- -
-

Updated

- -

-Standard metadata for identifier records includes a timestamp of the most recent -change. -

- -

-A DID document SHOULD include an updated property. -

- -
-
updated
-
-If a DID document includes an updated property, the value -of the property MUST follow the same formatting rules as the -created property (see Section ). -
-
- -
-{
-  "updated": "2016-10-17T02:41:00Z"
-}
-      
-
-
@@ -3435,6 +3381,33 @@

This specification defines the following common properties.

+
+
+created +
+
+DID document metadata SHOULD include a created property +to indicate the timestamp of the Create operation. +This property MAY not be supported by a given DID method. +The value of +the property MUST be a valid XML datetime value, as defined in section 3.3.7 of +W3C XML Schema Definition +Language (XSD) 1.1 Part 2: Datatypes [[XMLSCHEMA11-2]]. This datetime value +MUST be normalized to UTC 00:00, as indicated by the trailing "Z". +
+
+updated +
+
+DID document metadata SHOULD include an updated property +to indicate the timestamp of the last Update operation. +This property MAY not be supported by a given DID method. +The value of +the property MUST follow the same formatting rules as the created +property. +
+
+

@@ -3703,8 +3676,8 @@

-Non-repudiation is further supported if timestamps are included (see Sections - and ) and the target DLT +Non-repudiation is further supported if timestamps are included (see Section +) and the target DLT system supports timestamps.

From afd303ea36d8d241d93454fc455be07b5c582312 Mon Sep 17 00:00:00 2001 From: Markus Sabadello Date: Fri, 31 Jul 2020 12:36:27 +0200 Subject: [PATCH 2/4] Add examples for "create" and "update". --- index.html | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/index.html b/index.html index d7785030..159153db 100644 --- a/index.html +++ b/index.html @@ -3489,6 +3489,30 @@

]» +

+The next example demonstrates a JSON-encoded metadata structure that might be +used as DID document metadata to +describe timestamps of the DID document. +

+ +
+{
+  "created": "2002-10-10T17:00:00Z",
+  "updated": "2016-10-17T02:41:00Z"
+}
+        
+ +

+This example corresponds to a metadata structure of the following format: +

+ +
+«[
+  "created" → "2002-10-10T17:00:00Z",
+  "updated" → "2016-10-17T02:41:00Z"
+]»
+        
+ From 02a2465e2fa04193f590c53062bf9c01bda90c1c Mon Sep 17 00:00:00 2001 From: Markus Sabadello Date: Mon, 10 Aug 2020 15:30:09 +0200 Subject: [PATCH 3/4] Apply suggestion by @msporny Co-authored-by: Manu Sporny --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 159153db..32cc2b56 100644 --- a/index.html +++ b/index.html @@ -3492,7 +3492,7 @@

The next example demonstrates a JSON-encoded metadata structure that might be used as DID document metadata to -describe timestamps of the DID document. +describe timestamps associated with the DID document.


From 6663b3810595400190d94bebaf25e5851171895a Mon Sep 17 00:00:00 2001
From: Markus Sabadello 
Date: Mon, 10 Aug 2020 15:40:06 +0200
Subject: [PATCH 4/4] More meaningful example dates, suggested by @msporny

---
 index.html | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/index.html b/index.html
index 32cc2b56..fb2ecbbd 100644
--- a/index.html
+++ b/index.html
@@ -3497,8 +3497,8 @@ 

 {
-  "created": "2002-10-10T17:00:00Z",
-  "updated": "2016-10-17T02:41:00Z"
+  "created": "2019-03-23T06:35:22Z",
+  "updated": "2023-08-10T13:40:06Z"
 }
         
@@ -3508,8 +3508,8 @@

 «[
-  "created" → "2002-10-10T17:00:00Z",
-  "updated" → "2016-10-17T02:41:00Z"
+  "created" → "2019-03-23T06:35:22Z",
+  "updated" → "2023-08-10T13:40:06Z"
 ]»