Files
smom-dbis-138/services/truth-bridge/dist/proof-builder.js
2026-03-02 12:14:09 -08:00

22 lines
845 B
JavaScript

"use strict";
/**
* Proof builder for Truth Network → Ethereum lowering.
* Builds the proof bundle (Merkle proof + checkpoint + author signatures) required by Truth Bridge.
* Exact shape must match the verified bridge ABI; this is a stub that documents the expected output.
* See: docs/07-ccip/TRUTH_NETWORK_BRIDGE_SPEC.md
*/
Object.defineProperty(exports, "__esModule", { value: true });
exports.buildLowerProofStub = buildLowerProofStub;
/**
* Build proof for a Truth Network burn. Stub: returns placeholder; implement by
* fetching TN block + Merkle path + relay checkpoint + signatures when integrating.
*/
function buildLowerProofStub(_tnBurnTxHash, _tnBlockHash, _recipientEth, _amountWei) {
return {
blockHash: _tnBlockHash,
merkleProof: [],
checkpoint: '0x',
signatureBundle: '0x',
};
}