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.
18 lines (17 loc) • 599 B
TypeScript
import type { Receipt } from "../types.js";
import type { Signer } from "../builder.js";
import { type Anchor } from "./acceptance.js";
export interface AnchorFrontier {
chain: string;
highestSeq: number;
headHash: string;
ts: string;
}
export declare class AnchorError extends Error {
readonly errors: string[];
constructor(message: string, errors: string[]);
}
export declare function buildAnchor(frontier: AnchorFrontier, signer: Signer): Anchor;
export declare function anchorForChainHead(receipts: readonly Receipt[], signer: Signer, opts: {
ts: string;
}): Anchor;