<?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: Thuong Pham</title>
    <description>The latest articles on DEV Community by Thuong Pham (@phthuong).</description>
    <link>https://dev.to/phthuong</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%2F3886635%2F50c0757a-eb0c-44f2-8cf6-e80dc9ce9a6e.jpg</url>
      <title>DEV Community: Thuong Pham</title>
      <link>https://dev.to/phthuong</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/phthuong"/>
    <language>en</language>
    <item>
      <title>Thương Hồ Protocol: Solving $O(1)$ State Bloat with Vietnamese Maritime Wisdom</title>
      <dc:creator>Thuong Pham</dc:creator>
      <pubDate>Sun, 19 Apr 2026 00:40:51 +0000</pubDate>
      <link>https://dev.to/phthuong/thuong-ho-protocol-solving-o1-state-bloat-with-vietnamese-maritime-wisdom-1elf</link>
      <guid>https://dev.to/phthuong/thuong-ho-protocol-solving-o1-state-bloat-with-vietnamese-maritime-wisdom-1elf</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for &lt;a href="https://dev.to/challenges/weekend-2026-04-16"&gt;Weekend Challenge: Earth Day Edition&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🌊 What I Built&lt;/strong&gt;&lt;br&gt;
Thương Hồ Protocol (THP) is a post-quantum, stateless blockchain infrastructure designed to eliminate "Digital Pollution"—the massive energy consumption caused by State Bloat.&lt;/p&gt;

&lt;p&gt;Inspired by the "Unnumbered Ships" (Tàu Không Số) and the decentralized "Floating Markets" (Thương Hồ) of Vietnam, THP brings a new philosophy to Web 4.0: Trust should be built on contribution, not central authority, and truth should be "purged" to remain light.&lt;/p&gt;

&lt;p&gt;The Problem: The Silent Polluter&lt;br&gt;
Traditional blockchains suffer from "State Bloat," requiring nodes to store terabytes of history. This leads to energy-hungry data centers and centralization. For Earth Day, we address this by making the blockchain Stateless, allowing low-power devices (Skiff Nodes) to validate the network with constant-size proofs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;📺 Demo&lt;/strong&gt;&lt;br&gt;
We have developed a Green Tech Simulation that visualizes the CO2 reduction achieved by switching from Merkle Trees to our $O(1)$ Verkle Tree architecture.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/phthuongcc/thuong-ho-protocol" rel="noopener noreferrer"&gt;🚀 Visit the GitHub Repository&lt;/a&gt;&lt;br&gt;
&lt;/p&gt;
&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://assets.dev.to/assets/github-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/phthuongcc" rel="noopener noreferrer"&gt;
        phthuongcc
      &lt;/a&gt; / &lt;a href="https://github.com/phthuongcc/thuong-ho-protocol" rel="noopener noreferrer"&gt;
        thuong-ho-protocol
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      A purified, $O(1)$ post-quantum state-purge infrastructure for development finance. Just a hobby, planted in April.
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;🌊 Thương Hồ Protocol (THP)&lt;/h1&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;A Post-Quantum, Stateless $O(1)$ Infrastructure for Society 5.0 &amp;amp; Web 4.0&lt;/h3&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Hạ tầng Tín nhiệm Phi trạng thái và Kháng lượng tử phục vụ Tài chính vĩ mô&lt;/strong&gt;&lt;/p&gt;

&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;📌 Tổng quan (Overview)&lt;/h2&gt;
&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;Thương Hồ Protocol (THP)&lt;/strong&gt; is a next-generation decentralized ledger architecture designed to solve the "State Bloat" dilemma and mitigate the existential threat of quantum computing. Inspired by the resilient maritime heritage of the Mekong Delta, THP focuses on &lt;strong&gt;Financial Inclusion&lt;/strong&gt;, &lt;strong&gt;ODA/ESG Transparency&lt;/strong&gt;, and &lt;strong&gt;Digital Sovereignty&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thương Hồ Protocol (THP)&lt;/strong&gt; là kiến trúc sổ cái phi tập trung thế hệ mới, được thiết kế để giải quyết bài toán "Phình to trạng thái" và ngăn chặn nguy cơ từ máy tính lượng tử. Lấy cảm hứng từ di sản đường thủy kiên cường của vùng ĐBSCL, THP tập trung vào &lt;strong&gt;Bao trùm tài chính&lt;/strong&gt;, &lt;strong&gt;Minh bạch dòng vốn ODA/ESG&lt;/strong&gt; và…&lt;/p&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/phthuongcc/thuong-ho-protocol" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;p&gt;Key Result from our Simulation:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Energy Savings: Over 90% reduction in bandwidth and validation energy at scale.&lt;/li&gt;
&lt;li&gt;Earth Impact: For a network of 1 million nodes, THP saves enough CO2 annually to be equivalent to planting thousands of trees.&lt;/li&gt;
&lt;/ul&gt;

&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.amazonaws.com%2Fuploads%2Farticles%2Fs6glse4q3emetfqm7f4y.JPG" 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.amazonaws.com%2Fuploads%2Farticles%2Fs6glse4q3emetfqm7f4y.JPG" alt=" " width="800" height="476"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;"At a global scale of 1 billion transactions, the Thuong Ho Protocol's efficiency is equivalent to the carbon sequestration of millions of trees annually compared to traditional heavy-state architectures."&lt;/p&gt;
&lt;/blockquote&gt;

&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.amazonaws.com%2Fuploads%2Farticles%2Fi9a48sq5tgw3pfs7rdvm.JPG" 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.amazonaws.com%2Fuploads%2Farticles%2Fi9a48sq5tgw3pfs7rdvm.JPG" alt=" " width="800" height="437"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;With the $O(1)$ Verkle Tree structure, we compress billions of transactions into a single 2KB proof. Efficiency is our tide.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;💻 Code&lt;/strong&gt;&lt;br&gt;
Our project repository includes three core technical components developed for this challenge:&lt;/p&gt;

&lt;p&gt;Energy Efficiency Simulator (Python): Quantifying the carbon footprint reduction.&lt;/p&gt;

&lt;p&gt;Green ODA Schema (JSON): A post-quantum ready data specification for climate-adaptation tracking.&lt;/p&gt;

&lt;p&gt;MekongClimateFund (Solidity): A secure, "Green ODA" disbursement contract utilizing ReentrancyGuard and stateless proof constraints.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/phthuongcc/thuong-ho-protocol/tree/main/00-earth-day-demo" rel="noopener noreferrer"&gt;📂 Explore the Earth Day Demo on GitHub&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🛠 How I Built It&lt;/strong&gt;&lt;br&gt;
The architecture of THP rests on three "Maritime Pillars":&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1.Statelessness via $O(1)$ Verkle Trees:&lt;/strong&gt; We use polynomial vector commitments to compress verification proofs to a constant &lt;strong&gt;~2KB&lt;/strong&gt;. This ensures that even a decade from now, a smartphone can validate the entire state without downloading terabytes of data.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2.Post-Quantum Resilience:&lt;/strong&gt; Security is anchored in the &lt;strong&gt;Learning With Errors (LWE)&lt;/strong&gt; problem using &lt;strong&gt;NIST FIPS 204 (Dilithium)&lt;/strong&gt; standards, protecting our digital heritage from future quantum threats.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3.The PPOP Governance Model:&lt;/strong&gt; A "Hydrological Ecosystem" where the Public (Anchors), Private (Lighthouses), and OpenSource (Distillers) sectors interact like tides to maintain network integrity.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🌍 Earth Day Focus&lt;/strong&gt;&lt;br&gt;
We integrated specific constraints into our Smart Contract:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;// Enforcing the 2KB stateless limit to ensure low-energy validation
require(bytes(_verkleProof).length &amp;lt;= 2048, "Exceeds THP stateless limit (2KB)");
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This ensures the protocol remains "Green" by design, preventing the energy-intensive processing of oversized proofs.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;🏆 Prize Categories&lt;/strong&gt;&lt;br&gt;
We are submitting this project for the following category:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Best Use of Google Gemini:&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Direct API Integration (Core Implementation):&lt;/strong&gt;&lt;br&gt;
I integrated the &lt;strong&gt;Google Gemini API&lt;/strong&gt; directly into our Python Energy Simulator. After the script calculates the exact CO2 footprint reduction of our $O(1)$ Verkle Tree architecture, it passes the live data to the Gemini API (&lt;code&gt;gemini-1.5-flash&lt;/code&gt;). Gemini dynamically generates environmental insights and sustainability reports based on the real-time data, turning raw blockchain metrics into actionable climate context.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. AI Collaborator &amp;amp; Co-Pilot:&lt;/strong&gt;&lt;br&gt;
Beyond the API integration, I leveraged Google Gemini as an authentic AI collaborator throughout the rapid development sprint. Gemini assisted in:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Conceptualization:&lt;/strong&gt; Refining the cryptographic metaphors and aligning the Vietnamese "Thương Hồ" philosophy with technical pillars.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Logic Optimization:&lt;/strong&gt; Structuring the Energy Efficiency Simulation logic to provide accurate, real-world CO2 mapping.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Security Auditing:&lt;/strong&gt; Auditing the &lt;code&gt;MekongClimateFund&lt;/code&gt; Solidity contract for security patterns like CEI (Checks-Effects-Interactions) and Reentrancy protection.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;⚓ Join the Flow&lt;/strong&gt;&lt;br&gt;
The river of truth is moving. We invite you to "merit-merge" with our vision. &lt;/p&gt;

&lt;p&gt;Want to see the $O(1)$ stateless magic in action? Clone our repo and fire up the Python Simulator. Play around with the node count and see the exact amount of "Digital Pollution" you can help eliminate.&lt;/p&gt;

&lt;p&gt;If you love tinkering with Green Tech, give us a ⭐ Star to support the journey. Let's make blockchain truly sustainable!&lt;/p&gt;

&lt;p&gt;&lt;em&gt;"Truth does not need to be protected; it only needs to be purged to shine." — Sakura&lt;/em&gt;&lt;/p&gt;

</description>
      <category>weekendchallenge</category>
      <category>opensource</category>
      <category>blockchain</category>
      <category>security</category>
    </item>
  </channel>
</rss>
