Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Way not integrate Sandbox Hostfunction for parachain in Polkadot? #5223

Closed
atenjin opened this issue Mar 30, 2022 · 4 comments
Closed

Way not integrate Sandbox Hostfunction for parachain in Polkadot? #5223

atenjin opened this issue Mar 30, 2022 · 4 comments

Comments

@atenjin
Copy link

atenjin commented Mar 30, 2022

Currently, Polkadot runs parachain with following hostfuncion:

type HostFunctions = (
	sp_io::misc::HostFunctions,
	sp_io::crypto::HostFunctions,
	sp_io::hashing::HostFunctions,
	sp_io::allocator::HostFunctions,
	sp_io::logging::HostFunctions,
	sp_io::trie::HostFunctions,
);

But some parachain will run a wasm binary in runtime, like pallet-contracts module, gear(https://github.com/gear-tech/gear), or some parachain will become a layer1 to verify the runtime code in a layer2. They all need the Sandbox Hostfunction to run the wasm binary in wasmer, otherwise they just can run the wasm code in a integrated wasmi, which is running slow then wasmer.

I search all issues like:
#99
paritytech/polkadot-sdk#990
paritytech/polkadot-sdk#880

But have not see more reason for this.

So can you guys add the Sandbox Hostfunction in future? And they any reasons why you do not wanna do this?
I think this Hostfunction can provide a more imaginative way for parachain to do more thing.

@bkchr
Copy link
Member

bkchr commented Mar 31, 2022

Sandbox host functions are not yet stable. The problem is that if they are ever added, then they need to be supported until the end of the universe.

Cc @pepyakin

@mrcnski
Copy link
Contributor

mrcnski commented Apr 13, 2023

@eskimor What is a sandbox host function? Is this related to PVF hardening? Can we triage this issue or close if not relevant?

@burdges
Copy link
Contributor

burdges commented Apr 13, 2023

I think stable sandboxing looks far off..

@bkchr
Copy link
Member

bkchr commented Apr 14, 2023

Not relevant.

@bkchr bkchr closed this as completed Apr 14, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants
@burdges @atenjin @bkchr @mrcnski and others