riffcc / ceramic-riff-web

Riff.CC, implemented using ComposeDB and Ceramic.
https://ceramic-riff-web.vercel.app
3 stars 0 forks source link

Validate that the CID that user enters is a valid CIDv0 or CIDv1 #14

Open Zorlin opened 1 year ago

Zorlin commented 1 year ago

We need to check that when a user uploads a CID through the upload form that it's a valid CID according to the CIDv0 or CIDv1 specs. If it is not, a message should be displayed gently reminding the user that they should be entering a CID.

Something like "Please enter a valid CIDv0 or CIDv1 ID."

benya7 commented 1 year ago

Added check for CIDv0, support for CIDv1 is missing