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
Adding custom logic within the packet path allows people to add business logic in an easy manner. This can currently be done by writing your own services in rust and compiling the node. However that limits to people capable of writing Rust.
Other projects allow plugin type models for similar functionality though are language specific:
Another option is to have the plugin be a WASM module. This would mean implementors could choose any WASM language to write the logic and I believe WASM can allow you to have strict checks on the interface of the module before running it.
The text was updated successfully, but these errors were encountered:
The thing that might be hard about this is making the wasm module interact with the Account struct and the store (database). Each service is generic over a specific type of Account + store combo that provides the functionality it needs. I'm not sure there's a sensible or safe way to have the module define methods on those objects or use methods that are defined in other traits. This may be worth investigating but it may be difficult to make it work.
Adding custom logic within the packet path allows people to add business logic in an easy manner. This can currently be done by writing your own services in rust and compiling the node. However that limits to people capable of writing Rust.
Other projects allow plugin type models for similar functionality though are language specific:
Another option is to have the plugin be a WASM module. This would mean implementors could choose any WASM language to write the logic and I believe WASM can allow you to have strict checks on the interface of the module before running it.
The text was updated successfully, but these errors were encountered: