ProfileResource

A profile-linked resource is represented by the ProfileResource object type.

Serialization

ProfileResource object serialization MUST conform to the following Avro schema:

{
    "namespace": "org.dsnp",
    "name": "ProfileResource",
    "type": "record",
    "doc": "Profile-linked resource",
    "fields": [
        {
            "name": "type",
            "type": "int",
            "doc": "Type of resource"
        },
        {
            "name": "contentAddress",
            "type": "string",
            "doc": "Content address for the resource"
        }
    ]
}

Generation

type

  • MUST be a supported DSNP profile-linked resource type.

Supported Profile-Linked Resource Types

ValueDescriptionSpecificationContent TypeMaximum File SizeContent Address TypeDSNP Version Added
1Activity Content Profile with DSNP extensionsDSNP Profileapplication/json256 KbSupported IPFS CID11.3

All other resource type values are reserved for future expansion.

1Supported IPFS CIDs must be CID version 1, using either sha2-256 or blake3 hashes with the raw codec and the base32 serialization.

contentAddress

  • MUST be a valid content address for the specified type (see table above)
  • MUST contain sufficient information for an application to perform content integrity validation, for example by comparing the contentAddress field to the address derived by recalculating the content address from the bytes of the retrieved resource