lagrangedao / smart-contract

Lagrange DAO Computing Contracts
MIT License
4 stars 3 forks source link

Check if the datasets have unique ID #13

Open TokyoSwan opened 1 year ago

TokyoSwan commented 1 year ago

Check if the datasets have a unique ID. If not, create them

Rishabh42 commented 1 year ago

From our discussion in Teams it was decided that we can use the cID as a unique parameter for the datasets. From my testing on the Lagrange platform I also noticed that the name field is also a unique parameter as the platform wasn't letting me create another dataset with the same name. So, a combination of the name and the cID could be used for uniquely identifying the dataset, since the datasets are also publicly available as of now.

It was also mentioned by @flyworker that we shouldn't hide the cID as it is for the public address but in the future we will have private datasets as well.

flyworker commented 1 year ago

name is not unique, you can change dataset name

flyworker commented 1 year ago

cid can be used as a unique id, since if you change any content, the cid will be changed.