AssetTree
What is AssetTree
AssetTree files describe an asset's properties, including its creator, creation time, license, and other relevant details. These AssetTree files contain a comprehensive collection of metadata that are important to authenticating digital assets on the blockchain.
When changes are made to an asset, a new Commit is created on the blockchain. This process also leads to the generation of a new AssetTree file, reflecting the updated state of the asset. Each of these commits includes the Nid of the relevant AssetTree within its metadata, linking every asset state to a particular point in the blockchain.
An important part of this process is the merging of AssetTree files. This must be done according to the Commit specifications, which then allows users to trace the complete history of an asset. Users may also use API or nit module to merge AssetTree files. By merging the AssetTree files, one can see the complete lifecycle of the asset from its creation to its alterations, to the current state.
For example, consider a digital art piece that has undergone multiple iterations. Each AssetTree file would document properties such as the artist's name, the dates of revisions, the licenses under which the art is distributed, any relevant keywords, and other pertinent information about the art at each point of its evolution. These historical snapshots can be used to verify the authenticity of the art piece at each stage, ensuring it hasn't been tampered with and can always be traced back to its original creator.
Overall, AssetTree provides a comprehensive view of the properties of the asset and ensures transparency and accountability, making it an essential part of the assetization process.
AssetTree Specification
AssetTree is a JSON file on IPFS containing the following information:
assetCid
: (string) The Nid of the asset fileassetCreator
: (string) Name of the asser creator. The length should not exceed 15 characters.encodingFormat
: (string) The asset's type expressed using a MIME formatabstract
: (string) An abstract is a short description that summarizes the asset, the length should not exceed 500 characters. More details see the definition on the schema.orgassetTimestampCreated
: (Unix timestamp) Creation time of the asset file, the time when the digital media content was converted to a Web3 asset (i.e. with the first blockchain recognition).headline
: (string, optional) Headline or the title of the content file, the length should not exceed 25 characters. More details see the definition on the schema.orgdigitalSourceType
: (string, optional) Specify the type of the source. More details see here.assetLocationCreated
: (string, optional) precise or broad location where the asset was created.assetSha256
: (string, optional) SHA-256 hash of the asset fileassetSourceType
: (string, optional) This field specify where the asset comes fromcreatorWallet
: (string, optional) the Wallet address of the asset creatorcreatorProfile
: (string, optional) The Nid of the creator profileparentAssetCid
: (string, optional) The Nid of the parent assetlicense.name
: (string, optional) License of the asset filelicense.document
: (string, optional) URL of the license fileminingPreference.allowed
: (array, optional) Provide options of the allowed mining preferences for data mining or AI/ML training workflow. More details see here.miningPreference.notAllowed
: (array, optional) Provide options of the NOT allowed mining preferences for data mining or AI/ML training workflow. More details see here.miningPreference.constrained
: (array, optional) Provide options of the allowed mining preferences with constraints for data mining or AI/ML training workflow. More details see here. If the mining option is shown in the constrained array, the users should follow the license to use the asset properly.generatedBy
: (string, optional) The AI model used to generate the content.generatedThrough
: (string, optional) URL of the software application or a downloadable link which generates the digital content.usedBy
: (string, optional) URL of the website that uses the assetintegrityCid
: (string, optional) the Cid/Nid of the additional proof metadata on IPFSnftRecord
: (string, optional) IPFS Cid where you can find all the NFT records. More details can be found in the nftRecord page.displaySocial
: (boolean, optional) Set this toTrue
if you want to display the asset on Asset Profile with the social media link instead of the IPFS file URL.socialLink
: (string, optional) Social link to the URL. IfdisplaySocial
is true, this URL will be used to display the asset on Asset Profile.custom
: (JSON, optional) Custom metadata
The DBDiagram describes the relationship between Commit and AssetTree tables. Here is an example of the AssetTree file. You may also refer to the nit open-source project for more examples of how to create AssetTree and Commit.
Note:
This specification follows the EIP-191 verification method for input: data, signature and output: signer's wallet address.
Last updated