The current NFT metadata serialization scheme is prone to duplicate encodings (and therefore duplicate hashes) when used with arbitrary-length values (e.g. strings).
For example:
"foo".concat("bar) == "foob".concat("ar")
In this case inputs are distinct but the concatenation is the same.
The current NFT metadata serialization scheme is prone to duplicate encodings (and therefore duplicate hashes) when used with arbitrary-length values (e.g. strings).
For example:
In this case inputs are distinct but the concatenation is the same.