From 8f4d8c927911c76b8e49a53f632f63941f8b3571 Mon Sep 17 00:00:00 2001 From: Akshay Date: Mon, 16 Aug 2021 22:22:40 +0200 Subject: [PATCH] Feature: OEPS - Add language in fenced-code-blocks --- content/concepts/oeps-asset-ddo.md | 17 ++++++++++++----- content/concepts/oeps-did.md | 15 ++++++--------- 2 files changed, 18 insertions(+), 14 deletions(-) diff --git a/content/concepts/oeps-asset-ddo.md b/content/concepts/oeps-asset-ddo.md index 31822327..6410a207 100644 --- a/content/concepts/oeps-asset-ddo.md +++ b/content/concepts/oeps-asset-ddo.md @@ -1,6 +1,6 @@ # OEP-8: Assets Metadata Ontology -``` +```text shortname: 8/ASSET-DDO name: Assets Metadata Ontology type: Standard @@ -345,14 +345,21 @@ The `publisherTrustedAlgorithms ` is an array of objects with the following stru To produce filesChecksum: -``` -sha256(algorithm_ddo.service['metadata'].attributes.encryptedFiles + JSON.Stringify(algorithm_ddo.service['metadata'].attributes.main.files) ) +```javascript +sha256( + algorithm_ddo.service['metadata'].attributes.encryptedFiles + + JSON.Stringify(algorithm_ddo.service['metadata'].attributes.main.files) +) ``` To produce containerSectionChecksum: -``` -sha256(JSON.Stringify(algorithm_ddo.service['metadata'].attributes.main.algorithm.container)) +```javascript +sha256( + JSON.Stringify( + algorithm_ddo.service['metadata'].attributes.main.algorithm.container + ) +) ``` Example of a compute service diff --git a/content/concepts/oeps-did.md b/content/concepts/oeps-did.md index 5917c0a6..1592a00f 100644 --- a/content/concepts/oeps-did.md +++ b/content/concepts/oeps-did.md @@ -1,6 +1,6 @@ # OEP-7: Decentralized Identifiers -``` +```text shortname: 7/DID name: Decentralized Identifiers type: Standard @@ -173,7 +173,7 @@ Example: In order to support credentials based access. the following optional object is used: -``` +```json "credentials":{ "allow":[ { @@ -204,14 +204,11 @@ where: For future usage, we can extend that with different credentials types. Example: -``` +```json { - "type":"credential3Box", - "values":[ - "profile1", - "profile2" - ] - } + "type": "credential3Box", + "values": ["profile1", "profile2"] +} ``` #### DID Document Proof