oasisprotocol / oasis-core

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

runtime: Replace Protocol references with dyn Host #5742

Open kostko opened 3 months ago

kostko commented 3 months ago

Currently we are passing around Arc<Protocol> references everywhere which conflates the implementation of the runtime-host protocol with the interface towards the host. We should move the required functionality (namely making raw host requests) to the Host trait and start using it everywhere for cleaner abstractions.