cycles-quartz/crates/enclave/core/README.md

30 lines
639 B
Markdown
Raw Normal View History

2024-02-20 11:27:10 +00:00
## Quartz enclave
2024-02-20 12:40:02 +00:00
2024-02-23 22:27:51 +00:00
### Enclave usage
2024-02-20 12:40:02 +00:00
```bash
2024-02-26 21:39:30 +00:00
gramine-sgx-gen-private-key
CARGO_TARGET_DIR=./target cargo build --release
gramine-manifest \
-Dlog_level="error" \
-Dhome=${HOME} \
-Darch_libdir="/lib/$(gcc -dumpmachine)" \
-Dra_type="dcap" \
2024-02-26 21:39:30 +00:00
-Dra_client_linkable=1 \
2024-02-26 21:47:16 +00:00
-Dquartz_dir="$(pwd)" \
2024-02-26 21:39:30 +00:00
quartz.manifest.template quartz.manifest
gramine-sgx-sign --manifest quartz.manifest --output quartz.manifest.sgx
2024-02-20 12:40:02 +00:00
gramine-sgx ./quartz
```
2024-02-23 22:27:51 +00:00
### CLI usage
```bash
2024-02-27 19:12:03 +00:00
cargo run -- --chain-id testing \
2024-02-23 22:27:51 +00:00
--trusted-height 1 \
--trusted-hash "A1D115BA3A5E9FCC12ED68A9D8669159E9085F6F96EC26619F5C7CEB4EE02869"
```