MCPcopy Create free account
hub / github.com/Dstack-TEE/dstack / get_quote

Method get_quote

sdk/rust/src/tappd_client.rs:154–167  ·  view source on GitHub ↗

Sends a raw quote request with 64 bytes of report data

(&self, report_data: Vec<u8>)

Source from the content-addressed store, hash-verified

152
153 /// Sends a raw quote request with 64 bytes of report data
154 pub async fn get_quote(&self, report_data: Vec<u8>) -> Result<TdxQuoteResponse> {
155 if report_data.len() != 64 {
156 bail!("Report data must be exactly 64 bytes for raw quote");
157 }
158
159 let payload = json!({
160 "report_data": hex_encode(report_data),
161 });
162
163 let response = self
164 .send_rpc_request("/prpc/Tappd.RawQuote", &payload)
165 .await?;
166 Ok(response)
167 }
168
169 /// Retrieves information about the Tappd instance
170 pub async fn info(&self) -> Result<TappdInfoResponse> {

Callers 6

test_replay_rtmrFunction · 0.45
test_report_dataFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 2

lenMethod · 0.45
send_rpc_requestMethod · 0.45

Tested by 4

test_replay_rtmrFunction · 0.36
test_report_dataFunction · 0.36