UNPKG

noa-receipt

Version:

NOA Agent Action Receipt — open, offline-verifiable provenance for AI-agent actions. The governance/receipt organ only; the NOA brain is separate and proprietary.

17 lines (16 loc) • 748 B
import { type CoseSigner } from "./cose-sign1.js"; import type { Receipt } from "../types.js"; export declare function receiptToCose(receipt: Receipt, signer: CoseSigner): Buffer; export type CoseAttribution = "VERIFIED" | "UNAUTHORIZED" | "UNBOUND" | "UNAUTHENTICATED" | "FAILED" | "NOT_EVALUATED"; export interface ReceiptCoseResult { ok: boolean; kid: string | null; nativeKid: string | null; agentClaim: CoseAttribution; envelopeKid: string | null; envelopeClaim: CoseAttribution; receipt: Receipt | null; reason?: string; warnings: string[]; } export declare function receiptFromCose(coseBytes: Uint8Array, keyringBytes: Uint8Array | string, identityManifestBytes?: Uint8Array | string): ReceiptCoseResult;