How does ICP interact with media hosted on the Arweave (Permaweb) blockchain?
There are not any real direct integrations, but if you have an arweave gateway and need to pull a file into your contract you should be able to use HTTP outcalls to pull in the file. If it is over 2MB you’ll need some kind of range request support from your gateway as you can only pull 2MB at a time(and over HTTP outcalls this might be expensive).
I’m trying hard to make ICP work with Arweave to sell my movie to subscribers/NFT buyers, but just not yet certain it is feasible
You’re going to have to explain your architecture a bit. Are you trying actually stream from the IC? If that is the case you’ll need to load the movie onto the IC. If you just want to have the movie at a secret hash that you reveal after they pay then that is different. Finally, you could use vet keys to encrypt the movie to an individual key for each user and put it out there multiple times on arweave, but that may be a good bit of processing.
You can use ICP for payments and access control while hosting the movie on Arweave. Encrypt the movie with unique keys for each buyer and share the decryption key upon payment. This ensures secure and efficient integration.
ok emmawatson, now we’re talking! Are there any examples of this method being used now? Any dev with code to accomplish this?