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.
26 lines (25 loc) • 1.08 kB
TypeScript
export type VerifyStatus = "VALID" | "UNVERIFIED" | "UNTRUSTED" | "TAMPERED" | "MALFORMED";
export interface VerifyOptions {
keyring?: Uint8Array | string;
checkpoint?: Uint8Array | string;
maxReceipts?: number;
identityManifest?: Uint8Array | string;
requireTenantConsistency?: boolean;
requireNFC?: boolean;
}
export interface VerifyResult {
status: VerifyStatus;
chain: string | null;
count: number;
signaturesVerified: boolean;
tailChecked: boolean;
badSeq?: number;
reason?: string;
warnings: string[];
}
export declare const DEFAULT_MAX_RECEIPTS = 1000000;
export declare function verifyChain(receipts: Uint8Array | string, opts?: VerifyOptions): VerifyResult;
export declare function verifyChainText(text: string, opts?: VerifyOptions): VerifyResult;
type CheckpointVerdict = "ok" | "unverified" | "retired signing key" | "bad spec" | "malformed checkpoint" | "bad checkpoint signature";
export declare function verifyCheckpoint(cp: Uint8Array | string, keyring?: Uint8Array | string): CheckpointVerdict;
export {};