Using Dash platform as a CID repository is one use case, but much different from hosting your whole front-end over IPFS.
- The latter situation assumes you have an application in the first place.
- It is a second-phase type of a problem, and likely premature optimization, unless the trust-less-ness is truly a requirement (or at minimum a significant selling point) for the app to exist at all.
- import helia
- present the user with a form field to input a CID
- user inputs the CID of a dapp
- dapp gets loaded via helia using the trustless http protocol
- dapp is rendered within a child element
- message is give to user confirming that the dapp CID and the fetched content all verify together
The wrapper is hosted using normal web2, from a host that the user trusts.
- It basically acts like a storefront.
- Any application CID input into the wrapper gets validated and presented to the user.
- Maybe it does a lookup on Dash platform to verify the CID has been registered in a Dash platform registry contract and fetches the Dash identity associated with that, then presents that info to the user.
- Maybe also shows the database query proof as well. That is starting to sound a bit more interesting now.