<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by cladjules on Medium]]></title>
        <description><![CDATA[Stories by cladjules on Medium]]></description>
        <link>https://medium.com/@cladjules?source=rss-ba409d401308------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*15dGgTzpVsjXrLEwJN5jhg.jpeg</url>
            <title>Stories by cladjules on Medium</title>
            <link>https://medium.com/@cladjules?source=rss-ba409d401308------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 04:31:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cladjules/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Cross-Chain Intents vs Bridges: Same Destination, Different Execution Models]]></title>
            <link>https://medium.com/@cladjules/cross-chain-intents-vs-bridges-same-destination-different-execution-models-cdb014666ea2?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/cdb014666ea2</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[bridge]]></category>
            <category><![CDATA[crosschain]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[intent]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Mon, 25 May 2026 05:46:16 GMT</pubDate>
            <atom:updated>2026-05-25T05:46:16.736Z</atom:updated>
            <content:encoded><![CDATA[<p>Cross-chain infrastructure is evolving quickly, but most discussions tend to frame intents as a direct replacement for bridges.</p><p>In reality, they solve slightly different problems.</p><p>I explored some of these differences in this PoC repo: <a href="https://github.com/cladjules/evm-crosschainintent-vs-bridge">https://github.com/cladjules/evm-crosschainintent-vs-bridge</a></p><p>It’s not about arguing that one model is “better” than the other. Instead, it’s a comparison of how traditional bridges and cross-chain intent systems differ architecturally, operationally, and from a UX perspective.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a13D3j_PZtH1wh3UDYHx_A.png" /></figure><h3>Traditional Bridges</h3><p>Traditional bridges are execution-focused systems.</p><p>The user explicitly defines:</p><ul><li>source chain</li><li>destination chain</li><li>asset</li><li>amount</li><li>bridge route</li></ul><p>The bridge infrastructure then performs the transfer through mechanisms such as:</p><ul><li>lock-and-mint or burn-and-release</li><li>liquidity pools</li><li>messaging protocols</li><li>validator attestations</li></ul><p>In most cases, the bridge acts as the primary interoperability layer between ecosystems.</p><h3>Cross-Chain Intents</h3><p>Cross-chain intents shift the interaction model.</p><p>Instead of specifying the exact execution path, the user specifies a desired outcome.</p><p>For example:</p><blockquote>“Receive 100 USDC on Arbitrum”</blockquote><p>The execution layer then determines:</p><ul><li>routing</li><li>liquidity sourcing</li><li>bridging mechanism</li><li>swaps</li><li>settlement path</li></ul><p>Depending on constraints and available infrastructure.</p><p>In many architectures, external solvers or relayers compete to fulfill intents.</p><h3>Core Difference</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/599/1*hd3cCoLpcRheqW_4ABH-aA.png" /></figure><h3>UX Differences</h3><p>Traditional bridges expose more infrastructure details directly to users.</p><p>Users often manage:</p><ul><li>bridge selection</li><li>gas requirements</li><li>token compatibility</li><li>liquidity awareness</li><li>route decisions</li></ul><p>Intent systems abstract more of this complexity behind an execution layer. However, abstraction also introduces tradeoffs:</p><ul><li>less visibility into execution</li><li>solver trust assumptions</li><li>variable routing behavior</li><li>more middleware complexity</li></ul><h3>Liquidity Model Differences</h3><p>Bridges often rely on:</p><ul><li>dedicated liquidity pools</li><li>canonical wrapped assets</li><li>protocol-owned routing systems</li></ul><p>Intent architectures can aggregate across multiple liquidity sources dynamically.</p><p>This may include:</p><ul><li>bridges</li><li>DEX liquidity</li><li>market makers</li><li>relayers</li><li>off-chain coordination</li></ul><p>In practice, intent systems often still depend on existing bridges underneath.</p><h3>Infrastructure Relationship</h3><p>One important point:</p><p>Cross-chain intents and bridges are not necessarily competing systems.</p><p>In many architectures:</p><ul><li>bridges remain the settlement layer</li><li>intents become the orchestration layer</li></ul><p>Meaning:</p><ul><li>bridges move assets</li><li>intent systems coordinate how that movement happens</li></ul><p>The two models can coexist rather than replace one another.</p><h3>Security Considerations</h3><p>Both approaches introduce different security surfaces.</p><h3>Bridges</h3><p>Common concerns include:</p><ul><li>validator compromise</li><li>multisig risks</li><li>smart contract exploits</li><li>liquidity draining</li><li>replay/message verification attacks</li></ul><h3>Intent Systems</h3><p>Additional considerations may include:</p><ul><li>malicious solvers</li><li>failed fulfillment</li><li>MEV extraction</li><li>auction manipulation</li><li>intent censorship</li><li>settlement guarantees</li></ul><p>Intent systems do not eliminate bridge risks entirely, especially when bridges are still used underneath.</p><h3>Final Thoughts</h3><p>Cross-chain interoperability is likely evolving toward layered architectures rather than a single dominant model.</p><p>Traditional bridges provide the foundational asset movement layer.</p><p>Intent systems introduce a higher-level coordination and execution abstraction on top of that infrastructure.</p><p>The interesting part is not necessarily “which one wins,” but how both approaches may integrate together as multi-chain ecosystems mature.</p><p>Intent systems are already being explored by protocols building interoperability and execution layers across ecosystems.</p><p>One example is:</p><p>🌉 <strong>Across Protocol:</strong><br> <a href="https://across.to/?utm_source=chatgpt.com">Across Protocol</a></p><p>Across has been exploring intent-based cross-chain execution and solver-based architectures to improve interoperability UX and routing efficiency.</p><h3>Explore the PoC</h3><p>I built a small PoC exploring the architectural differences between traditional bridging flows and intent-based execution models:</p><p>🚀 <strong>PoC Repo: </strong><a href="https://github.com/cladjules/evm-crosschainintent-vs-bridge">https://github.com/cladjules/evm-crosschainintent-vs-bridge</a></p><p>🌐 <strong>PoC App:</strong> <a href="https://evm-crosschainintent-vs-bridge.vercel.app/">https://evm-crosschainintent-vs-bridge.vercel.app/</a></p><p>The repo experiments with:</p><ul><li>deterministic bridge-style flows</li><li>intent-based routing concepts</li><li>execution abstraction</li><li>cross-chain settlement patterns</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cdb014666ea2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How We Used an Arbitrum L3 to Eliminate Gas Fees and Onboard Web2 User.]]></title>
            <link>https://medium.com/@cladjules/how-we-used-an-arbitrum-l3-to-eliminate-gas-fees-and-onboard-web2-user-7afbc457ff80?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/7afbc457ff80</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[arbitrum]]></category>
            <category><![CDATA[layer-3]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[orbit-chain]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Wed, 11 Mar 2026 12:41:37 GMT</pubDate>
            <atom:updated>2026-03-19T06:36:55.662Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t1NrJSZGGwzOUD6-C0Y8eQ.png" /></figure><p><em>How launching our own Arbitrum Orbit chain allowed us to give users infinite gas while keeping full EVM compatibility.</em></p><p>One of the biggest barriers to onboarding Web2 users into Web3 is <strong>gas</strong>.</p><p>Even when fees are small, the user experience is still painful:</p><ul><li>Users must acquire ETH</li><li>They must understand gas fees</li><li>They must keep ETH in their wallet</li><li>Transactions fail if gas runs out</li></ul><p>For crypto-native users, this is normal.</p><p>For Web2 users, it’s <strong>a deal breaker</strong>.</p><p>While working with a DAO, we decided to solve this problem <strong>at the infrastructure level</strong>, rather than layering complex UX solutions on top.</p><p>The solution was launching our own <strong>Arbitrum Orbit Layer 3 chain</strong> with a <strong>custom gas token</strong>.</p><h3>The Problem With Gas Sponsorship</h3><p>Many applications try to improve UX by <strong>sponsoring gas fees for users</strong>.</p><p>While this works, it creates new problems:</p><ul><li>The protocol must hold ETH</li><li>Costs grow with usage</li><li>Infrastructure becomes expensive</li><li>Relayer systems become complex</li></ul><p>For large-scale consumer applications, <strong>gas sponsorship does not scale</strong>.</p><p>We needed a different approach.</p><h3>The Solution: Our Own Orbit L3</h3><p>Using <strong>Arbitrum Orbit</strong>, we deployed our own Layer 3 chain settling on <strong>Arbitrum</strong>.</p><p>Orbit allows teams to create <strong>custom chains with configurable execution environments</strong> while remaining fully EVM compatible.</p><p>The key configuration we used was:</p><p><strong>A custom native gas token.</strong></p><p>This meant our L3 <strong>did not require ETH for gas</strong>.</p><p>Instead, transactions were paid using a token we controlled.</p><p>Because we controlled supply, we could <strong>mint gas tokens freely and distribute them to users</strong>.</p><blockquote><em>Users could transact without ever worrying about gas.</em></blockquote><p>And importantly:</p><blockquote><em>We didn’t have to sponsor transactions ourselves.</em></blockquote><h3>Our Two-Token Architecture</h3><p>To maintain compatibility with existing liquidity on L2, we designed a <strong>dual-token system</strong>.</p><h3>1. Native Gas Token (L3)</h3><p>The first token existed <strong>only on the L3</strong>.</p><p>Its sole purpose was paying transaction fees.</p><p>Characteristics:</p><ul><li>Native token of the chain</li><li>Mintable by the DAO</li><li>Used exclusively for gas</li><li>Freely distributed to users</li></ul><p>Because we controlled the supply, we effectively created an <strong>infinite gas system</strong> for our application.</p><h3>2. Wrapped Token Representing the L2 Asset</h3><p>The second token was a <strong>wrapped representation of the DAO’s token that lived on L2</strong>.</p><p>This token carried the <strong>real economic value</strong> of the ecosystem.</p><p>Characteristics:</p><ul><li>ERC-20 token on L3</li><li>Backed 1:1 by the L2 token</li><li>Used for rewards, trading, and protocol utility</li><li>Bridgeable between L2 and L3</li></ul><p>This architecture separated <strong>gas mechanics</strong> from <strong>economic value</strong>.</p><h3>Bridging L2 Liquidity to L3</h3><p>Liquidity already existed on Arbitrum L2.</p><p>Instead of fragmenting liquidity across layers, we built a <strong>custom bridge</strong> between L2 and L3.</p><p>The bridge allowed users to:</p><ol><li>Lock tokens on L2</li><li>Mint wrapped tokens on L3</li><li>Use those tokens within the L3 ecosystem</li><li>Withdraw them back to L2 when needed</li></ol><p>This design ensured:</p><ul><li><strong>Liquidity stayed on L2</strong></li><li><strong>User interactions happened on L3</strong></li></ul><p>Which is exactly the purpose of Layer 3 architectures.</p><p>We also built our own <strong>bridge interface</strong>, giving users a seamless experience when moving assets between layers.</p><h3>Building a Full L3 Ecosystem</h3><p>Launching an L3 meant we controlled the entire infrastructure stack.</p><p>So we didn’t stop at the chain itself.</p><p><strong>We also deployed our Own Block Explorer</strong></p><p>Users could inspect:</p><ul><li>Transactions</li><li>Contracts</li><li>Network activity</li></ul><p>This gave the chain the transparency users expect from major networks.</p><h3>Compatible With Web3Auth and Safe</h3><p>For signing Web2 user transactions from our backend, we integrated <strong>Web3Auth</strong> + <strong>Gnosis Safe</strong>.</p><p>This means:</p><ul><li>User signs all transactions with Web3Auth SDK on the frontend</li><li>The backend is an additional signer with private key mechanism</li><li>Safe Multisig submits the transaction with 2 signers</li></ul><h3>Fully EVM Compatible</h3><p>Despite running our own chain, the environment remained <strong>fully EVM compatible</strong>.</p><p>Developers could:</p><ul><li>Deploy existing contracts</li><li>Use standard Ethereum tooling</li><li>Integrate common wallets</li><li>Reuse existing infrastructure</li></ul><p>From a developer perspective, deploying on our L3 felt <strong>just like deploying on Ethereum</strong>.</p><h3>The Web2 Onboarding Breakthrough</h3><p>The biggest impact came from <strong>user experience</strong>.</p><p>Because we controlled the gas token:</p><ul><li>Users didn’t need ETH</li><li>Transactions never failed due to insufficient gas</li><li>Gas tokens could be distributed automatically</li><li>Wallet onboarding became simple</li></ul><p>From the user’s perspective, interacting with the blockchain felt <strong>like using a normal Web2 app</strong>.</p><p>No confusing gas mechanics.</p><p>No extra tokens to buy.</p><p>No friction.</p><h3>The Bigger Lesson</h3><p>Consumer applications shouldn’t try to <strong>teach users about gas</strong>.</p><p>They should make gas <strong>invisible</strong>.</p><p>Layer 3 infrastructure allows teams to redesign blockchain architecture around <strong>user experience instead of protocol limitations</strong>.</p><p>By leveraging <strong>Arbitrum Orbit</strong>, custom gas tokens, and L2 liquidity, we created an environment where Web2 users could participate in Web3 <strong>without ever thinking about gas fees</strong>.</p><p>And that’s how onboarding should feel.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7afbc457ff80" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How I Built a fully automated AI NFT Collection Generator Using LangChain, MCP & Runware]]></title>
            <link>https://medium.com/@cladjules/how-i-built-a-nftgating-com-93c35d448579?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/93c35d448579</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Fri, 27 Feb 2026 06:17:16 GMT</pubDate>
            <atom:updated>2026-03-03T07:26:32.218Z</atom:updated>
            <content:encoded><![CDATA[<p>When I decided to launch my NFT Generation Platform (NFTGating.com) I had to think about how I will integrate AI into Web3.</p><p>Building an AI NFT generator isn’t about “generate an image and done.”</p><p>It’s about orchestrating:</p><ul><li>Prompt engineering</li><li>Image generation</li><li>Metadata structuring</li><li>File uploads to IPFS</li><li>Streaming responses</li><li>Observability</li><li>Secure API boundaries</li></ul><p>I wanted a <strong>real AI workflow system</strong>, not a glued-together script.</p><p>Here’s how I built it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lFI4yUTlU8KQ7cQHYoum_Q.png" /><figcaption>The actual LangChain flow</figcaption></figure><h3>The High-Level Architecture</h3><p>Here’s the full flow:</p><pre>LangChain Agent (MD-based AI generation logic)<br>        ↓<br>LangChain TypeScript Server (LangGraph Agent via SDK)<br>        ↓<br>Next.js API Route (Middleware, key protection, streaming relay)<br>        ↓<br>Next.js Frontend</pre><p>Behind the scenes:</p><ul><li>MCP Runware server → image generation</li><li>MCP Pinata server → automatic IPFS uploads</li></ul><p>Everything streams over HTTP Streamable.</p><h3>Step 1 — Designing the Agent with LangChain Agent Builder</h3><p>I used the LangChain Agent Builder to prototype my NFT Collection Generator.</p><p>The agent includes:</p><h4>Main Agent</h4><p><strong>NFT Collection Generator</strong></p><ul><li>Orchestrates the full workflow</li><li>Calls sub-agents</li><li>Calls MCP tools</li><li>Produces structured collection output</li></ul><h3>Sub-Agents</h3><ul><li>image_prompt_generator</li><li>metadata_generator</li></ul><p>This separation lets the system:</p><ul><li>Think about artistic direction separately</li><li>Generate structured metadata deterministically</li><li>Keep reasoning modular</li></ul><p>This is where LangGraph shines.</p><p>Instead of chaotic prompt chaining, I get:</p><ul><li>Structured state transitions</li><li>Deterministic flow</li><li>Explicit tool invocation</li></ul><h3>Step 2 — Custom MCP Servers (The Clean Architecture Layer)</h3><p>To avoid coupling tool logic directly inside the agent server, I used the Model Context Protocol (MCP).</p><h3>1️⃣ Runware MCP (Image Generation)</h3><p>I built my own MCP server:</p><p>👉 mcp-runware: <a href="https://github.com/cladjules/mcp-runware">https://github.com/cladjules/mcp-runware</a></p><p>This server:</p><ul><li>Exposes image generation as a tool</li><li>Streams generation results</li><li>Can list models</li><li>Is reusable outside this NFT project</li><li>Fully compatible with HTTP Streamable or Stdio transport if you want to run it locally</li></ul><p>The agent simply calls:</p><pre>generate_image()</pre><p>It does not care how the image is produced.</p><p>That abstraction is powerful.</p><h3>2️⃣ Pinata MCP (IPFS Upload Automation)</h3><p>For storage, I used Pinata’s MCP integration to automatically:</p><ul><li>Upload generated images</li><li>Upload metadata files</li><li>Return IPFS CIDs</li><li>Ensure proper NFT folder structure</li></ul><p>This removes a massive manual step in NFT workflows.</p><p>Now the pipeline becomes:</p><p>Prompt → Image + Metadata → IPFS → Done.</p><p>Fully automated.</p><h3>Step 3 — Hosting the LangGraph Agent</h3><p>Once the agent logic was defined, I:</p><ul><li>Downloaded the agent .md files</li><li>Ported them into a TypeScript server</li><li>Used the LangChain SDK</li><li>Structured it with LangGraph</li></ul><p>I then deployed the server on LangChain’s platform.</p><p>Why? Because I get:</p><ul><li>Agent Studio (interactive testing)</li><li>Full execution tracing</li><li>Graph-level debugging</li><li>Tool call visibility</li><li>Latency breakdown</li><li>Logs per run</li></ul><p>For production AI systems, this is non-negotiable.</p><p>Without tracing, debugging agents is blindfolded surgery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mnSiaLP-b1FQmYfW_vBScg.png" /></figure><h3>Step 4 — Streaming Across the Entire Stack</h3><p>Both servers stream via HTTP:</p><ul><li>MCP Runware → streams image generation</li><li>LangChain Agent → streams reasoning + tool calls</li><li>Next.js API → relays stream</li><li>Frontend → consumes progressive output</li></ul><p>Result:</p><ul><li>Real-time NFT creation experience</li><li>No blocking UI</li><li>Token-by-token generation</li></ul><p>Streaming is not a “nice to have.”<br>It changes UX completely.</p><h3>Could I Have Embedded the Agent Directly in Next.js?</h3><p>Yes.</p><p>I could have used the Vercel AI SDK: <a href="https://ai-sdk.dev/">https://ai-sdk.dev/</a><br>and run the agent directly inside my Next.js app.</p><p>That would simplify infrastructure.</p><p>But I chose not to. Here’s why:</p><h4>Architecture Tradeoff Comparison</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kPA8ZJGa3K3kWLZDkxKc3g.png" /></figure><h4>Why Separation Wins (For Me)</h4><p>Embedding the agent inside Next.js would mean:</p><ul><li>No LangChain Studio</li><li>No execution graphs</li><li>Less visibility into tool failures</li><li>Harder scaling later</li></ul><p>By separating:</p><ul><li>My AI becomes its own microservice</li><li>I can version workflows independently</li><li>I can plug it into other apps</li><li>I can test flows without touching frontend code</li></ul><p>It feels closer to <strong>AI-native infrastructure design</strong>.</p><h3>The Final System Diagram</h3><p>Here’s the actual flow in production:</p><pre>User<br> ↓<br>Next.js Frontend<br> ↓<br>Next.js API (middleware)<br> ↓<br>LangChain Agent Server (LangGraph)<br> ↓<br>   ↙︎                 ↘︎<br>Runware MCP        Pinata MCP<br>(Image Gen)        (IPFS Upload)</pre><p>Each component has a single responsibility.</p><p>That’s what makes it scalable.</p><h3>Final Thoughts</h3><p>AI agents are not prompts.</p><p>They are:</p><ul><li>Stateful systems</li><li>Tool orchestrators</li><li>Distributed services</li><li>Observability-driven infrastructure</li></ul><p>When you treat them like that, you stop building demos and start building products.</p><p>If you’re building AI-driven infrastructure, workflow or agent-based systems, I’m happy to dive deeper into:</p><ul><li>MCP patterns</li><li>Streaming architectures</li><li>LangGraph state machines</li><li>Secure agent hosting patterns</li></ul><p>Let’s build real AI systems 🚀</p><p>If you want to explore or build on it, here are the links again:</p><p>👉 <strong>MCP Runware GitHub: </strong><a href="https://github.com/cladjules/mcp-runware">https://github.com/cladjules/mcp-runware</a><br>👉 <strong>Link to my AI NFT Platform: </strong><a href="https://nftgating.com/">https://nftgating.com/</a> (Coming soon)</p><h3>Let’s connect</h3><p>If you’re exploring Web3 or AI projects or need help on <strong>architecture</strong> or <strong>developing</strong> them, I’d love to chat.</p><p><strong>📌 Let’s connect: </strong><a href="https://linktr.ee/julien.a">https://linktr.ee/julien.a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=93c35d448579" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vibe Coding Platforms: Amazing Tools or Hidden Dangers for New Developers?]]></title>
            <link>https://medium.com/@cladjules/vibe-coding-platforms-amazing-tools-or-hidden-dangers-for-new-developers-6e49ad9a6733?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/6e49ad9a6733</guid>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[vibe-coding]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[nextjs]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Thu, 11 Dec 2025 06:08:02 GMT</pubDate>
            <atom:updated>2025-12-19T15:37:46.812Z</atom:updated>
            <content:encoded><![CDATA[<h3>Vibe Coding Platforms: Amazing Tools or Hidden Dangers for New or Non Developers?</h3><p>Vibe Coding platforms are fantastic for bootstrapping. But to build <strong>secure, scalable projects</strong>, developer knowledge is irreplaceable.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*19U68vmolZDMXehQvqN7Lg.png" /></figure><p>Recently, I experimented with my favourite Vibe Coding platform. My goal was simple: create a blog about violins<strong>, </strong>nothing fancy. I prompted the platform, synced the project with GitHub, and downloaded it.</p><p>At first glance, everything looked perfect. But a deeper inspection revealed some concerning issues.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*scfcb8vHBL6pxcutB2L5Fg.png" /></figure><h3>Outdated Libraries and Security Risks</h3><p>The project was built with:</p><ul><li><strong>React 18</strong> (instead of the latest React 19)</li><li><strong>Tailwind 3</strong> (instead of Tailwind 4)</li><li>And more…</li></ul><p>Running npm audit revealed <strong>four vulnerabilities</strong>, including <strong>one high-severity issue</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*Q1m_yhSFBuibWcEmj7e_Lg.png" /></figure><p>A simple npm audit fix resolved half of them immediately, definitely something such platform should handle by default.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*La7uWhhjojfB7R-ENmAZxg.png" /></figure><p>This small exercise highlights a bigger problem:</p><blockquote><em>Vibe Coding platforms often generate projects with </em><strong><em>outdated dependencies and potential security risks</em></strong><em>.</em></blockquote><h3>The Illusion of Superpowers</h3><p>More and more people around me want to become developers, thinking these tools give them <strong>superpowers</strong> to build apps and websites like professionals.</p><p>But many forget the essentials:</p><ul><li><strong>Security</strong> — Vulnerable dependencies can be exploited.</li><li><strong>Maintenance</strong> — Projects require regular upkeep to avoid technical debt.</li><li><strong>Library updates</strong> — Staying current prevents compatibility and performance issues.</li><li><strong>Infrastructure &amp; scalability</strong> — Real-world apps need more than “working code.”</li></ul><p>Vibe Coding platforms are incredible for <strong>creating</strong>, but they are not a complete solution. They are <strong>tools</strong>, not shortcuts to mastering development.</p><h3>A Growing Concern</h3><p>A friend recently posted about seeing job titles like <em>“Vibe Code Clean-Up Specialist.”</em> That made me realise: many people are spending more time fixing what these platforms generate than learning the underlying principles.</p><p>In the long term, this can do more harm than good.</p><h3>Takeaway</h3><p>While I’m critical of the risks, I’m <strong>not</strong> against Vibe Coding platforms. In fact, I believe they have a <strong>valuable place</strong> in modern development workflows. They can speed up:</p><ul><li>UI/UX mockups</li><li>Component scaffolding</li><li>Boilerplate setup</li><li>Idea prototyping</li><li>Repetitive front-end tasks</li></ul><p>Used correctly, these tools can save developers hours.</p><p>But here’s the important part:</p><blockquote><strong><em>You cannot replace an experienced development team with a Vibe Coding tool.</em></strong><em><br> They need to work </em>together<em>, not in place of one another.</em></blockquote><p>A proper engineering team brings critical skills that no AI generator can replicate:</p><ul><li><strong>Security best practices</strong></li><li><strong>Scalable architecture</strong></li><li><strong>Performance optimisation</strong></li><li><strong>Clean, maintainable code</strong></li><li><strong>Dependency and infrastructure management</strong></li><li><strong>Long-term technical strategy</strong></li></ul><p>Vibe Coding gives you speed.<br>Developers ensure <strong>quality, safety, and longevity</strong>.<br>You need both.</p><p>To help bridge this gap, I built a tool that transforms AI-generated <strong>Vite projects</strong> into <strong>solid, production-ready Next.js application.</strong></p><p>Check it out here: <a href="https://github.com/cladjules/lovable-nextjs">https://github.com/cladjules/lovable-nextjs</a></p><h3>Let’s connect</h3><p>If you’re exploring Vibe-generated projects or need help <strong>upgrading, fixing, or securing</strong> them, I’d love to chat.</p><p><strong>📌 Check out my tool to transform AI-generated Vite projects into robust Next.js projects: </strong><a href="https://github.com/cladjules/lovable-nextjs">https://github.com/cladjules/lovable-nextjs</a></p><p><strong>📌 Want advice or personalised guidance? Let’s connect: </strong><a href="https://linktr.ee/julien.a">https://linktr.ee/julien.a</a></p><blockquote><em>Don’t struggle alone with your Vibe projects — reach out and let’s make them </em><strong><em>solid and maintainable</em></strong><em> together!</em></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6e49ad9a6733" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ The RWA Experiment: Trying to Tokenize a Real-World Asset]]></title>
            <link>https://medium.com/@cladjules/the-rwa-experiment-trying-to-tokenize-a-real-world-asset-967247977670?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/967247977670</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[nft]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[rwa]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Tue, 09 Dec 2025 06:14:17 GMT</pubDate>
            <atom:updated>2025-12-12T03:16:30.986Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*767GUBnDUGuSvecfxGAkCA.jpeg" /></figure><p>Many people talk about “tokenizing RWAs.”<br>Most people don’t realise how easily it is to build something that works end-to-end with the proper tools.</p><p>So I decided to run a simple experiment:</p><blockquote><strong><em>Can we create a minimal system where an on-chain token interacts with real-world logic off-chain securely, verifiably, and without hacks?</em></strong></blockquote><p>I built a lightweight hybrid architecture called <strong>RWA-Builder</strong> to test how an RWA could move through its full lifecycle: minting, pricing, syncing with off-chain systems, and withdrawals.</p><p><strong>GitHub:</strong> <a href="https://github.com/cladjules/rwa-builder">https://github.com/cladjules/rwa-builder</a><br><strong>Demo:</strong> <a href="https://rwa.cladjules.com/">https://rwa.cladjules.com/</a></p><p>Here’s what the experiment looked like — and what it revealed.</p><h3>🔧 The Architecture</h3><p>RWA-Builder is built around a hybrid model:<br><strong>on-chain token state + oracle compute + off-chain business logic.</strong></p><pre>User Interaction (mint / withdraw)<br>         │<br>         ▼<br>  TokenAsset Contract (ERC1155 + functions + oracle hooks)<br>         │<br>         ├─ Asset Logic (mint / withdraw)<br>         ├─ Chainlink Price Feed (ETH/USD)<br>         └─ Chainlink Functions (off-chain API call)<br>                │<br>                ▼<br>          External Backend API<br>                │<br>                ▼<br>         Off-chain database</pre><p>A simple diagram, but it captures the core idea:<br><strong>the blockchain handles ownership; the backend handles reality; and Chainlink keeps the two synchronised.</strong></p><h3>🪙 1. On-Chain Tokens (ERC1155)</h3><p>The smart contract uses ERC1155 for flexibility:</p><ul><li>multiple assets within the same contract</li><li>batch operations</li><li>low overhead</li></ul><p>Each token ID represents a distinct asset category.<br>No elaborate tokenomics.<br>Just a clean representation layer so we can focus on RWA mechanics.</p><h3>💵 2. Real-World Pricing With Chainlink Feeds</h3><p>When minting an asset, the contract checks the <strong>live ETH/USD price</strong> from a Chainlink Price Feed.</p><p>This ensures the user pays the correct real-time cost making minting a <em>real-world price-validated action</em>, not a static guess.</p><h3>🔗 3. The Bridge Layer: Chainlink Functions</h3><p>This is the heart of the experiment.</p><p>Whenever something meaningful happens on-chain minting, withdrawing, the contract triggers a <strong>Chainlink Function</strong> that securely calls the backend using encrypted secrets.</p><p>This allows:</p><ul><li>real-world validation</li><li>database sync</li><li>business logic execution</li><li>off-chain state updates</li></ul><p>It’s the missing piece most RWA systems hand-wave away.</p><h3>🏗 4. Off-Chain Backend (Where the Real World Lives)</h3><p>The backend handles the real-world side of the asset:</p><ul><li>updating ownership records</li><li>validating actions</li><li>triggering asset release</li><li>storing metadata</li></ul><p>The blockchain acts as <strong>ownership truth</strong>.<br>The backend acts as <strong>real-world truth</strong>.<br>This duality is essential for RWAs.</p><h3>🔄 The Tested Lifecycle</h3><p>Here’s the full flow simulated in the experiment:</p><h3>Minting</h3><ol><li>User mints</li><li>Contract checks price</li><li>Token created</li><li>Backend notified via oracle</li></ol><h3>Withdrawal</h3><ul><li>User burns/redeems</li><li>Backend triggers real-world release/settlement</li></ul><p>The two systems remained in sync end-to-end.</p><h3>🧠 What the Experiment Revealed</h3><h3>1. The token is the easy part.</h3><p>ERC1155 was trivial.<br>The difficult part was coordinating reality.</p><h3>2. Oracles are mandatory.</h3><p>Price feeds + secure compute = the only way to link real-world conditions to blockchain actions.</p><h3>3. RWAs require hybrid systems, not maximalism.</h3><p>Pure on-chain doesn’t work.<br>Pure off-chain loses transparency.<br>Hybrid is the only scalable path.</p><h3>4. Secret management is critical.</h3><p>Chainlink’s encrypted secrets solve a major RWA security challenge.</p><h3>5. RWAs need two synchronized truths.</h3><ul><li>Blockchain = ownership</li><li>Backend = real-world state</li></ul><p>Neither can replace the other.</p><h3>🏁 Conclusion</h3><p>This experiment wasn’t meant to be production-ready.<br>There are no audits, no legal layer, no compliance tooling.<br>But it <em>does</em> prove something meaningful:</p><blockquote><strong><em>A simple, verifiable hybrid RWA system is possible today with existing tools.</em></strong></blockquote><p>And perhaps more importantly:</p><blockquote><strong><em>RWAs will live in the bridge between on-chain and off-chain — not exclusively in either one.</em></strong></blockquote><p>If you want to explore or build on it, here are the links again:</p><p>👉 <strong>GitHub:</strong> <a href="https://github.com/cladjules/rwa-builder">https://github.com/cladjules/rwa-builder</a><br>👉 <strong>Live Demo:</strong> <a href="https://rwa.cladjules.com/">https://rwa.cladjules.com/</a></p><h3>Let’s connect</h3><p>If you’re exploring Web3 RWA projects or need help on <strong>architecture</strong> or <strong>developing</strong> them, I’d love to chat.</p><p><strong>📌 Let’s connect: </strong><a href="https://linktr.ee/julien.a">https://linktr.ee/julien.a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=967247977670" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ From Permit to EIP-7702: Modern Patterns for One-Step ERC-20 Approve & Transfers]]></title>
            <link>https://medium.com/@cladjules/how-to-perform-approve-send-for-erc-20-tokens-in-one-flow-4be9b0c17bbe?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/4be9b0c17bbe</guid>
            <category><![CDATA[hard-hat]]></category>
            <category><![CDATA[erc-7702]]></category>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 05:03:16 GMT</pubDate>
            <atom:updated>2025-12-21T09:16:42.746Z</atom:updated>
            <content:encoded><![CDATA[<p>One of the biggest friction points in ERC‑20 token usage is the <strong>two-step approve + transfer flow</strong>. <strong>EIP-7702</strong> is the true game changer!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nknWVQEvWmMWERw7i5VfNg.png" /></figure><p>Most ERC‑20 interactions require users to first call approve() and then transferFrom(). This is clunky, doubles gas fees, and creates a bad UX.</p><p>Fortunately, modern patterns let you collapse this into a <strong>single user interaction</strong>. Below, I’ll walk through <strong>three practical approaches</strong> — all implemented and tested in my <a href="https://github.com/cladjules/evm-experiment-approve-transfer">GitHub repo</a> so your dApp can transfer tokens in <strong>one smooth flow</strong>.</p><p>In my example, we have a Staking Vault that would perform transferFrom in behalf of the user to lock some ERC-20 tokens in the vault, which would need to be approved ahead.</p><h3>1. Permit (EIP‑2612)</h3><p>A standardised way for users to sign an off-chain approval that a contract executes on-chain. Eliminates the need for a separate approve() transaction, instead you would use permit.</p><p><strong>How it works:</strong></p><ol><li>The user signs a typed data permit off-chain and call a gas-less permit.</li><li>The contract executes transferFrom() in a single transaction.</li></ol><p><strong>Example:</strong></p><pre>IERC20Permit(token).permit(<br>    msg.sender,<br>    address(this),<br>    amount,<br>    deadline,<br>    v, r, s<br>);<br>IERC20(token).transferFrom(msg.sender, address(this), amount);</pre><pre>const signature = await user.signTypedData({ /* domain, Permit type */ });<br>await token.permit(owner, vault.address, amount, deadline, v, r, s);<br>await vault.deposit(token.address, amount);</pre><p><strong>⚡ Pros:</strong></p><ul><li>Single transaction for the user</li><li>No on-chain approval needed</li></ul><p><strong>⚠ Cons:</strong></p><ul><li>Only works with tokens that implement EIP‑2612</li></ul><h3>2. ERC‑1363: Transfer with Callback</h3><p>ERC‑1363 extends ERC‑20 with extra callback functions, letting the receiving contract react immediately when tokens arrive:</p><ul><li>transferAndCall</li><li>approveAndCall</li></ul><p>Instead of calling approve() and transferFrom(), the receiving contract executes logic in a callback (onApprovalReceived or onTransferReceived).</p><p><strong>Example:</strong></p><pre>token.approveAndCall(stakingVault, amount, data);<br>token.transferAndCall(stakingVault, amount, data);</pre><p>The receiving contract implementing IERC1363Receiver and IERC1363Spender gets an immediate callback:</p><pre>onApprovalReceived(...)<br>onTransferReceived(...)</pre><p><strong>⚡ Pros:</strong></p><ul><li>Single transaction for the user</li><li>Automatically triggers contract logic</li></ul><p><strong>⚠ Cons:</strong></p><ul><li>Requires a modified token supporting ERC‑1363</li><li>Not compatible with legacy tokens</li></ul><h3>🌟 3. The Game changer — EIP‑7702 (EOA Delegation)</h3><p>Allows an externally owned account (EOA) to <strong>temporarily delegate execution to a batch contract</strong>, running multiple calls atomically (e.g., approve + transferFrom).</p><p><strong>How it works:</strong></p><ol><li>The EOA signs a delegation authorization (EIP‑7702).</li><li>A single transaction executes approve + deposit in one atomic operation with a deployed batch contract.</li><li>Works with <strong>any ERC‑20 token</strong>, including legacy ones.</li></ol><p><strong>Example:</strong></p><pre>const tx = {<br>  to: eoaAddress,<br>  data: encodeFunctionData(BatchExecutor, &quot;executeBatch&quot;, [<br>    [token, vault],<br>    [0, 0],<br>    [approveCalldata, depositCalldata]<br>  ]),<br>  authorizationList: [signedAuthorization],<br>};</pre><p><strong>⚡ Pros:</strong></p><ul><li>Works with all ERC‑20 tokens</li><li>No token upgrade needed</li><li>Keeps the same EOA address</li><li>Atomic single transaction</li></ul><p><strong>⚠ Cons:</strong></p><ul><li>Requires network support for EIP‑7702</li></ul><h3>📊 Comparison Table</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oO8mbmj8JBUHz1GAZjZIng.png" /></figure><h3>📝 Conclusion</h3><p>You no longer have to force users through a clunky two-step ERC‑20 approval flow.</p><p>Whether your token supports <strong>EIP‑2612</strong>, you can use <strong>ERC‑1363 callbacks</strong>, or you rely on a <strong>batch executor with EIP‑7702</strong>, each pattern lets you <strong>collapse approve + transfer into a single, smooth experience</strong>.</p><h3>Let’s connect</h3><p>If you’re exploring options for your smart contracts or want to create a new dApp, I’d love to chat.</p><p><strong>📌 </strong>Check out my Github repo for working contracts and tests: <a href="https://github.com/cladjules/evm-experiment-approve-transfer">https://github.com/cladjules/evm-experiment-approve-transfer</a></p><p><strong>📌 Want advice or personalised guidance? Let’s connect: </strong><a href="https://linktr.ee/julien.a">https://linktr.ee/julien.a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4be9b0c17bbe" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building secure ephemeral EVM wallets with AWS KMS for an Escrow system]]></title>
            <link>https://medium.com/@cladjules/building-secure-ephemeral-evm-wallets-with-aws-kms-for-an-escrow-system-21196bc06163?source=rss-ba409d401308------2</link>
            <guid isPermaLink="false">https://medium.com/p/21196bc06163</guid>
            <category><![CDATA[evm]]></category>
            <category><![CDATA[encryption]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-kms]]></category>
            <category><![CDATA[crypto-wallet]]></category>
            <dc:creator><![CDATA[cladjules]]></dc:creator>
            <pubDate>Mon, 24 Nov 2025 01:46:32 GMT</pubDate>
            <atom:updated>2025-12-12T03:16:41.430Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*h4GzotN__ubFwaLjzRlaZA.jpeg" /></figure><p>In a recent project, we needed to build a secure <strong>escrow system on an EVM chain</strong> that could temporarily hold funds during short-lived transactions between parties. The system required:</p><ul><li>Wallets generated on demand</li><li>Secure signing of Ethereum transactions</li><li>A guarantee that private keys were never exposed</li><li>Automatic sweeping of funds once escrow conditions were met</li><li>Complete destruction of all keys afterward</li></ul><p>To achieve this, we used<strong> generated key pairs</strong>, imported into <strong>AWS KMS</strong> for signing, and a fully private backend environment to process transactions.</p><h3>The Challenge</h3><p>We needed a workflow where:</p><ul><li>Users could deposit funds into temporary escrow wallets</li><li>The system could sign on-chain transactions programmatically</li><li>No developer, server, or third party ever had persistent access to the private key</li><li>Each escrow period had its own key and wallet lifecycle</li><li>After sweeping funds, the key was permanently destroyed</li></ul><p>Traditional wallet management approaches required access and self-storage of private key. We needed something better.</p><h3>Our Solution in Short</h3><p>To meet these requirements, we designed a system where a temporary Ethereum key pair is generated locally, immediately imported into AWS KMS, and then discarded. All signing is performed inside KMS, accessed only by a private backend running in a private VPC through a unique IAM role. A queue-driven workflow triggers signing, sweeps funds when escrow conditions are met, and finally schedules the KMS key for deletion. No private key ever leaves KMS, and each escrow instance has its own short-lived cryptographic identity.</p><h3>Importing Keys into AWS KMS</h3><p>We used KMS Javascript API to dynamically create the key.</p><pre>const command = new CreateKeyCommand({<br>    KeyUsage: &#39;SIGN_VERIFY&#39;,<br>    KeySpec: &#39;ECC_SECG_P256K1&#39;,<br>    Origin: &#39;EXTERNAL&#39;,<br>    Policy: {<br>        &quot;Version&quot;: &quot;2012-10-17&quot;,<br>        &quot;Id&quot;: &quot;caller-only&quot;,<br>        &quot;Statement&quot;: [<br>            {<br>                &quot;Sid&quot;: &quot;KMS Permissions&quot;,<br>                &quot;Effect&quot;: &quot;Allow&quot;,<br>                &quot;Principal&quot;: {<br>                    &quot;AWS&quot;: &quot;IAM_ROLE&quot;<br>                },<br>                &quot;Action&quot;: &quot;kms:*&quot;,<br>                &quot;Resource&quot;: &quot;*&quot;<br>            }<br>        ]<br>    }<br>});<br><br>const response = await kms.send(command);<br>const { KeyId } = response.KeyMetadata;</pre><p>Keys with secp256k1 were then generated using Node.js’ crypto module then imported to the KMS key:</p><pre>// All the functions are using crypto library<br><br>const { privateKey } = generateKeyPairSync(&#39;ec&#39;, {<br>  namedCurve: &#39;secp256k1&#39;,<br>  publicKeyEncoding: { type: &#39;spki&#39;, format: &#39;pem&#39; },<br>  privateKeyEncoding: { type: &#39;sec1&#39;, format: &#39;pem&#39; },<br>});<br><br>const { ImportToken, PublicKey } = await kms.send(new GetParametersForImportCommand(<br>  {<br>    KeyId: KeyId,<br>    WrappingAlgorithm: &#39;RSAES_OAEP_SHA_256&#39;,<br>    WrappingKeySpec: &#39;RSA_2048&#39;,<br>  }<br>));<br><br>const keyPEM = createPrivateKey({<br>  key: privateKeyPEM,<br>  format: &#39;pem&#39;,<br>});<br>const keyDER = ethPKPem.export({ format: &#39;der&#39;, type: &#39;pkcs8&#39; });<br>const pubKey = `-----BEGIN PUBLIC KEY-----<br>${Buffer.from(PublicKey).toString(&#39;base64&#39;)}<br>-----END PUBLIC KEY-----`;<br><br>const encryptedKey = publicEncrypt(<br>  {<br>    key: pubKey,<br>    padding: constants.RSA_PKCS1_OAEP_PADDING,<br>    oaepHash: &#39;sha256&#39;,<br>  },<br>  keyDER,<br>);<br><br>await kms.send(new ImportKeyMaterialCommand({<br>  EncryptedKeyMaterial: new Uint8Array(encryptedKey),<br>  ExpirationModel: &#39;KEY_MATERIAL_DOES_NOT_EXPIRE&#39;,<br>  ImportToken: ImportToken,<br>  KeyId: KeyId,<br>}));</pre><p>From this moment forward:</p><ul><li>The private key could <strong>never be exported</strong></li><li>All signing occurred inside KMS</li><li>Only the Sign API was exposed</li></ul><h3>Using the KMS Key</h3><p>To be able to easily use the key with ethers.js, we used that library: <a href="https://github.com/cuonghx-dev/ethers-kms-signer">https://github.com/cuonghx-dev/ethers-kms-signer</a></p><p>This made KMS appear as a <strong>native ethers.js Signer</strong>, allowing us to:</p><ul><li>Build transactions normally</li><li>Sign them through KMS</li><li>Send them directly through RPC to a chosen node or provider</li></ul><p>No cryptographic transformation was needed because KMS supported secp256k1 directly.</p><h3>The infrastructure on AWS</h3><p>All backend components ran inside a <strong>private AWS VPC</strong>, meaning:</p><ul><li>No public network inbound exposure apart from a queue</li><li>KMS accessed only via the backend within the private network</li><li>No external system could directly reach the signing layer</li></ul><h4>A Single IAM Principal</h4><p>Each imported key was assigned to a IAM role linked to our backend that allowed:</p><ul><li>kms:Sign</li><li>kms:GetPublicKey</li><li>kms:ScheduleKeyDeletion</li></ul><p>No other users, roles, or applications could do operations on the keys.</p><h4>Queue-Based Signing Workflow</h4><p>We separated transaction execution from external interaction using a message queue:</p><ol><li>When escrow conditions were met externally, a message was published.</li><li>A dedicated backend consumed the message inside the private VPC.</li><li>The backend would internally perform additional checks on-chain.</li><li>The transaction would be executed on-chain.</li></ol><p>This improved:</p><ul><li>Operational robustness</li><li>Horizontal scalability</li><li>Security boundaries</li><li>Auditable trust flow</li></ul><h4>Ephemeral Key Destruction</h4><p>When funds were swept out of the escrow wallet:</p><ul><li>The corresponding KMS key was scheduled for deletion</li><li>No long-lived cryptographic material remained</li><li>Attack surface was minimized</li></ul><h4>Security Benefits</h4><p><strong>No Persisted Private Keys: </strong>Local key material existed only long enough for import then KMS became the sole custodian.</p><p><strong>Minimal Access Scope: </strong>Only the signing backend could use the key.</p><p><strong>Fully Private Network Path: </strong>KMS access stayed inside private VPC networking.</p><p><strong>One Key Per Escrow: </strong>Each escrow period had its own disposal-friendly key lifecycle.</p><h3>Cost Advantage of AWS KMS</h3><p>AWS KMS is also extremely affordable for this use case. Each key is billed hourly (about <strong>$1 per month pro-rata</strong>) plus a very small fee per API call. Because ephemeral keys exist only briefly and transaction volume is low, the overall cost stays minimal compared to some third-party custody systems.</p><h3>Potential Enhancement: Multisig and Safe</h3><p>A future improvement would be to introduce <strong>multiple signers using a Safe (Gnosis)</strong>. In this model:</p><ul><li>The KMS-backed key could serve as <em>one of several authorized signers</em></li><li>Additional human or automated signers could be required</li><li>Escrow release could be controlled by threshold signatures rather than a single signing authority</li></ul><p>This would:</p><ul><li>Increase resilience</li><li>Reduce single-points-of-failure</li><li>Enable governance or operational approvals</li><li>Strengthen security for high-value flows</li></ul><p>By combining AWS KMS with Safe multisig, the system could move from secure automated custody to <strong>secure, distributed signing control</strong>.</p><h3>Where This Works Best</h3><p>This pattern is ideal for:</p><ul><li>Temporary escrow settlements</li><li>Gaming Wagering systems</li><li>Automated distribution flows</li><li>High-volume short-lived signing keys</li><li>Systems requiring provable custodial separation</li></ul><h3>Final Thoughts</h3><p>By combining:</p><ul><li>Locally generated secp256k1 keys</li><li>AWS KMS signing</li><li>ethers-kms-signer for first-class ethers.js support</li><li>A private VPC with a restricted IAM role</li><li>Queue-driven signing operations</li></ul><p>We built a secure, ephemeral escrow workflow that:</p><ul><li>Creates wallets on demand</li><li>Signs transactions without exposing private keys</li><li>Sweeps funds programmatically</li><li>Destroys signing keys immediately afterward</li></ul><p>And with the future addition of <strong>Safe multisig</strong>, this system could be extended into a fully distributed, governance-backed signing framework suitable for high-trust or regulated environments.</p><h3>Let’s connect</h3><p>If you’re exploring Web3 projects or need help on <strong>architecture</strong> or <strong>developing</strong> them, I’d love to chat.</p><p><strong>📌 Let’s connect: </strong><a href="https://linktr.ee/julien.a">https://linktr.ee/julien.a</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=21196bc06163" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>