ai-trust, proof-of-ai, verifiable-data: the trust chain of an AI result, the AIP-23 envelope of an agent action, and a dataset whose answers are checkable without the data

ai-trust/ links six existing proofs (agent identity, model artifact attestation, host runtime record, policy and signed ledger,
Proof of AI envelope, on-chain witness) into one bundle judged by one verifier that checks only the links; 13/13 in the lab,
16/16 live on testnet 28001 (ledger head notarized). proof-of-ai/ is the AIP-23 envelope builder it uses. verifiable-data/
publishes append-only versions with an RFC 9162 root and a sorted index per field, range and equality queries proven correct
and complete, selective disclosure per field, availability by sampling, and the AIP-23 data envelope notarized (version 2 on
testnet 28001). agents/agent-ancora.mjs gains notarizeEnvelope({kind}), the general form of notarizeHead. Each README says what
is not built: zero-knowledge queries need a prover and are not here. No third party has reviewed any of this.
This commit is contained in:
Aere Network committed 2026-10-02 11:28:14 +03:00
1 parent f84a5e8c18
commit cf8c56792f
18 files changed
+1624 -3

No files matched your search

+8 -2
View File
@@ -67,10 +67,16 @@ export function cheiaDinFisier(f) {
}
/** Pune statementHash-ul capului pe AereNotary. Lantul se citeste de pe RPC, nu se crede din argument; cheia din fisier, netiparita. */
export async function notarizeHead({ envelope, rpc, keyFile, ethers, notary = null, confirmMainnet = process.env.AERE_CONFIRM_MAINNET === 'yes' }) {
export function notarizeHead(o) { return notarizeEnvelope({ ...o, kind: HEAD_KIND }); }
/**
* Pune statementHash-ul unui plic AIP-23 de felul `kind` pe AereNotary (2026-10-02: forma generala a lui notarizeHead, ca datele
* verificabile sa notarizeze acelasi fel, din acelasi loc; fara `kind`, numai capul de registru). Aceleasi garzi: lantul de pe RPC,
* refuz pe 2800 fara AERE_CONFIRM_MAINNET, cheia din fisier si niciodata tiparita.
*/
export async function notarizeEnvelope({ envelope, kind = HEAD_KIND, rpc, keyFile, ethers, notary = null, confirmMainnet = process.env.AERE_CONFIRM_MAINNET === 'yes' }) {
const taie = (s) => String(s ?? '').replace(/(0x)?[0-9a-fA-F]{40,}/g, '<hex>').slice(0, 300);
const st = envelope && envelope.statement;
if (!st || envelope.kind !== HEAD_KIND + '-attestation' || st.kind !== HEAD_KIND || !H32.test(String(envelope.statementHash))) return { ok: false, cod: 2, motiv: `REFUSED: not an ${HEAD_KIND} attestation with a 32-byte statementHash` };
if (!st || envelope.kind !== kind + '-attestation' || st.kind !== kind || !H32.test(String(envelope.statementHash))) return { ok: false, cod: 2, motiv: `REFUSED: not an ${kind} attestation with a 32-byte statementHash` };
if (sha(JSON.stringify(st)) !== envelope.statementHash) return { ok: false, cod: 1, motiv: 'REFUSED: statementHash does not match the statement (modified envelope)' };
try {
const provider = new ethers.JsonRpcProvider(rpc);