21 releases (10 breaking)

new 0.11.0 Mar 22, 2024
0.10.1 Dec 11, 2023
0.9.0 Oct 19, 2023
0.7.2 Jul 20, 2023
0.3.0 Oct 20, 2022

#1743 in Hardware support

Download history 10/week @ 2023-12-04 7/week @ 2023-12-11 6/week @ 2024-02-19 15/week @ 2024-02-26 13/week @ 2024-03-11 158/week @ 2024-03-18

190 downloads per month
Used in 2 crates (via mc-sgx-trts)

Apache-2.0

28KB
330 lines

MobileCoin SGX: tRTS FFI Bindings

Project ChatLicenseTargetCrates.ioDocs StatusDependency Status

Provides the rust function bindings to the sgx_trts library.

Table of Contents

License

Look for the LICENSE file at the root of the repo for more information.

Build Instructions

The workspace can be built with cargo build

Due to the need to link to an enclave, tests are not currently supported.

The Intel SGX SDK needs to be installed.

Intel SGX SDK

See https://github.com/intel/linux-sgx#build-the-intelr-sgx-sdk-and-intelr-sgx-psw-package for installation instructions.

The environment variable SGX_SDK can be used to specify where the SDK is installed. When unset the location will default to /opt/intel/sgxsdk

Features

When no features are present the SGX hardware libraries will be linked in. When the sim feature is present the simulation SGX libraries will be linked in.

References

Dependencies

~1.3–3.5MB
~77K SLoC