From 99a0873510025f9adff38a40942e014337504a25 Mon Sep 17 00:00:00 2001 From: Markus Sabadello Date: Sat, 19 Oct 2019 23:54:01 +0400 Subject: [PATCH] Make "id" optional for services and public keys. Fix #47. * Make "id" optional for services and public keys. * Change MAY to SHOULD for public keys. * Change MAY to SHOULD for service endpoints. * Say "multiple" instead of "duplicate" entries. * Apply suggestion from @msporny. * Add comment about producing an error. * Address feedback at https://github.com/w3c/did-spec/pull/66#discussion_r335776271. --- index.html | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/index.html b/index.html index ebd638da..a6d0cd94 100644 --- a/index.html +++ b/index.html @@ -1249,9 +1249,15 @@

  • -Each public key MUST include id and type -properties, and exactly one value property. The array of public keys -MUST NOT contain duplicate entries with the same id. +Each public key SHOULD include an id property. The array +of public keys MUST NOT contain multiple entries with the same +id. A DID document processor MUST produce an error in that +case. +
  • + +
  • +Each public key MUST include a type property +and exactly one public key value, and MAY include additional properties.
  • @@ -1544,9 +1550,16 @@

  • -Each service endpoint MUST include id, -type, and serviceEndpoint properties, and -MAY include additional properties. +Each service endpoint SHOULD include an id property. +The array of service endpoints MUST NOT contain multiple entries +with the same id. A DID document processor MUST +produce an error in that case. +
  • + +
  • +Each service endpoint MUST include type and +serviceEndpoint properties, and MAY include additional +properties.