You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Currently on the Polkadot side we call create_runtime_from_artifact, which takes a path to a pre-compiled artifact. However, this runs in its own thread which we want to sandbox for security, and it would be nice if we could disable all file-system access. For that reason I'd like to be able to read the artifact ahead of time, and have a way to pass in the bytes directly to runtime instantiation.
(This would also help with #13860, since we could handle file-not-found on the Polkadot side without relying on un-matchable String errors from Substrate.)
ISSUE
Overview
Currently on the Polkadot side we call
create_runtime_from_artifact, which takes a path to a pre-compiled artifact. However, this runs in its own thread which we want to sandbox for security, and it would be nice if we could disable all file-system access. For that reason I'd like to be able to read the artifact ahead of time, and have a way to pass in the bytes directly to runtime instantiation.(This would also help with #13860, since we could handle file-not-found on the Polkadot side without relying on un-matchable
Stringerrors from Substrate.)