Skip to main content

render_preview_html

Function render_preview_html 

Source
pub fn render_preview_html(receipt: &SessionReceipt) -> String
Expand description

Generate a self-contained preview.html that embeds the receipt JSON and runs Merkle verification client-side using Web Crypto API.

The HTML works fully air-gapped: no network calls, no CDN, no server. Open it in any modern browser and it automatically verifies the receipt and shows pass/fail for each check.