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
```
```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

View File

@ -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