@reclaimprotocol/attestor-core
Version:
<div> <div> <img src="https://raw.githubusercontent.com/reclaimprotocol/.github/main/assets/banners/Attestor-Core.png" /> </div> </div>
29 lines (28 loc) • 983 B
TypeScript
/**
* TEE Bundle verification utilities
* Handles validation of TEE verification bundles including attestations and signatures
*/
import type { SignedMessage } from '../../proto/tee-bundle.ts';
import { KOutputPayload, TOutputPayload } from '../../proto/tee-bundle.ts';
import type { Logger } from '../../types/general.ts';
export interface TeeBundleData {
teekSigned: SignedMessage;
teetSigned: SignedMessage;
kOutputPayload: KOutputPayload;
tOutputPayload: TOutputPayload;
teekPcr0: string;
teetPcr0: string;
teeSessionId: string;
}
export interface TeeSignatureVerificationResult {
isValid: boolean;
errors: string[];
address?: string;
}
/**
* Verifies a complete TEE verification bundle
* @param bundleBytes - Raw protobuf-encoded verification bundle
* @param logger - Logger instance
* @returns Validated TEE bundle data
*/
export declare function verifyTeeBundle(bundleBytes: Uint8Array, logger: Logger): Promise<TeeBundleData>;