I would like to use ownership of a Cardano NFT as a requirement for editing an online document. i.e. if you own the nft then you will be capable of writing to the document,but if you do not own the required NFT then you will only be able to read. Are there any examples of NFT ownership being used as a password of sorts like this? any recommendations of where to start looking for a way to do this?
2 Answers
What you say is possible.
In this repo you can find an example on how to mint an NFT and then use it to login to a web app.
I reckon you can use a similar approach for your use case.
-
Are you sure that you posted the link you intended? I searched the repo and do not even see the word NFT appear– RichardMay 28, 2022 at 2:06
-
Yes, I'm sure. Here you can find how to mint the NFTs: github.com/CardanoSevilla/cardano-summit-2021/tree/main/src/…. The project uses GameChanger wallet to mint (gamechanger.finance). You can import those JSON in the Playground and mint your NFTs from there. May 29, 2022 at 9:49
Here is another example: SpaceBudz Contract He created individual SpaceBudBid NFTs that basically mark the highest bid on-chain for a specific SpaceBud. That way he doesn't need to scan a lot of UTxOs and instead always keeps track of the highest bidder.
You can do the same thing by generating an NFT series for each document. The policy could be unlocked so that the owner of the document can grant an arbitrary number of people different rights (reading, writing, commenting etc.) which correlates to some action that mints a respective NFT for that user.