Skip to content

On-chain Metadata - Anchoring of OE service credentials

Specific metadata of the catalogue entries is saved (anchored) on the blockchain to ensure the reliability and integrity of the data. On-chain storage is immutable and cannot be deleted. Therefore, only selected metadata is allowed to be stored on the blockchain.

As an additional layer of protection, the data is also encrypted to ensure extra privacy and access control for data spaces.

On-chain remote object

Example remote objects before encryption:

export const remoteDDOTypeURL = {
  remote: {
    type: 'url',
    url: 'path.to/encrypted/oe-verifiable-presentation',
    method: 'GET'
    fileHash: "xyz"
    encryptedBy: '16Uiu2HAmN211yBiE6dF5xu8GFXV1jqZQzK5MbzBuQDspfa6qNgXF',
    encryptedMethod: 'ECIES'
  }
}
 
export const remoteDDOTypeIPFS = {
  remote: {
    type: 'ipfs',
    hash: 'QmaD5S7TakPs3a4fijatbfqhmhhrEbCvbqGTTAp7VrZ91T',
    fileHash: "xyz"
    encryptedBy: '16Uiu2HAmN211yBiE6dF5xu8GFXV1jqZQzK5MbzBuQDspfa6qNgXF',
    encryptedMethod: 'ECIES'
  }
}
AttributeTypeDescriptionRequired
typesring (ipfs , url)specifies the type of remote location
hashstringCID of the IPFS resource☑️ (For ipfs type only)
methodstring(GET, POST)HTTP method☑️ (For url type only)
urlstringURL pointing to encrypted OE Verifiable Presentation☑️ (For url type only)
fileHashstringsha256 hash of the data object
encryptedBystringocean-node id (derived from private key)
encryptedMethodstring (ecies, aes)Encryption method used

On-chain / off-chain data overview

on-chain and offchain data diagram