<?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: ginaa</title>
    <description>The latest articles on DEV Community by ginaa (@0xxxxxxxx).</description>
    <link>https://dev.to/0xxxxxxxx</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.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4209179%2Fc735abdc-c511-456a-ae67-5a46b5894162.png</url>
      <title>DEV Community: ginaa</title>
      <link>https://dev.to/0xxxxxxxx</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/0xxxxxxxx"/>
    <language>en</language>
    <item>
      <title>Shipping Verifiable Agents for zkVerify #AgentGames: Proof Gatekeeper, Steal the VFY, and zkGuard</title>
      <dc:creator>ginaa</dc:creator>
      <pubDate>Mon, 16 Nov 2026 02:08:30 +0000</pubDate>
      <link>https://dev.to/0xxxxxxxx/shipping-verifiable-agents-for-zkverify-agentgames-proof-gatekeeper-steal-the-vfy-and-zkguard-2bm2</link>
      <guid>https://dev.to/0xxxxxxxx/shipping-verifiable-agents-for-zkverify-agentgames-proof-gatekeeper-steal-the-vfy-and-zkguard-2bm2</guid>
      <description>&lt;p&gt;Most Web3 agents still run on "trust the server." An endpoint tells you it checked a payment request or screened a transaction for drainers, and you have no way to verify what logic actually ran.&lt;/p&gt;

&lt;p&gt;For &lt;strong&gt;zkVerify #AgentGames&lt;/strong&gt;, I built and deployed two agent services:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;0xginn&lt;/code&gt; (&lt;code&gt;zkverify-agent&lt;/code&gt;)&lt;/strong&gt;, a dual-track agent competing in &lt;strong&gt;Proof Gatekeeper&lt;/strong&gt; and &lt;strong&gt;Steal the VFY&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;zkGuard&lt;/code&gt; (&lt;code&gt;zkguard-wildcard&lt;/code&gt;)&lt;/strong&gt;, a pre-signing EVM/BSC transaction guard for the &lt;strong&gt;Wildcard&lt;/strong&gt; track.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Instead of letting an LLM make the final call, both services separate request parsing from deterministic policy code and attach a Groth16 proof (&lt;code&gt;snarkjs&lt;/code&gt; on BN128) to every verdict.&lt;/p&gt;




&lt;h2&gt;
  
  
  1. Transport and Auth First
&lt;/h2&gt;

&lt;p&gt;Every request to &lt;code&gt;/agent&lt;/code&gt; is signed by the platform with &lt;code&gt;x-agent-games-signature&lt;/code&gt;. Before parsing JSON, the server computes HMAC-SHA256 over the raw request buffer and checks it with &lt;code&gt;crypto.timingSafeEqual&lt;/code&gt;. Any mismatch returns &lt;code&gt;401&lt;/code&gt; immediately.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Proof Gatekeeper: Deterministic Checks + Groth16
&lt;/h2&gt;

&lt;p&gt;In &lt;strong&gt;Proof Gatekeeper&lt;/strong&gt;, the agent has 60 seconds to approve or reject a simulated payment request. Even when an incoming request carries a valid proof, it can fail one of six policy checks:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;VK_SUBSTITUTION&lt;/code&gt; (&lt;code&gt;proof_vk !== registered_vk&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;THRESHOLD_MISMATCH&lt;/code&gt; (&lt;code&gt;public_balance &amp;lt; minimum&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;EXPIRED_CONDITION&lt;/code&gt; (&lt;code&gt;current_block &amp;gt;= expiry_block&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;RECIPIENT_MISMATCH&lt;/code&gt; (&lt;code&gt;recipient !== condition_recipient&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;AMOUNT_OVERFLOW&lt;/code&gt; (&lt;code&gt;amount &amp;lt;= 0&lt;/code&gt; or &lt;code&gt;amount &amp;gt; max_transfer&lt;/code&gt;)&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;PROOF_REUSED&lt;/code&gt; (&lt;code&gt;proof_tx&lt;/code&gt; was already accepted in an earlier task)&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;One detail I ran into while testing &lt;code&gt;gatekeeper.wasm&lt;/code&gt; (&lt;code&gt;nPublic: 13&lt;/code&gt;, zkVerify mainnet &lt;code&gt;vk_hash&lt;/code&gt;: &lt;code&gt;0x6b79c6012a6d8651f3e13bc4d2a20370280ab49700c90c5316d4168bfbad77b0&lt;/code&gt;): the circuit enforces the five arithmetic/field checks, including &lt;code&gt;current_block &amp;gt;= expiry_block&lt;/code&gt; as expired, while &lt;code&gt;PROOF_REUSED&lt;/code&gt; is an off-chain replay check tracked per mode (&lt;code&gt;competition&lt;/code&gt; vs &lt;code&gt;practice&lt;/code&gt;) in local storage.&lt;/p&gt;

&lt;p&gt;In Practice Mode, &lt;code&gt;0xginn&lt;/code&gt; caught &lt;code&gt;PROOF_REUSED&lt;/code&gt; (&lt;code&gt;REJECT&lt;/code&gt;) and returned a &lt;code&gt;VERIFIED&lt;/code&gt; Groth16 proof in &lt;code&gt;1,167 ms&lt;/code&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  3. Steal the VFY: Committing a Policy With Poseidon
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Steal the VFY&lt;/strong&gt; is a 20-turn head-to-head match where both agents pick &lt;code&gt;HOLD&lt;/code&gt;, &lt;code&gt;FORTIFY&lt;/code&gt;, or &lt;code&gt;EXTRACT N&lt;/code&gt; simultaneously. Before Round 1 pairs, you commit a Poseidon hash of your private parameters (&lt;code&gt;strategyParams[0..7]&lt;/code&gt; plus a random &lt;code&gt;salt&lt;/code&gt;) on-chain:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;hash&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;poseidon&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;params&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;salt&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Every turn, &lt;code&gt;vfy-policy.wasm&lt;/code&gt; (&lt;code&gt;nPublic: 9&lt;/code&gt;, zkVerify mainnet &lt;code&gt;vk_hash&lt;/code&gt;: &lt;code&gt;0x6c56509f1c56fd1fd4e9737f906d2220f4b95f1d507f1adf6899085bd74be047&lt;/code&gt;) proves that your chosen move matches your committed thresholds for &lt;code&gt;selfBalance&lt;/code&gt; and &lt;code&gt;opponentBalance&lt;/code&gt;, and binds the proof to &lt;code&gt;matchId&lt;/code&gt; and &lt;code&gt;turnNumber&lt;/code&gt; so old proofs cannot be replayed.&lt;/p&gt;

&lt;p&gt;One schema gotcha worth noting: &lt;code&gt;HOLD&lt;/code&gt; and &lt;code&gt;FORTIFY&lt;/code&gt; must omit &lt;code&gt;action.amount&lt;/code&gt; completely. Passing &lt;code&gt;amount: 0&lt;/code&gt; gets rejected.&lt;/p&gt;




&lt;h2&gt;
  
  
  4. &lt;code&gt;zkGuard&lt;/code&gt;: Applying This to EVM/BSC Wallet Security
&lt;/h2&gt;

&lt;p&gt;For the &lt;strong&gt;Wildcard&lt;/strong&gt; track, I used the same pattern to build &lt;strong&gt;zkGuard&lt;/strong&gt;, a pre-signing guard for EVM and BSC transactions.&lt;/p&gt;

&lt;p&gt;Before signing, &lt;code&gt;POST /analyze&lt;/code&gt; decodes raw calldata selectors (&lt;code&gt;0x095ea7b3&lt;/code&gt; &lt;code&gt;approve&lt;/code&gt;, &lt;code&gt;0xa22cb465&lt;/code&gt; &lt;code&gt;setApprovalForAll&lt;/code&gt;, &lt;code&gt;0xd505accf&lt;/code&gt; &lt;code&gt;permit&lt;/code&gt;, &lt;code&gt;0xac9650d8&lt;/code&gt; &lt;code&gt;multicall&lt;/code&gt;), flags unlimited approvals (&lt;code&gt;&amp;gt;= 2^255&lt;/code&gt;) to unknown spenders, checks value caps and recipient mismatches, and outputs a &lt;code&gt;0-100&lt;/code&gt; risk score.&lt;/p&gt;

&lt;p&gt;When wiring the risk score into &lt;code&gt;gatekeeper.wasm&lt;/code&gt;, passing raw 18-decimal wei values hit &lt;code&gt;Num2Bits&lt;/code&gt; bit-width limits in the circuit. Scaling the verdict to the bounded &lt;code&gt;0-100&lt;/code&gt; risk score (&lt;code&gt;amount = riskScore&lt;/code&gt;, &lt;code&gt;maxTransfer = 39&lt;/code&gt;) solved it cleanly so every &lt;code&gt;APPROVE&lt;/code&gt; / &lt;code&gt;REJECT&lt;/code&gt; decision produces a locally verified Groth16 proof regardless of token decimals.&lt;/p&gt;




&lt;h2&gt;
  
  
  Source and Live Demo
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Competition agent (&lt;code&gt;Proof Gatekeeper&lt;/code&gt; + &lt;code&gt;Steal the VFY&lt;/code&gt;): &lt;a href="https://github.com/DaddyUnikii/zkverify-agent" rel="noopener noreferrer"&gt;https://github.com/DaddyUnikii/zkverify-agent&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;zkGuard&lt;/code&gt; (&lt;code&gt;Wildcard&lt;/code&gt; wallet security agent): &lt;a href="https://github.com/DaddyUnikii/zkguard-wildcard" rel="noopener noreferrer"&gt;https://github.com/DaddyUnikii/zkguard-wildcard&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Live &lt;code&gt;zkGuard&lt;/code&gt; demo: &lt;a href="https://previous-meaning-sunrise-ink.trycloudflare.com" rel="noopener noreferrer"&gt;https://previous-meaning-sunrise-ink.trycloudflare.com&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Submitted for zkVerify &lt;code&gt;#AgentGames&lt;/code&gt;.&lt;/p&gt;

</description>
      <category>agentgames</category>
      <category>zkverify</category>
      <category>zeroknowledge</category>
      <category>web3</category>
    </item>
    <item>
      <title>signread: an open-weight model that reads your wallet signature before you sign it</title>
      <dc:creator>ginaa</dc:creator>
      <pubDate>Mon, 26 Oct 2026 16:30:28 +0000</pubDate>
      <link>https://dev.to/0xxxxxxxx/signread-an-open-weight-model-that-reads-your-wallet-signature-before-you-sign-it-55a2</link>
      <guid>https://dev.to/0xxxxxxxx/signread-an-open-weight-model-that-reads-your-wallet-signature-before-you-sign-it-55a2</guid>
      <description>&lt;p&gt;&lt;strong&gt;Update (Nov 5, 2026):&lt;/strong&gt; signread now reads Safe SafeTx payloads. A delegatecall (operation 1) to anything other than an official Safe MultiSend library is flagged HIGH on its own, the same pattern behind the Bybit hack. Thanks to Carlos for the suggestion in the comments!&lt;/p&gt;

&lt;p&gt;This is a submission for the Hacktoberfest Open-Source AI Challenge: Week 4.&lt;/p&gt;

&lt;h2&gt;
  
  
  What I built
&lt;/h2&gt;

&lt;p&gt;Most crypto wallet drains are not hacks. Someone signs something they could not read: a gasless Permit, a Permit2 batch, a Seaport listing for 0 ETH, a setApprovalForAll, or a blind 32-byte hash. The wallet shows hex, and people tap Sign.&lt;/p&gt;

&lt;p&gt;signread takes that payload and turns it into one verdict (HIGH, MEDIUM or LOW), the facts behind it, and a short explanation in plain language from a local open-weight model. It also has a page mode that scans mint pages, airdrop posts and AI-agent skill.md files for traps: seed-phrase asks, curl | sh, prompt injection aimed at agents, blanket approvals, hidden fees and refund-later schemes.&lt;/p&gt;

&lt;p&gt;I do not own a laptop. I built and run this from my phone, so the main way to use it is a GitHub Actions button: paste the payload, and read the result in the run summary.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/DaddyUnikii/signread" rel="noopener noreferrer"&gt;https://github.com/DaddyUnikii/signread&lt;/a&gt;&lt;br&gt;
Release: &lt;a href="https://github.com/DaddyUnikii/signread/releases/tag/v0.1.0" rel="noopener noreferrer"&gt;https://github.com/DaddyUnikii/signread/releases/tag/v0.1.0&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Example: a Seaport order that lists an NFT and pays the owner nothing.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;HIGH Seaport order: you list items for sale
 you give ERC721 #1234 x1
 paid out 1 wei to someone else
 order end time never expires
 HIGH you receive nothing for these items (classic free-listing drain)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;AI (qwen2.5:1.5b): If you sign this, anyone can take NFT #1234 without paying you, and the permission never expires. Do not sign.&lt;/p&gt;

&lt;h2&gt;
  
  
  How open-source AI is at the core
&lt;/h2&gt;

&lt;p&gt;The runner installs Ollama, pulls Qwen 2.5 1.5B (Apache-2.0, open weights) and runs it on CPU. No API key, no account, and the payload never leaves the runner. You can swap in llama3.2:3b, gemma2:2b or any OpenAI-compatible local server (llama.cpp, vLLM, LM Studio).&lt;/p&gt;

&lt;p&gt;The key design choice: the AI explains, the rules decide.&lt;/p&gt;

&lt;p&gt;A deterministic decoder, covered by tests, computes the verdict. The model only gets the structured findings, is told to treat quoted text as untrusted data, and is not allowed to change the verdict. So a prompt-injected page or a sweet-talking message cannot talk the model into saying "safe". The open model does what it is good at, explaining in the user's own language (English or Indonesian), and stays out of the part that has to be exact.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why open beat closed here
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Privacy: what you are about to sign is sensitive, and it stays on a machine you control.&lt;/li&gt;
&lt;li&gt;Cost: free to run on a GitHub runner, so anyone can fork it and use it from a phone.&lt;/li&gt;
&lt;li&gt;Control: a small local model with a fixed job is predictable, and the verdict never depends on a hosted API changing behind you.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Tech
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Zero dependencies, Node 18+&lt;/li&gt;
&lt;li&gt;Decodes EIP-2612 and DAI permits, Permit2, Seaport, generic EIP-712, personal_sign (including SIWE domain checks) and common approval calldata&lt;/li&gt;
&lt;li&gt;16 tests, CI on Node 18, 20 and 22&lt;/li&gt;
&lt;li&gt;--fail-on HIGH for bots and CI&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What's next
&lt;/h2&gt;

&lt;p&gt;A browser-extension front end, more marketplaces, and a poisoned-address checker for your transaction history.&lt;/p&gt;

&lt;p&gt;Thanks for reading. Don't sign what you can't read.&lt;/p&gt;

</description>
      <category>hf26challenge</category>
      <category>devchallenge</category>
      <category>opensource</category>
      <category>web3</category>
    </item>
  </channel>
</rss>
