-
Notifications
You must be signed in to change notification settings - Fork 2
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
Checking program bytecode when submitting it for storage #608
Comments
so ya I think this should look like something like
and it can live in two places. One would be core where you send the data over to a TSS and have it send back the result. However I think that is a worse option then having this compile down to wasm and run it client side (wasm for in the browser could be rust for program devs, however, I do believe there is already a way for program devs to test this in the programs repo, by compiling it to wasm and running their tests against this) TLDR: I think in the programs repo, compiled to wasm, pushed to npm, pulled in by the sdk is the move |
doing it on the client side seems good - as long as there isn't a reason why someone would want to intentionally publish some garbage programs. i can't think why they would want to, but just putting the idea out there. |
I mean possible but the idea is to charge for state rent so that isn't an attack vector |
This seems related to the "Dry Run" conversation @ameba23 . Maybe we could group all those related issue into a "Milestone" Aside: when we were discussing "dry run" we were meaning "check content is valid/ functional before committing things to chain". When I said "dry run" to someone on my team they thought about |
Linking to the associated issue in the programs repo: entropyxyz/programs#95 |
Currently it is possible to store a program (using the programs pallet's
set_program
) even if it's bytecode is invalid, or it has a configuration interface which is not compatible with the program. When registering there is also no check that the provided program pointer points to valid bytecode.This is maybe rather an issue for the
programs
repo - as that should provide us with a way of checking validity of bytecode etc. But relevant here is where that would get called from inentropy-core
.The text was updated successfully, but these errors were encountered: