Identifiers (DIDs)
Specification of decentralized identifiers for assets in Ocean Protocol using the DID & DDO standards.
Last updated
Specification of decentralized identifiers for assets in Ocean Protocol using the DID & DDO standards.
Last updated
Copyright 2024 Ocean Protocol Foundation Ltd.
In Ocean, we use decentralized identifiers (DIDs) to identify your asset within the network. Decentralized identifiers (DIDs) are a type of identifier that enables verifiable, decentralized digital identity. In contrast to typical, centralized identifiers, DIDs have been designed so that they may be decoupled from centralized registries, identity providers, and certificate authorities. Specifically, while other parties might be used to help enable the discovery of information related to a DID, the design enables the controller of a DID to prove control over it without requiring permission from any other party. DIDs are URIs that associate a DID subject with a DID document allowing trustable interactions associated with that subject.
DIDs in Ocean follow the generic DID scheme, they look like this:
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:
Before creating a DID you should first publish a data NFT, we suggest reading the following sections so you are familiar with the process: