* @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)
| 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 | |
| 438 | export class TappdClient extends DstackClient<TcbInfoV03x> { |