From 08925a8e53e0a23f269fed47dd52ede8fdf9ba62 Mon Sep 17 00:00:00 2001 From: alexcos20 Date: Sat, 9 Oct 2021 06:03:02 -0700 Subject: [PATCH] fix lint --- content/concepts/did-ddo.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/content/concepts/did-ddo.md b/content/concepts/did-ddo.md index 4e7e6725..1ec28db6 100644 --- a/content/concepts/did-ddo.md +++ b/content/concepts/did-ddo.md @@ -385,6 +385,7 @@ This section is auto-completed by aquarius. ## DDO Hash + In order to ensure the integrity, a hash is computed for each DDO, following the next steps: - remove `event` object from root (if exists) @@ -392,7 +393,8 @@ In order to ensure the integrity, a hash is computed for each DDO, following the - hash = sha256(JSON.stringify(DDO)) The hash is used when publishing/update metadata using setMetaData function in ERC721 contract and it is stored in the event generated by the ERC721 contract: - ``` + + ```solidity event MetadataCreated( address indexed createdBy, uint8 state, @@ -420,7 +422,8 @@ Aquarius should always chech the hash after data is decrypted(provider api calle ## Full DDO Example: -``` + +```json { "@context": ["https://w3id.org/did/v1"], "id": "did:op:ACce67694eD2848dd683c651Dab7Af823b7dd123",