Skip to content

Commit 90eae12

Browse files
committed
Add optional image_hash field to CHIP-420 for resource integrity
Also, add reference to Solana Metaplex Token Metadata.
1 parent 97590a3 commit 90eae12

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

CHIPs/CHIP-0420/README.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ Authors:
77
Created: 2025-02-25
88
---
99

10-
This proposal borrows ideas from Cardano CIP-0068 Datum Metadata Standard [1].
10+
# CHIP-420. Token Metadata
11+
12+
This proposal borrows ideas from Cardano CIP-0068 Datum Metadata Standard [1] and Solana Metaplex Token Metadata [2].
1113

1214
A fungible token value in Charms is represented by a single unsigned integer. This is great as a compact representation
1315
of the token amount. A fungible token, as an asset, is fully defined by its App structure:
@@ -18,6 +20,8 @@ t/{app_identity}/{app_vk}
1820

1921
If we replace the tag character `t` with `n`, we will have a full identifier for the fungible token's reference NFT.
2022

23+
## Proposal
24+
2125
We propose the following structure for reference NFT data:
2226

2327
```yaml
@@ -46,6 +50,12 @@ url: ?<URI>
4650
# Should point to a resource with media type `image/png`, `image/jpeg` or `image/svg+xml`.
4751
image: ?<URI>
4852

53+
# (optional)
54+
# SHA-256 hash of the remote resource that `image` is pointing to.
55+
# When not present, the resource is assumed to be mutable (which is 100% okay for a home page of a website),
56+
# unless `image` is a `data` URI.
57+
image_hash: ?<hex_string>
58+
4959
# (optional)
5060
# Number of digits after decimal point in the smallest denomination of the token.
5161
# A token amount in Charms is always a natural number quantity of its smallest denomination.
@@ -69,3 +79,5 @@ minimum (recommended, but not required: all fields are optional).
6979
### References
7080

7181
[1] Cardano CIP-0068 Datum Metadata Standard. https://github.com/cardano-foundation/CIPs/tree/master/CIP-0068
82+
83+
[2] Solana Metaplex Token Metadata. https://developers.metaplex.com/token-metadata

0 commit comments

Comments
 (0)