Add media information to RGB20 #160
Replies: 2 comments 1 reply
-
I'd like to start by clarifying the difference between different types of information which may be present or related to RGB smart contracts.
Now, the interface has to do something with only pt1 and not pt2. It declares which state is in the contract, and what semantic meaning this stake has (for instance, state id 2000 is a token ticker etc), nothing more. You may think of an interface as an ERC standard in the Ethereum world. Each piece of information with a defined semantic meaning must be kept separate. It is impossible to have an "image attachment" in the contract under some interface (RGB20) which in some cases will be a scan of a contract, in others - a token icon etc. If we add a scan of a contract, it is one type of state; if we add a token icon - it is some other. Finally, a contract may implement multiple interfaces. RGB20 is an "equivalent" of ERC-20, and I think it will be good for interoperability to keep it quite close to ERC-20. However, nothing prevents from creating some other RGBxxx interface defining "images, scans etc" contract information and having some token implementing RGB20 also implementing that RGBxxx. RGB20 must not be a universal interface "for everything" and must have a clear goal and scope. Now, back to the @fedsten suggestions, I think that:
|
Beta Was this translation helpful? Give feedback.
-
The original discussion started in
@zoedberg> our team would like to propose a change to the RGB20 interface. By adding optional medias and previews it would be possible for us to implement a schema similar to our previous RGB121, that we propose to name CDA (Collectible Digital Assets).
The schema will be very similar to the NIA one but will allow an optional media and an optional preview. This should open interesting use cases like the possibility to add a logo or attach a PDF file to an asset.
@dr-orlovsky> we had this discussion with @fedsten and @giacomozucco back in 2020 and they were proposing to have fungible token media not be a part of the contract. The reason for that is that they are volatile, and may be provided by different vendors (for instance dark backgrounds may require different assets, or they may take different sizes, shapes etc). Thus, RGB20 does not include media for tokens - and instead, it should be a part of non-committable data (like Supplement).
@fedsten> I must admit that I do not remember much of our 2020 discussion, but I do believe there are several use cases that we may not have considered at the time. For example security tokens may want to attached scans of analogically singed legal documents and/or visual representations of the real world asset (e.g. the cadastral plan of a real estate asset, the picture of a tokenized physical artwork etc).
Personally I do not see any drawback in adding an optional media attachment, but in not supporting it I see the risk of limiting some potentially interesting use cases.
Beta Was this translation helpful? Give feedback.
All reactions