Step 4: Verify enclave and interact with server
Step 4.1: Verify attestation
Run the verifier program using
cargo run --release --bin verifier -- --endpoint http://<ip>:1300 --pcr0 "..." --pcr1 "..." --pcr2 "..." --app app.pub
This should print a success message as well create a app.pub
file with the public key of the enclave.
Step 4.2: Load data
Load data into the server using
cargo run --release --bin loader -- --ip-addr 15.207.121.114:4000 --app app.pub --secret loader.sec
This should print Data write succeeded!
.
Step 4.3: Verify results
Verify the results using
cargo run --release --bin requester -- --ip-addr 15.207.121.114:4000 --app app.pub --secret requester.sec
This should print Result: 55
which corresponds to the sum of 12 and 43 that were loaded.