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

GITBOOK-500: change request with no subject merged in GitBook

This commit is contained in:
Jamie Hewitt 2023-06-13 15:56:26 +00:00 committed by gitbook-bot
parent 1c2131d720
commit 41e0a3ec2a
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -22,7 +22,7 @@ DIDs in Ocean follow [the generic DID scheme](https://w3c-ccg.github.io/did-spec
did:op:0ebed8226ada17fde24b6bf2b95d27f8f05fcce09139ff5cec31f6d81a7cd2ea
```
The part after `did:op:` is the ERC721 contract address(in checksum format) and the chainId (expressed as a decimal). The following javascript example shows how to calculate the DID for the asset:
The part after `did:op:` is the ERC721 contract address(in checksum format) and the chainId (expressed to 10 decimal places). The following javascript example shows how to calculate the DID for the asset:
```runkit nodeVersion="18.x.x"
const CryptoJS = require('crypto-js')