Open t4ccer opened 2 years ago
In second line, assume v
is base 32, convert to base 36.
Followup ticket to this will be to discover the real encoding of v, and convert to 36 accordingly. This would require the IPFS docs
We need to make sure the base32 CIDs returned from nft.storage in the /admin/upload_image endpoint are converted to base36 before being added to the database. Note the CIDs have some prefixes that need to be dealt with (see here). The server should convert the CIDs in the same way as ipfs cid format -b base36
When receiving
CID
formnft.storage
,CID
is encoded inbase32
(however docs do not guarantee that it will be always the case). CID encoded in NFT metadata cannot be inbase32
due to limitation of onchain metdata string length so it has to be converted (for example tobase36
).This is not critical as we control minting, but has to be done before launch where users can mint NFTs.