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

Method get_tls_key

sdk/rust/src/dstack_client.rs:194–199  ·  view source on GitHub ↗
(&self, tls_key_config: TlsKeyConfig)

Source from the content-addressed store, hash-verified

192 }
193
194 pub async fn get_tls_key(&self, tls_key_config: TlsKeyConfig) -> Result<GetTlsKeyResponse> {
195 let response = self.send_rpc_request("/GetTlsKey", &tls_key_config).await?;
196 let response = serde_json::from_value::<GetTlsKeyResponse>(response)?;
197
198 Ok(response)
199 }
200
201 /// Signs a payload using a derived key.
202 pub async fn sign(&self, algorithm: &str, data: Vec<u8>) -> Result<SignResponse> {

Callers 3

test_tls_key_uniquenessFunction · 0.45
mainFunction · 0.45

Calls 1

send_rpc_requestMethod · 0.45

Tested by 2

test_tls_key_uniquenessFunction · 0.36