/** * Composite trust-query algorithm (PR #2440 in x402-foundation/x402). * * composite_hash = SHA-256(JCS([emitter_rows sorted by source_id, sig excluded])) * * Aggregates trust evidence from multiple emitters into a single canonical * hash. Properties: * - Row ordering invariance (sort-by-source_id). * - Set semantics (subset rows produce a distinct hash). * - Signature exclusion (sig field dropped before serialisation). * * 5-implementation cross-validation: * https://gist.github.com/chopmob-cloud/f2e9f0877b7d9fff70c8eca46e4ce636 */ export declare class CompositeTrustQueryError extends Error { constructor(message: string); } export interface EmitterRow { source_id: string; [key: string]: unknown; sig?: unknown; } /** * Return the lowercase hex composite_hash for a set of emitter rows. * * Steps (per PR #2440 §composite-hash): * 1. Strip the sig field from each row. * 2. Sort rows by source_id (lexicographic). * 3. JCS-canonicalise the resulting array. * 4. SHA-256 the canonical bytes. * * Output is plain hex without an algorithm prefix. */ export declare function compositeTrustQueryHash(rows: readonly EmitterRow[]): string; //# sourceMappingURL=composite-trust-query.d.ts.map