fix(pdfcert): branded Registration Document without mcp.verae.ai

Match the official Verae Timestamp Registration Document layout (logo,
frames, field list, QR). Disclaimer: only the digest was submitted.
Lookup/footer use explorer.verae.ai — no mcp.verae.ai or “via MCP”.
This commit is contained in:
George Lambert 2026-10-03 04:15:28 -04:00
commit 38b902d5e7

View file

@ -60,8 +60,14 @@ func TestRunZapierWritesNamedFiles(t *testing.T) {
t.Fatal(err)
}
got, _ := os.ReadFile(res.CertificatePDF)
if string(got) != string(pdf) {
t.Fatalf("cert bytes mismatch")
if !strings.HasPrefix(string(got), "%PDF") {
t.Fatal("certificate is not a PDF")
}
if !strings.Contains(string(got), "Verae Timestamp Registration Document") {
t.Fatal("missing branded title")
}
if strings.Contains(string(got), "mcp.verae.ai") || strings.Contains(string(got), "via MCP") {
t.Fatal("certificate must not mention mcp.verae.ai / via MCP")
}
if _, err := os.Stat(res.ReceiptJSON); err != nil {
t.Fatal(err)