Metadata and attributes

Created by Xinxiang Wang, Modified on Fri, 15 Dec, 2023 at 8:24 AM by Xinxiang Wang

When notarizing an asset you can add metadata to the transaction in the form of attributes.

To one custom attribute:

$ vcn n artifact --attr "key=value"

You can add as many attributes as needed in one transaction:

$ vcn n artifact --attr "key=value" --attr "key2=value2"

These metadata attributes can be searched for in Trustcenter using the metadata keyword described in chapter Query a ledger.

In practice metadata attributes could hold many useful information about the software artifact:

  • build version,
  • build pipeline,
  • location,
  • commit data,
  • PGP Signature,
  • data on approval process,
  • supplier,
  • flag if the software is internal or external,
  • ID of employees involved,
  • test coverage,
  • environment,
  • release data,
  • production status
  • and many more.

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article