@reclaimprotocol/attestor-core
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
25 lines (24 loc) • 911 B
TypeScript
/**
* TLS Transcript Reconstruction from TEE data
*/
import type { CertificateInfo } from '../../proto/tee-bundle.ts';
import type { TeeBundleData } from '../../server/utils/tee-verification.ts';
import type { Logger } from '../../types/general.ts';
export interface TeeTranscriptData {
revealedRequest: Uint8Array;
reconstructedResponse: Uint8Array;
certificateInfo?: CertificateInfo;
responseTrimOffset?: number;
}
/**
* Reconstructs TLS transcript from TEE bundle data
* @param bundleData - Validated TEE bundle data
* @param logger - Logger instance
* @param oprfResults - Optional OPRF results to apply during reconstruction
* @returns Reconstructed transcript data
*/
export declare function reconstructTlsTranscript(bundleData: TeeBundleData, logger: Logger, oprfResults?: Array<{
position: number;
length: number;
output: Uint8Array;
}>): Promise<TeeTranscriptData>;