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

Method tdxQuote

sdk/js/src/index.ts:429–435  ·  view source on GitHub ↗

* @deprecated Use getQuote instead. * @param report_data The report data. * @param hash_algorithm The hash algorithm. * @returns The quote.

(report_data: string | Buffer | Uint8Array, hash_algorithm?: TdxQuoteHashAlgorithms)

Source from the content-addressed store, hash-verified

427 * @returns The quote.
428 */
429 async tdxQuote(report_data: string | Buffer | Uint8Array, hash_algorithm?: TdxQuoteHashAlgorithms): Promise<GetQuoteResponse> {
430 console.warn('tdxQuote is deprecated, please use getQuote instead')
431 if (hash_algorithm !== "raw") {
432 throw new Error('tdxQuote only supports raw hash algorithm.')
433 }
434 return this.getQuote(report_data)
435 }
436}
437
438export class TappdClient extends DstackClient<TcbInfoV03x> {

Callers

nothing calls this directly

Calls 1

getQuoteMethod · 0.95

Tested by

no test coverage detected