Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maceip committed Feb 17, 2024
1 parent e0478cd commit d475bb1
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,45 @@
<h1>quickstart tlsn notary inside sgx enclave</h1>
<h3>for development purposes only</h3>

build:
```bash
SGX=1 make
```

then use the generated Gramine RATLS Root CA certificate from `fixture/tls/gramine_crt.pem` in your prover:
```env
GRAMINE_ROOTCA=/home/gg/sgx-tlsn-notary-server/fixture/tls/gramine_crt.pem
```

```rust
pub async fn request_notarization(
host: &str,
port: u16,
max_transcript_size: Option<usize>,
) -> (tokio_rustls::client::TlsStream<TcpStream>, String) {
// Connect to the Notary via TLS-TCP
let pem_file = std::str::from_utf8(include_bytes!(
&env_variables["GRAMINE_ROOTCA"]
))
.unwrap();
```

run the notary server:
```bash
gramine-sgx sgx-notary-server
```

run a prover:
```bash
RUST_LOG=debug,yamux=info cargo run --release --example twitter_dm
```

<br>
<br>

-----

APPENDIX:
<br>these install steps are outdated and broken:
```sh
#install SGX

Expand Down

0 comments on commit d475bb1

Please sign in to comment.