From 7e2f1b4011b61343d705fbc3d203ca4bf35e722b Mon Sep 17 00:00:00 2001 From: Las Safin Date: Sat, 11 Mar 2023 10:04:11 +0000 Subject: [PATCH 01/10] CIP-0058 | Fix metadata in preamble (#476) * Fix metadata for CIP-0058 * status Proposed still applicable until implementation --------- Co-authored-by: Robert Phair --- CIP-0058/README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/CIP-0058/README.md b/CIP-0058/README.md index 799f41414..15344cea3 100644 --- a/CIP-0058/README.md +++ b/CIP-0058/README.md @@ -1,10 +1,17 @@ --- CIP: 58 Title: Plutus Bitwise Primitives -Author: Koz Ross , Maximilian König -Comments-URI: https://github.com/cardano-foundation/CIPs/wiki/Comments:CIP-\? +Category: Plutus +Authors: + - Koz Ross + - Maximilian König +Implementors: + - Las Safin Status: Proposed -Type: Standards Track +Discussions: + - https://github.com/cardano-foundation/CIPs/pull/283 + - https://github.com/input-output-hk/plutus/issues/4252 + - https://github.com/input-output-hk/plutus/pull/4733 Created: 2022-05-27 License: Apache-2.0 --- From c028a53355ee984d7fc9bb7c91cea9b57532cf64 Mon Sep 17 00:00:00 2001 From: Mateus Oliveira Date: Sat, 11 Mar 2023 07:04:50 -0300 Subject: [PATCH 02/10] CIP-0068 | Clarify label prefixes (#471) * added section clarifying labels * made wording less repetitive * add reference to CIP 67 * remove repeated references --- CIP-0068/README.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CIP-0068/README.md b/CIP-0068/README.md index 758e6bbe9..4a5a60a1e 100644 --- a/CIP-0068/README.md +++ b/CIP-0068/README.md @@ -38,6 +38,20 @@ To find the metadata for the `user token` you need to look for the output, where Lastly and most importantly, with this construction, the metadata can be used by a PlutusV2 script with the use of reference inputs [CIP-0031](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0031). This will drive further innovation in the token space. +### Labels + +Each asset name must be prefixed by a label. The intent of this label is to identifty the purpose of the token. For example, a reference NFT is identified by the label 100 and so every token considered a reference NFT should start its asset name with the the hex `000643b0`. This is following [CIP-0067](https://github.com/cardano-foundation/CIPs/tree/master/CIP-0067), which specifies how the label prefix should be formatted. + +Examples of asset names: +| asset_name_label | asset_name_content | resulting_label_hex | resulting_content_hex | resulting_asset_name_hex | +|------------------|--------------------|---------------------|-----------------------|------------------------------| +| 100 | GenToken | 000643b0 | 47656e546f6b656e | 000643b047656e546f6b656e | +| 100 | NeverGonna | 000643b0 | 4e65766572476f6e6e61 | 000643b04e65766572476f6e6e61 | +| 222 | GiveYouUp | 000de140 | 47697665596f755570 | 000de14047697665596f755570 | + +For simplicity purposes, the document will use the label `(100)` or `(