UNPKG

traceprompt-node

Version:

Client-side encrypted, audit-ready logging for LLM applications

9 lines (7 loc) 212 B
import { blake3 } from "@napi-rs/blake-hash"; export function computeLeaf(data: string | Buffer | undefined): string { if (data === undefined) { data = "null"; } return blake3(data).toString("hex"); }