-
Notifications
You must be signed in to change notification settings - Fork 767
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable all host functions which are not needed for launch #6720
Comments
Can I take this? |
Yes sure. You have to basically go through the recompiler and find out which functions are not used by it. You then just remove the @xermicus in which source file to find the list of used host functions? |
@davidk-pt Feel free to self assign the issue when you are about to start with it. Thanks :) |
Let me know if I understood this correctly #6844 , I basically diffed two lists, from the C file and what is available in |
Resolves #6720 List of used host functions in PolkaVM recompiler is here https://github.com/paritytech/revive/blob/main/crates/runtime-api/src/polkavm_imports.c#L65 --------- Co-authored-by: DavidK <davidk@parity.io>
…ytech#6844) Resolves paritytech#6720 List of used host functions in PolkaVM recompiler is here https://github.com/paritytech/revive/blob/main/crates/runtime-api/src/polkavm_imports.c#L65 --------- Co-authored-by: DavidK <davidk@parity.io>
We should reduce the attack surface as much as possible. This means any host function which is not available in revive at launch should be disabled. Later, we can re-enable them (if part of Solidity) or convert to a pre-compile.
The text was updated successfully, but these errors were encountered: