
Security News
White House Authorizes Private Companies to Conduct Offensive Cyber Operations
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.
@postcept/receipt
Advanced tools
Open reference implementation for verifying Postcept Receipts and VCR-audit badges — independent, in any environment.
The open reference implementation for verifying Postcept Receipts and VCR-audit badges — independently, in any JavaScript environment (browser, Node, Deno, edge). No Postcept API call and no trust required: a receipt is proof you can check yourself with nothing but the published public key.
The receipt format and signing scheme are specified in SPEC.md. This package is the canonical JS implementation of that standard; the Postcept API signs with the byte-for-byte equivalent in Python.
import { verifyReceipt, verifyBadge, type Receipt } from "@postcept/receipt";
// Fetch the current public key once (or pin a key id from the receipt):
const { public_key } = await fetch("https://api.postcept.com/v1/signing-key").then((r) => r.json());
const ok = await verifyReceipt(receipt as Receipt, public_key);
// ok === true → authentic and unmodified, signed by Postcept's key.
verifyReceipt and verifyBadge are pure and side-effect-free: they return
false on a bad signature or malformed input rather than throwing.
| Export | Purpose |
|---|---|
verifyReceipt | Verify a receipt's Ed25519 signature against a public key. |
verifyBadge | Verify a VCR-audit badge. |
verifyReceiptInLog | Verify a receipt's transparency-log inclusion + signed tree head. |
verifyInclusion / verifySignedTreeHead | Verify a Merkle inclusion proof / an STH. |
receiptSigningBody | The exact body the signature covers (for re-implementers). |
badgeSigningBody | The badge signing body. |
canonicalize | Deterministic JSON encoding (sorted keys, ASCII-escaped). |
@postcept/receipt/schema | JSON Schema for the receipt object. |
So the verification logic has exactly one source of truth. Postcept's own website verifier and free-audit tool import it; so can you. The trust story only holds if the reference implementation is open and self-contained.
FAQs
Independently verify a Postcept Receipt, the signed proof that an AI agent's high-risk action actually happened in the system of record. Runs anywhere, needs only the public key.
The npm package @postcept/receipt receives a total of 21 weekly downloads. As such, @postcept/receipt popularity was classified as not popular.
We found that @postcept/receipt demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
A new federal program will let vetted U.S. cybersecurity firms help investigate and disrupt foreign cybercrime groups under government direction.

Research
/Security News
The campaign amassed more than 75,000 installs by targeting Russian-speaking users seeking access to blocked services.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.