From f70e5d8c3e962acbe8dbd5be345687116836d44e Mon Sep 17 00:00:00 2001 From: Manu Sporny Date: Thu, 27 Jul 2017 12:20:11 -0400 Subject: [PATCH] Add signature example to signature section. Related to #59 and #9. --- index.html | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/index.html b/index.html index 083aa9c1e..477e3deee 100644 --- a/index.html +++ b/index.html @@ -538,7 +538,6 @@

Issuer

 {
-  "@context": "https://w3id.org/security/v1",
   "id": "http://dmv.example.gov/credentials/3732",
   "type": ["Credential", "ProofOfAgeCredential"],
   "issuer": "https://dmv.example.gov/issuers/14",
@@ -554,6 +553,40 @@ 

Issuer

Signature

+

+A credential MAY be made verifiable by adding the following +property: +

+
+
signature
+
+The method used for a signature will vary byrepresentation language. However, +this property is expected to have a value that is a set of name-value pairs +including at least a signature, a reference to the signing entity, and +a representation of the signing date.
+
+
+{
+  "id": "http://example.gov/credentials/3732",
+  "type": ["Credential", "ProofOfAgeCredential"],
+  "issuer": "https://dmv.example.gov",
+  "issued": "2010-01-01",
+  "claim": {
+    "id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
+    "ageOver": 21
+  },
+  "signature": {
+    "type": "LinkedDataSignature2017",
+    "created": "2017-06-18T21:19:10Z",
+    "creator": "https://example.com/jdoe/keys/1",
+    "nonce": "c0ae1c8e-c7e7-469f-b252-86e6a0e7387e",
+    "signatureValue": "BavEll0/I1zpYw8XNi1bgVg/sCneO4Jugez8RwDg/+
+    MCRVpjOboDoe4SxxKjkCOvKiCHGDvc4krqi6Z1n0UfqzxGfmatCuFibcC1wps
+    PRdW+gGsutPTLzvueMWmFhwYmfIFpbBu95t501+rSLHIEuujM/+PXr9Cky6Ed
+    +W3JT24="
+  }
+}
+        
@@ -572,9 +605,8 @@

Expiration

-
+        
 {
-  "@context": "https://w3id.org/security/v1",
   "id": "http://dmv.example.gov/credentials/3732",
   "type": ["Credential", "ProofOfAgeCredential"],
   "issuer": "https://dmv.example.gov/issuers/14",
@@ -613,7 +645,6 @@ 

Revocation

 {
-  "@context": "https://w3id.org/security/v1",
   "id": "http://dmv.example.gov/credentials/3732",
   "type": ["Credential", "ProofOfAgeCredential"],
   "issuer": "https://dmv.example.gov/issuers/14",
@@ -654,7 +685,6 @@ 

Evidence

 {
-  "@context": "https://w3id.org/security/v1",
   "id": "http://dmv.example.gov/credentials/3732",
   "type": ["Credential", "ProofOfAgeCredential"],
   "issuer": "https://dmv.example.gov/issuers/14",