4 ms·
They can't in our smart contract. We take the color hexadecimal and convert it into a pure number and use that as the NFT's tokenID—which is the primary immutab
by omarfarooq 5y ago
They can't in our smart contract. We take the color hexadecimal and convert it into a pure number and use that as the NFT's tokenID—which is the primary immutable component of the ERC-721 specification. Two tokenIDs cannot occupy the same number.
- danuker 5y agoInteresting! And how do color components get passed from an image file to the blockchain? Do your servers retrieve and analyze the image?
- omarfarooq 5y agoThat's a great question. To render the NFT Card (for example: https://color.museum/gallery https://color.museum/gallery) we simply reverse the tokenID's number with the numberToHex function of web3.js (we used hexToNumber to convert it in the opposite direction). This allows us to recreate the color as needed. There's an image file associated with the Color NFT in its metadata, but everything rests on the tokenID's resolution to a specific color hexadecimal.
- danuker 5y agoRight, this is about the color NFT. But how about other picture NFTs that would pay fees to the color ones? Surely the processing of a picture is done in a centralized fashion, and that is what determines the amount to pay to each owner of a color NFT.
- omarfarooq 5y agoYes, processing of the amount of the royalty will be done offchain, but will be auditable and independently verifiable. Disputes can be brought against the dev team. We are receiving 50% of the accumulated transaction fee pool to maintain and grow the market; so in the event of mistakes we will be prepared to cover. All transaction fees will accumulate into a pool and will be callable by addresses only in proportion to their share of the pool.
- danuker 5y agoThnk you for clarity! Indeed, I believe this is the best practical solution. I imagine minting say, a whole PNG, and doing the processing on-chain would be prohibitively expensive. Unless the image were very small and the algorithm very optimized.
- omarfarooq 5y agoCertainly! We've already indexed the Bored Ape Yacht Club collection and have the color hexadecimal used per pixel for all 10,000 of them. Finishing up CloneX Now. We are seeing several color minting strategies spawn, and one of them is minting a color that is often used in one of the more expensive NFT collections. For example, someone minted these shades of red, blue, purple which are prominent in Cryptopunks: https://color.museum/gallery/9786703 https://color.museum/gallery/9786703 & https://color.museum/gallery/6522262 https://color.museum/gallery/6522262 https://color.museum/gallery/9334710 https://color.museum/gallery/9334710 Interesting times ahead!