Skip to content
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

Runtime Interface / Custom Host Function #437

Open
JoshOrndorff opened this issue May 11, 2021 · 0 comments
Open

Runtime Interface / Custom Host Function #437

JoshOrndorff opened this issue May 11, 2021 · 0 comments

Comments

@JoshOrndorff
Copy link
Owner

Substrate has the notion of host functions. They are code that runs on the client-side and can be called by the runtime. The standard ones are for cryptography. It is possible to add your own host functions. The recipes should cover this.

@HammeWang has done an [example using sm2 cryptography](https://github.com/hammeWang/substrate-sm2_ and presented it on Substrate Seminar

@tgmichel has done a minimal example as learning for Moonbeam moonbeam-foundation/moonbeam@c5f5466

This is a nice couterpart to the Runtime API recipe. They are both examples of crossing the wasm boundary, but in opposite ways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant