diff --git a/Dockerfile b/Dockerfile index 76e2c8cd1..dfaf7a151 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,7 +14,7 @@ COPY . . RUN echo "Building for sgx with taskdb: ${TASKDB}" RUN cargo build --release ${BUILD_FLAGS} --features "sgx" --features "docker_build" --features ${TASKDB} -FROM gramineproject/gramine:1.7-jammy AS runtime +FROM gramineproject/gramine:1.8-jammy AS runtime ENV DEBIAN_FRONTEND=noninteractive WORKDIR /opt/raiko diff --git a/provers/sgx/config/sgx-guest.docker.manifest.template b/provers/sgx/config/sgx-guest.docker.manifest.template index 8ec9eb11f..e9464fbcb 100644 --- a/provers/sgx/config/sgx-guest.docker.manifest.template +++ b/provers/sgx/config/sgx-guest.docker.manifest.template @@ -45,3 +45,4 @@ sgx.remote_attestation = "dcap" sys.enable_extra_runtime_domain_names_conf = true sys.insecure__allow_eventfd = true sys.stack.size = "8M" +sgx.enclave_size = "4G" diff --git a/provers/sgx/config/sgx-guest.local.manifest.template b/provers/sgx/config/sgx-guest.local.manifest.template index 289b8fc04..bea17e8d4 100644 --- a/provers/sgx/config/sgx-guest.local.manifest.template +++ b/provers/sgx/config/sgx-guest.local.manifest.template @@ -45,8 +45,9 @@ sgx.trusted_files = [ "file:/usr/lib/ssl/certs/", "file:sgx-guest", ] -sgx.max_threads = 32 +sgx.max_threads = 512 sgx.remote_attestation = "dcap" sys.enable_extra_runtime_domain_names_conf = true sys.insecure__allow_eventfd = true sys.stack.size = "8M" +sgx.enclave_size = "4G" diff --git a/provers/sgx/prover/src/lib.rs b/provers/sgx/prover/src/lib.rs index a74ee0e06..334f063f3 100644 --- a/provers/sgx/prover/src/lib.rs +++ b/provers/sgx/prover/src/lib.rs @@ -461,7 +461,7 @@ fn parse_sgx_result(output: Vec) -> ProverResult { Ok(SgxResponse { proof: extract_field("proof"), quote: extract_field("quote"), - input: B256::from_str(&extract_field("input")).unwrap(), + input: B256::from_str(&extract_field("input")).unwrap_or_default(), }) }