<?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: Štefan Bohumel</title>
    <description>The latest articles on DEV Community by Štefan Bohumel (@ramirez911).</description>
    <link>https://dev.to/ramirez911</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%2F4190193%2Fe9795676-58e3-4d65-b56b-e9b494b03beb.jpg</url>
      <title>DEV Community: Štefan Bohumel</title>
      <link>https://dev.to/ramirez911</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/ramirez911"/>
    <language>en</language>
    <item>
      <title>Building Aegis Protocol: A Zero-Knowledge Web3 Security Enclave, Tax-Loss Harvester &amp; Shamir 2-of-2 Vault Across 15 Chains</title>
      <dc:creator>Štefan Bohumel</dc:creator>
      <pubDate>Sat, 17 Oct 2026 09:17:47 +0000</pubDate>
      <link>https://dev.to/ramirez911/building-aegis-protocol-a-zero-knowledge-web3-security-enclave-tax-loss-harvester-shamir-2-of-2-1aoi</link>
      <guid>https://dev.to/ramirez911/building-aegis-protocol-a-zero-knowledge-web3-security-enclave-tax-loss-harvester-shamir-2-of-2-1aoi</guid>
      <description>&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6pqrseqvwq3wulb4rv6u.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2F6pqrseqvwq3wulb4rv6u.png" alt=" " width="800" height="689"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Self-custody in Web3 comes with three persistent engineering and operational problems that cost investors and treasuries billions of dollars every year:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Trapped Capital Losses &amp;amp; Dust Fragmentation:&lt;/strong&gt; Across 15+ EVM chains and Solana, wallets accumulate rugged tokens, abandoned airdrops, and uncollected dust. Because holders never formally dispose of dead tokens on-chain, they miss out on legitimate capital loss deductions (IRS Form 8949 / EU MiCA tax reporting).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Silent Unlimited Approval Risks (&lt;code&gt;2^256 - 1&lt;/code&gt;):&lt;/strong&gt; Legacy ERC-20 &lt;code&gt;approve()&lt;/code&gt; calls leave wallets permanently exposed to compromised routers, unverified proxy contracts, and wallet drainers.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The $100B+ Self-Custody Inheritance Gap:&lt;/strong&gt; When crypto holders pass away or lose access, their assets are permanently locked—yet existing inheritance platforms require trusting a third-party server or custodian with seed phrases.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;To solve all three without introducing a single point of failure, I built &lt;strong&gt;Aegis Protocol&lt;/strong&gt; — a 100% client-side, zero-knowledge Web3 security and treasury enclave supporting &lt;strong&gt;15 networks&lt;/strong&gt; (14 EVM chains + Solana).&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Live App (Instant Interactive Demo Mode included):&lt;/strong&gt; &lt;a href="https://aegis-protocol-web3-eyr2.bolt.host" rel="noopener noreferrer"&gt;https://aegis-protocol-web3-eyr2.bolt.host&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Architecture Overview: Zero Backend, Zero Custodial Risk
&lt;/h2&gt;

&lt;p&gt;Aegis Protocol is architected as a pure browser-based enclave. No private keys, seed phrases, or wallet telemetry ever leave the client. All cryptography runs natively inside the browser's &lt;code&gt;window.crypto.subtle&lt;/code&gt; (WebCrypto API) and isolated memory arrays.&lt;/p&gt;

&lt;h3&gt;
  
  
  1. DustSweeper &amp;amp; Cryptographic Tax-Loss Harvester
&lt;/h3&gt;

&lt;p&gt;The scanner queries token balances across &lt;strong&gt;Ethereum, Base, Arbitrum, Optimism, Polygon, Solana, Avalanche, BNB Chain, zkSync Era, Linea, Scroll, Blast, Sonic, Mantle, and Berachain&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dust Consolidation:&lt;/strong&gt; Aggregates sub-threshold micro-balances into native gas tokens (&lt;code&gt;ETH&lt;/code&gt; / &lt;code&gt;SOL&lt;/code&gt; / native L1/L2 gas).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;On-Chain Tax-Loss Realization:&lt;/strong&gt; Disposes of dead or rugged tokens via verifiable burn/disposition transactions to crystallize capital losses before the tax year closes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Compliance Exports:&lt;/strong&gt; Automatically generates accountant-ready &lt;strong&gt;IRS Form 8949 &amp;amp; EU MiCA CSV ledgers&lt;/strong&gt; (hardened against CSV formula injection) alongside a printable &lt;strong&gt;SHA-256 Tax-Loss Certificate&lt;/strong&gt; containing an immutable hash of the transaction batch.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  2. Approval Sentinel (Live Bytecode &amp;amp; Proxy Threat Scanner)
&lt;/h3&gt;

&lt;p&gt;Most revocation dashboards only check an address against a static blocklist. Aegis Protocol performs live on-chain bytecode inspection directly via JSON-RPC:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Executes &lt;code&gt;eth_getCode&lt;/code&gt; and &lt;code&gt;eth_call&lt;/code&gt; against active token spenders.&lt;/li&gt;
&lt;li&gt;Flags &lt;strong&gt;unlimited allowances (&lt;code&gt;2^256 - 1&lt;/code&gt;)&lt;/strong&gt;, &lt;strong&gt;unverified contract bytecode&lt;/strong&gt;, and &lt;strong&gt;mutable EIP-1967 proxy spenders&lt;/strong&gt; that could be upgraded maliciously after approval.&lt;/li&gt;
&lt;li&gt;Calculates a real-time &lt;strong&gt;Wallet Security Score (&lt;code&gt;0–100&lt;/code&gt;)&lt;/strong&gt; and constructs zero-allowance revocation calldata (&lt;code&gt;approve(spender, 0)&lt;/code&gt;) directly in the client.&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  3. InheritSafe: Zero-Knowledge Dead Man's Switch (&lt;code&gt;AES-256-GCM&lt;/code&gt; + &lt;code&gt;GF(256)&lt;/code&gt; Shamir 2-of-2)
&lt;/h3&gt;

&lt;p&gt;Instead of storing recovery phrases on a server, InheritSafe combines authenticated encryption with finite-field secret sharing:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Key Derivation &amp;amp; Encryption:&lt;/strong&gt; The recovery payload is encrypted locally using &lt;strong&gt;PBKDF2-HMAC-SHA256&lt;/strong&gt; (100,000 iterations) and &lt;strong&gt;AES-256-GCM&lt;/strong&gt; with a random 96-bit IV and 128-bit salt.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Galois Field &lt;code&gt;GF(256)&lt;/code&gt; Polynomial Split:&lt;/strong&gt; The cryptographic key material is split across the irreducible polynomial &lt;code&gt;x^8 + x^4 + x^3 + x + 1&lt;/code&gt; (&lt;code&gt;0x11b&lt;/code&gt;) into two independent mathematical shares:

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Share A (Owner / Cold Backup Key)&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Share B (Beneficiary / Legal Executor Key)&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Information-Theoretic Security:&lt;/strong&gt; Neither share reveals a single byte of the secret on its own. Reconstruction (&lt;code&gt;gfAdd&lt;/code&gt; / &lt;code&gt;gfMul&lt;/code&gt; / &lt;code&gt;gfInv&lt;/code&gt; Lagrange interpolation in &lt;code&gt;GF(256)&lt;/code&gt;) occurs strictly offline in the browser when both shares are combined after the inactivity heartbeat expires.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Rapid Prototyping &amp;amp; Deployment with Bolt.new
&lt;/h2&gt;

&lt;p&gt;I built, iterated, and shipped Aegis Protocol for the &lt;strong&gt;Bolt Builders Week&lt;/strong&gt; competition. Having an integrated AI-native full-stack environment in the browser made it possible to wire up 15-chain RPC adapters, custom SVG 3D isometric telemetry, WebCrypto &lt;code&gt;GF(256)&lt;/code&gt; arithmetic, and strict on-chain payment verification (&lt;code&gt;eth_getTransactionByHash&lt;/code&gt; recipient &amp;amp; wei validation) in record time.&lt;/p&gt;

&lt;p&gt;If you want to build and ship full-stack Web3 or AI apps directly in your browser (and get extra free tokens when signing up), you can try Bolt here via my referral link:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Start building on Bolt.new:&lt;/strong&gt; &lt;a href="https://bolt.cello.so/18py2aPbhSD" rel="noopener noreferrer"&gt;https://bolt.cello.so/18py2aPbhSD&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  Try the Live Enclave (No Wallet Connection Required)
&lt;/h2&gt;

&lt;p&gt;You can test all three engines immediately using the built-in &lt;strong&gt;Interactive Judge Demo Mode&lt;/strong&gt;—it pre-populates simulated multi-chain dust, high-risk proxy approvals, and a live &lt;code&gt;GF(256)&lt;/code&gt; Shamir 2-of-2 vault so you can inspect the full workflow without connecting a live wallet:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Launch Aegis Protocol:&lt;/strong&gt; &lt;a href="https://aegis-protocol-web3-eyr2.bolt.host" rel="noopener noreferrer"&gt;https://aegis-protocol-web3-eyr2.bolt.host&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Feedback from fellow Web3 builders, security auditors, and cryptography enthusiasts is welcome in the comments!&lt;/p&gt;

</description>
      <category>web3</category>
      <category>security</category>
      <category>typescript</category>
      <category>react</category>
    </item>
  </channel>
</rss>
