WebAssembly Execution API¶
Execute WebAssembly (WASM) binaries (hosted on GitHub) within the SGX enclave on the secured data pool. The binary must be verified using its SHA256 hash before execution. The API also requires the JSON schema.
Endpoint¶
Headers¶
Content-Type: application/json
Request Body¶
{
"github_url": "URL to the WASM binary on GitHub",
"expected_hash": "SHA256 hash of the WASM binary",
"json_schema": ...
}
Response¶
Success Response:
Status Code: 200 OK
Content:
Error Response¶
In case of server issues:
Status Code: 500 Internal Server Error
Content: