Skip to content

universe - [feature]: Add new TLV fields for universe commitments to asset metadata #956

Open
@dstadulis

Description

Description:

With #1037 in place and shipped with v0.5.0, we can now start adding new optional TLV fields with odd numbers and any v0.5.0 and later client will be able to verify such proofs.

For supporting the universe commitments, we want to add 3 new TLV fields:

  • DecimalDisplay (uint8): As a previous workaround we had the field committed to the JSON metadata payload. But with the new mechanism in place, we can also add the field as a proper TLV value
  • UnverseCommitments (bool): A boolean indicator that universe commitments will be created for an asset group. This can only be set for the group anchor and is then mandatory (e.g. will be set automatically) for any future mints into the same asset group
  • CanonicalUniverse (string): A universerpc:// URL that the universe commitment proofs will be pushed to.

Implementation Plan

To implement this solution, we will:

  • Update the TLV to include the new fields.
  • Modify the RPC/API interfaces to accommodate the updated TLV structure.
  • Refactor the verification logic to utilize the TLV-based decimal display.
  • Change minting code to enforce universe commitments on re-mint into group that has the flag set

Metadata

Assignees

Type

No type

Projects

  • Status

    🏗 In progress

Relationships

None yet

Development

No branches or pull requests

Issue actions