<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: GitSerge-crypto</title>
    <description>The latest articles on DEV Community by GitSerge-crypto (@gitsergecrypto).</description>
    <link>https://dev.to/gitsergecrypto</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3987774%2F775b526f-c82e-4653-9950-cf86e1295e93.png</url>
      <title>DEV Community: GitSerge-crypto</title>
      <link>https://dev.to/gitsergecrypto</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/gitsergecrypto"/>
    <language>en</language>
    <item>
      <title>AI agents hallucinate. Here is how to cryptographically notarize their output for $0.01</title>
      <dc:creator>GitSerge-crypto</dc:creator>
      <pubDate>Tue, 16 Jun 2026 17:40:34 +0000</pubDate>
      <link>https://dev.to/gitsergecrypto/ai-agents-hallucinate-here-is-how-to-cryptographically-notarize-their-outputfor-001-4eop</link>
      <guid>https://dev.to/gitsergecrypto/ai-agents-hallucinate-here-is-how-to-cryptographically-notarize-their-outputfor-001-4eop</guid>
      <description>&lt;p&gt;We have a growing problem in the autonomous AI agent space: &lt;strong&gt;Garbage in, garbage out, and no proof of when it happened.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;When your AI agent generates source code, analyzes market data, or creates a financial report, how do you mathematically prove that this specific artifact was generated at a specific time? How do you prove to your clients that the output wasn't retroactively edited before a dispute?&lt;/p&gt;

&lt;p&gt;I wanted a "notary stamp" for AI agents. But existing oracle solutions are too expensive (often $0.25 - $1.00+ per call) and require complex smart contract integrations.&lt;/p&gt;

&lt;p&gt;So, as a solo developer, I built &lt;strong&gt;&lt;a href="https://docs.aotrust.link" rel="noopener noreferrer"&gt;AOTrust&lt;/a&gt;&lt;/strong&gt;. &lt;/p&gt;

&lt;p&gt;It does exactly one thing: it issues a &lt;strong&gt;PDR (Provenance Data Record)&lt;/strong&gt; for exactly &lt;strong&gt;$0.01 USDC&lt;/strong&gt; on Base L2, using the HTTP 402 protocol.&lt;/p&gt;

&lt;h3&gt;
  
  
  What is a PDR?
&lt;/h3&gt;

&lt;p&gt;A PDR is a highly optimized 239-byte cryptographic receipt. It proves that a specific digital artifact existed at a specific point in time. &lt;/p&gt;

&lt;p&gt;It contains:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;The SHA-256 hash of your agent's work output.&lt;/li&gt;
&lt;li&gt;A precise UNIX timestamp.&lt;/li&gt;
&lt;li&gt;An on-chain payment anchor (your $0.01 USDC transfer on Base).&lt;/li&gt;
&lt;li&gt;An Ed25519 signature from the notary node.&lt;/li&gt;
&lt;li&gt;A Merkle root anchored daily to the NEAR blockchain.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Privacy first:&lt;/strong&gt; You never upload your actual artifact or AI prompt. You only send the SHA-256 hash.&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works (No heavy SDKs required)
&lt;/h3&gt;

&lt;p&gt;I designed this to be integrated into any agentic workflow (Python, TS, Rust) using standard HTTP requests. It uses the &lt;code&gt;x402&lt;/code&gt; payment protocol. &lt;/p&gt;

&lt;p&gt;Here is the entire integration in 3 steps:&lt;/p&gt;

&lt;h4&gt;
  
  
  Step 1: Hash your artifact
&lt;/h4&gt;

&lt;p&gt;First, your agent hashes its output locally.&lt;/p&gt;

&lt;p&gt;import hashlib&lt;br&gt;
work_hash = hashlib.sha256(b"your agent's JSON output").hexdigest()&lt;/p&gt;

&lt;p&gt;Step 2: Request Notarization (Get a Quote)&lt;/p&gt;

&lt;p&gt;Send the hash to the API. Because AOTrust is a payment-bound proof layer, the&lt;br&gt;
server will intentionally reject it with an HTTP 402 Payment Required status,&lt;br&gt;
returning the payment instructions.&lt;/p&gt;

&lt;p&gt;curl -X POST &lt;a href="https://api.aotrust.link/notarize" rel="noopener noreferrer"&gt;https://api.aotrust.link/notarize&lt;/a&gt; \&lt;br&gt;
  -H "Content-Type: application/json" \&lt;br&gt;
  -d '{"work_hash":"YOUR_SHA256_HEX"}'&lt;/p&gt;

&lt;p&gt;Response (HTTP 402):&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "payTo": "0x97E9af6B...Ab8Cc800",&lt;br&gt;
  "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913", // USDC on Base&lt;br&gt;
  "maxAmountRequired": "10000", // $0.01 (6 decimals)&lt;br&gt;
  "network": "eip155:8453",&lt;br&gt;
  "maxTimeoutSeconds": 300&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Step 3: Pay and Get Your Proof&lt;/p&gt;

&lt;p&gt;Your agent signs an EIP-3009 transferWithAuthorization with its Ethereum wallet&lt;br&gt;
to authorize the $0.01 payment. Encode the signature and send it in the&lt;br&gt;
x-payment header.&lt;/p&gt;

&lt;p&gt;curl -X POST &lt;a href="https://api.aotrust.link/notarize" rel="noopener noreferrer"&gt;https://api.aotrust.link/notarize&lt;/a&gt; \&lt;br&gt;
  -H "Content-Type: application/json" \&lt;br&gt;
  -H "x-payment: YOUR_BASE64URL_ENCODED_SIGNATURE" \&lt;br&gt;
  -d '{"work_hash":"YOUR_SHA256_HEX"}'&lt;/p&gt;

&lt;p&gt;Response (HTTP 200):&lt;/p&gt;

&lt;p&gt;{&lt;br&gt;
  "job_id": "550e8400-e29b-41d4-a716-446655440000",&lt;br&gt;
  "pdr_b64": "AwEFA1kuagAAAABub3...",&lt;br&gt;
  "payment_anchor_type": "X402_BASE"&lt;br&gt;
}&lt;/p&gt;

&lt;p&gt;Boom. You just received your 239-byte cryptographic proof (pdr_b64).&lt;/p&gt;

&lt;p&gt;Verifying the Proof&lt;/p&gt;

&lt;p&gt;You can pass this job_id or the raw base64 string to your clients or users.&lt;br&gt;
Anyone can verify the cryptographic seal instantly without an account, API keys,&lt;br&gt;
or paying any fees:&lt;/p&gt;

&lt;p&gt;verify.aotrust.link&lt;/p&gt;

&lt;p&gt;Why build this?&lt;/p&gt;

&lt;p&gt;If you are building autonomous agents, integrating them into marketplaces, or&lt;br&gt;
generating automated financial/audit reports, trust is your biggest bottleneck.&lt;br&gt;
By appending an AOTrust PDR to your agent's deliverable, you give your clients&lt;br&gt;
an un-fakable, third-party verified timestamp of the work.&lt;/p&gt;

&lt;p&gt;I’m currently running the mainnet infrastructure. If you are building agentic&lt;br&gt;
workflows and need an immutable audit trail, I’d love to hear your thoughts on&lt;br&gt;
this API flow!&lt;/p&gt;

&lt;p&gt;Docs: docs.aotrust.link GitHub (Specs &amp;amp; Parser):&lt;br&gt;
github.com/GitSerge-crypto/aotrust-skills&lt;/p&gt;

</description>
      <category>agents</category>
      <category>ai</category>
      <category>blockchain</category>
      <category>showdev</category>
    </item>
  </channel>
</rss>
