Builder Guides
Quick-start paths for common NexArt tasks: verify a CER, verify a Project Bundle, register with the node, browser-safe flows.
Verify a CER
Node / server
import { verifyCer } from "@nexart/ai-execution";
const result = verifyCer(cerBundle);
if (result.status === "VERIFIED") {
// CER is intact
}
// Or verify by certificateHash at:
// https://verify.nexart.io/c/sha256%3A...Verify a Project Bundle
Node / server
import { verifyProjectBundle } from "@nexart/ai-execution";
const result = verifyProjectBundle(projectBundle);
// result.status: "VERIFIED" | "FAILED"
// result.steps: per-step verification results
// Or verify at:
// https://verify.nexart.io/p/sha256%3A...Use Browser-Safe Verification
Browser / Edge
import { verifyCerAsync } from "@nexart/ai-execution";
const result = await verifyCerAsync(cerBundle);
// Same result shape as verifyCer()
// Uses Web Crypto API, no Node.js dependenciesSee Browser Verification for a full example with Project Bundles.
Register a Project Bundle with the Node
Register a Project Bundle
POST /v1/project-bundle/register
Authorization: Bearer NEXART_API_KEY
Content-Type: application/json
{
"bundleType": "cer.project.v1",
"metadata": {
"projectId": "proj_abc123",
"description": "Contract review pipeline"
},
"steps": [
{ "stepIndex": 0, "cer": { ... } },
{ "stepIndex": 1, "parentRef": "sha256:...", "cer": { ... } }
]
}The node computes the projectHash, signs a project-level receipt, and returns a verification URL at /p/:projectHash.