1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

Feature: OEPS - Add language in fenced-code-blocks

This commit is contained in:
Akshay 2021-08-16 22:22:40 +02:00
parent bfacd8478b
commit 8f4d8c9279
2 changed files with 18 additions and 14 deletions

View File

@ -1,6 +1,6 @@
# OEP-8: Assets Metadata Ontology # OEP-8: Assets Metadata Ontology
``` ```text
shortname: 8/ASSET-DDO shortname: 8/ASSET-DDO
name: Assets Metadata Ontology name: Assets Metadata Ontology
type: Standard type: Standard
@ -345,14 +345,21 @@ The `publisherTrustedAlgorithms ` is an array of objects with the following stru
To produce filesChecksum: To produce filesChecksum:
``` ```javascript
sha256(algorithm_ddo.service['metadata'].attributes.encryptedFiles + JSON.Stringify(algorithm_ddo.service['metadata'].attributes.main.files) ) sha256(
algorithm_ddo.service['metadata'].attributes.encryptedFiles +
JSON.Stringify(algorithm_ddo.service['metadata'].attributes.main.files)
)
``` ```
To produce containerSectionChecksum: To produce containerSectionChecksum:
``` ```javascript
sha256(JSON.Stringify(algorithm_ddo.service['metadata'].attributes.main.algorithm.container)) sha256(
JSON.Stringify(
algorithm_ddo.service['metadata'].attributes.main.algorithm.container
)
)
``` ```
Example of a compute service Example of a compute service

View File

@ -1,6 +1,6 @@
# OEP-7: Decentralized Identifiers # OEP-7: Decentralized Identifiers
``` ```text
shortname: 7/DID shortname: 7/DID
name: Decentralized Identifiers name: Decentralized Identifiers
type: Standard type: Standard
@ -173,7 +173,7 @@ Example:
In order to support credentials based access. the following optional object is used: In order to support credentials based access. the following optional object is used:
``` ```json
"credentials":{ "credentials":{
"allow":[ "allow":[
{ {
@ -204,14 +204,11 @@ where:
For future usage, we can extend that with different credentials types. Example: For future usage, we can extend that with different credentials types. Example:
``` ```json
{ {
"type":"credential3Box", "type": "credential3Box",
"values":[ "values": ["profile1", "profile2"]
"profile1", }
"profile2"
]
}
``` ```
#### DID Document Proof #### DID Document Proof