-
Notifications
You must be signed in to change notification settings - Fork 685
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
Add explicit feature flags for non-MVP WASM features implicitly supported by wasmtime
#15
Comments
This one sounds like a new feature of |
For e.g. |
I mean the detection itself... It doesn't make sense to add one more WASM parser to |
Just iterate over the code, |
Well, yes, but that sounds exactly like one more WASM parser 😉 |
One more? But it's already parsed by |
Okay, I'll try to make my concern more clear :) Where exactly will the feature detection step take place? If it is a new function in If it is a new function in |
An extra function in |
Ah yes, sorry, I'm not very clever. You're getting an already parsed sequence from |
* Release branch polkadot-v0.9.38 (#1015) * EIP-2539 (paritytech#15) * Update shell.nix * Read point from input * Finish `BLS12377G1Add` * Fix `BLS12377G1Add` output encode * Finish `BLS12377G1Mul` * Finish `BLS12377G1MultiExp` * Finish `BLS12377G2Add` * Finish `BLS12377G2Mul` * Draft `eip-2539` implement * Finish `BLS12377Pairing` * Draft `eip-2539` * Multiplication by the unnormalized scalar * Rename serialize to write * Test Cases * Test Cases * Rewrite read_fq * Rename * Doc and cleanup * Tidy * Tidy * Tidy * Only check point in subgroup for pairing * Fmt * Tests * Typo * Typo * Fix conv * Change err info * Fmt * EIP-2539 tests * EIP-2539 tests * Lint and test * EIP-3026 (paritytech#16) * Update shell.nix * G1Add and G1Mul * G1MultiExp * G2Add * G2Mul and G2MultiExp * Bw6Pairing * EIP-3026 tests * EIP-3026 failure tests * Fix lint * Lint * Lint and test * Comment * Deps order * Fmt * Lint --------- Co-authored-by: Wei Tang <wei@pacna.org>
* ci: dry run docs on pull request * Fix mdbook
Currently
wasmtime
supports extra features which were not part of the WASM MVP. These features cannot be disabled inwasmtime
but (at least for the signed ops extension) we reject the runtimes which make use of them sinceparity-wasm
(which we currently use to preprocess WASM blobs) will choke on their use at load time.We don't want to suddenly enable any new extra features without explicit versioning, so it's good that we don't load those runtimes, but it's bad that this is not explicitly controlled and should be fixed.
For example, for the signed ops feature we should:
sign_ext
feature inparity-wasm
,parity-wasm
not being enabled and only implicitly rejecting those runtimes, which brings in the risk of it being accidentally enabled through a transitive dependency without us noticing)sign_ext
, which would entail adding a new feature flag like in this PR which would disable the check that the runtime doesn't use the feature.The text was updated successfully, but these errors were encountered: