Skip to content

Commit

Permalink
Restrict CIP 25 to minting (positive amounts) (cardano-foundation#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
nielstron authored and Ryan Williams committed Nov 17, 2023
1 parent aa53247 commit a3b7470
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CIP-0025/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,15 +139,17 @@ Optional fields allow to save space in the blockchain. Consequently the minimal

As mentioned above this metadata structure allows to have either one token or multiple tokens with also different policies in a single mint transaction. A third party tool can then fetch the token metadata seamlessly. It doesn't matter if the metadata includes just one token or multiple. The proceedure for the third party is always the same:

1. Find the latest mint transaction with the label 721 in the metadata of the specific token
1. Find the latest mint transaction with the label 721 in the metadata of the specific token that mints a positive amount of the token
2. Lookup the 721 key
3. Lookup the Policy Id of the token
4. Lookup the Asset name of the token
5. You end up with the correct metadata for the token

### Update metadata link for a specific token

Using the latest mint transaction with the label 721 as valid metadata for a token allows to update the metadata link of this token. As soon as a new mint transaction is occurring including metadata with the label 721, the metadata link is considered updated and the new metadata should be used. This is only possible if the policy allows to mint or burn the same token again.
Using the latest mint transaction with the label 721 as valid metadata for a token allows to update the metadata link of this token. As soon as a new mint transaction is occurring including metadata with the label 721 and a positive amount of the token, the metadata link is considered updated and the new metadata should be used. This is only possible if the policy allows to mint or burn the same token again.

Since modern token policies or ledger rules should generally make burning of tokens permissionless, the metadata update is restricted to minting (as in positive amounts) transaction and excludes burning transactions explicitly.

## Backward Compatibility

Expand Down

0 comments on commit a3b7470

Please sign in to comment.