oasisprotocol / oasis-core

Performant and Confidentiality-Preserving Smart Contracts + Blockchains
https://oasisprotocol.org
Apache License 2.0
334 stars 110 forks source link

P2P distribution system for runtime bundles #5755

Open kostko opened 3 months ago

kostko commented 3 months ago

Either our own P2P protocol or we could just store them in IPFS or similar. We could simply chunk the bundle into equally-sized chunks and then provide those to peers. In order to reduce avenues for a DoS attack, only nodes that are registered for a given runtime would be eligible to request bundles.

There should also be support for hot-loading (e.g. without node restart) runtimes after they are fetched.

kostko commented 2 weeks ago

An initial step that we can implement immediately could be to just have a backend that can fetch binaries via HTTPS. There would be two steps:

As long as the manifest hash is available for verification on-chain, it should be fine. We can then gradually transition to a more decentralized version.