I am working on figuring out an efficient way to run an ELF binary after successful transaction. I also want to pass arguments along the execution.
Example: /bin/ping 1.1.1.1
OCW might be a solution, but because of the no_std environment required for WASM, it is not straightforward to:
- Execute the elf binary (eg. no std::Command available)
- Pass arguments
I saw some project fighting with similar questions (eg. Phala, DeeperNetwork) and thought about asking here. Problem is we can't access many things like std::Command under no_std.
To keep it simple and demo level, lets say we are using the template pallet and when someone transacts doSomething() we just execute the ping binary with ip address passed to it.
This is where the execution would start, inside doSomething().
Do we have a solution for that already? It also helps if we figure out that there is "no solution yet" and this needs to be solved.