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

replacing the wasmer runtime with a wasmi runtime running inside an SGX enclave #122

Merged
merged 231 commits into from
May 11, 2020

Conversation

reuvenpo
Copy link
Contributor

@reuvenpo reuvenpo commented Mar 24, 2020

EDIT: This is still a WIP.

This PR includes the following pieces to it, from top to bottom:

  • Patch go-cosmwasm to use local dependencies
  • Copy cosmwasm-vm to a new directory containing the new wasmi+sgx code
  • Adjust cosmwasm-sgx-vm to call the enclave (wasmi-runtime) instead of using wasmer Changes to sgx vm #129
  • Define the interface between cosmwasm-sgx-vm and the wasmi-runtime
    • The types in this interface are defined in cosmwasm/lib/enclave-ffi-types and have autogenerated C bindings. See the .edl file in cosmwasm/lib/wasmi-runtime to see how they are used.
  • Implement safe wrappers around the FFI on the cosmwasm-sgx-vm side
  • Write the .edl file describing the interface between the enclave and the outside world
  • Implement safe wrappers around the FFI on the wasmi-runtime side
  • Use wasmi to execute the wasm contracts in the environment they expect, as defined in cosmwasm Wasmi enclave #123

@reuvenpo reuvenpo mentioned this pull request Mar 24, 2020
8 tasks
@reuvenpo reuvenpo requested review from assafmo and toml01 March 25, 2020 08:16
@assafmo assafmo changed the base branch from master to develop May 11, 2020 12:42
@assafmo assafmo merged commit 2054f32 into develop May 11, 2020
@assafmo assafmo deleted the cosmwasm-sgx-vm branch May 11, 2020 12:47
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

Successfully merging this pull request may close these issues.

3 participants