Has there been any thoughts in the past about having smartcontracts natively supported by IPFS?
Meaning, in addition to the “add” api, which puts a file onto IPFS, a possibility to add-to-contract, meaning the smartcontract (living as file on IPFS itself) gets invoked by the add-method, leaving some sort of trace of its execution and as part of its execution creates new content.
const client = ipfsHttpClient('https://ipfs.infura.io:5001/api/v0') const contract = ipfsSmartContract('ipfs://xxxxxxxasdasdas23221'); // DID const added = await client.addToContract(file, contract)
I can imagine there are many reasons other features would take precendence over such idea, beyond maybe many downsides (like endless loops or so) - one could think of.
Nevertheless, being able to have code reliably and traceable run on IPFS could also have its use cases in real world, especially when you don’t want to have reliance on/need for smartcontracts on blockchains.
Anyone care to chip in?