<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
    <channel>
        <title>outprog</title>
        <link>https://paragraph.com/@outprog-2</link>
        <description>Founder of https://ever.vision.
Storage-based consensus paradigm proposer.</description>
        <lastBuildDate>Fri, 13 Nov 2026 12:36:29 GMT</lastBuildDate>
        <docs>https://validator.w3.org/feed/docs/rss2.html</docs>
        <generator>https://github.com/jpmonette/feed</generator>
        <language>en</language>
        <image>
            <title>outprog</title>
            <url>https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/50242054903ad7003dbf2fc90838d23e16ccc1203c79295e291aaf2289e21c20.jpg</url>
            <link>https://paragraph.com/@outprog-2</link>
        </image>
        <copyright>All rights reserved</copyright>
        <item>
            <title><![CDATA[FusionFi Protocol: Core Element for Achieving AgentFi Interoperability]]></title>
            <link>https://paragraph.com/@outprog-2/fusionfi-protocol-core-element-for-achieving-agentfi-interoperability</link>
            <guid>aWhTLmcZvee9Ac9fCRlV</guid>
            <pubDate>Wed, 06 Nov 2024 16:49:22 GMT</pubDate>
            <description><![CDATA[OverviewPermaswap recently released an AgentFi demo case based on FusionFi Protocol (FFP) on AO, adding a case of creating an automated market maker agent (AMM Agent) and performing arbitrage operations. Through FFP, developers can create AMM agent pools with just a few lines of code to achieve asset exchange. As a standardized protocol on the AO network, FFP provides interoperability support for different types of Agents. This article will first clarify core concepts such as AgentFi and sove...]]></description>
            <content:encoded><![CDATA[<h2 id="h-overview" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Overview</h2><p>Permaswap recently released an AgentFi demo case based on <strong>FusionFi Protocol (FFP)</strong> on AO, adding a case of creating an automated market maker agent (AMM Agent) and performing arbitrage operations. Through FFP, developers can create AMM agent pools with just a few lines of code to achieve asset exchange. As a standardized protocol on the AO network, FFP provides interoperability support for different types of Agents.</p><p>This article will first clarify core concepts such as AgentFi and sovereign finance, then introduce two typical Agent examples - Orderbook Agent and AMM Agent. It will demonstrate how the FFP protocol integrates two different trading processes. Finally, we will explain the key role that FFP can play in the future financial ecosystems.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/bbfb28b342636bae47dbd4d4ca52c059213364822d613dec8ef2229a0a9648bc.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-basic-concepts" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Basic Concepts</h2><p>AgentFi introduces the concept of &quot;agents&quot; on top of DeFi, allowing users to deploy their own smart contract agents to automatically manage interactions with protocols. Through Agent, users can autonomously execute various financial operations, such as asset management and strategy execution.</p><p>Traditional DeFi protocols use smart contracts to implement operations like asset exchange and lending, but these assets are usually locked in a single smart contract. This requires users to entrust their funds to the contract and also limits their flexibility in customizing desired functions and parameters. AgentFi breaks through this limitation. It enables each user to have an independent agent with financial capabilities, then the users can use their agents to conduct personalized financial business. In other words, <strong>AgentFi makes users&apos; agents independent financial entities, allowing individuals to set financial rules, such as asset exchange, lending, and asset issuance rules. It helps achieve personalized financial management and break through the limitations of traditional centralization.</strong></p><p><strong>This is Sovereign Finance!</strong></p><p>Unlike traditional centralized systems where financial rules are controlled by central banks, sovereign finance allows users to establish and control financial rules themselves. They no longer need to rely on smart contracts provided by developers or centralized institutions.</p><h3 id="h-the-foundation-of-agentfi-performance-and-flexibility" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">The Foundation of AgentFi: Performance and Flexibility</h3><p>One of the reasons why traditional DeFi protocols centrally manage funds is due to the limitations of Ethereum&apos;s performance: it cannot provide independent agent’s computing power for each user. Therefore, platforms like Compound and Uniswap have optimized their code to accommodate the limitations of the blockchain. Additionally, traditional blockchain smart contracts have low flexibility and are difficult to modify or redeploy, which limits the agents’ computational flexibility.</p><p><strong>AO, as a decentralized global hyper parallel computer, provides independent computing units (called processes). Each process has its own computing resources, which helps resolve the performance bottleneck. Meanwhile, the smart contract code running in the processes is controlled by the process owners and can be flexibly updated and upgraded, providing a solid foundation for the flexibility of AgentFi.</strong></p><h3 id="h-fusionfi-protocol" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">FusionFi Protocol</h3><p>In AO&apos;s decentralized network, AgentFi will be widely adopted. Applications can generate multiple independent financial entities. For example, NPCs in games not only provide gaming services but also financial services. For instance, a pawnshop NPC can accept players&apos; NFTs as collateral and provide lending services, making this NPC an independent Agent, i.e., a sovereign financial entity. All users and processes on AO can create financial agents in this way, and any computing unit can become a &quot;financial institution&quot; providing customized financial services.</p><p>If different types of financial agents develop independently, they will inevitably produce different protocol standards, making interaction between agents a major challenge. To address the interoperability issues caused by business differences, the FusionFi Protocol (FFP) was born.</p><p><strong>FusionFi Protocol is a specification and development tool designed to connect different financial agents, establish information channels, achieve interoperability, and integrate diverse financial operations. It enables FFP-compatible Agents to interconnect and communicate.</strong></p><p>For users who are not interested in delving into financial details, they can also use the FFP SDK to convert their agents into agents with specific financial features. By reducing the implementation difficulty of AgentFi, FFP makes sovereign finance accessible to everyone.</p><h2 id="h-use-case-and-interoperability" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Use Case and Interoperability</h2><p>Order Book and AMM (Automated Market Maker) are two different trading mechanisms with significant differences in their trading processes. Order Book records all buy and sell intentions, and trades can only be executed when the prices of buyers and sellers match, thus relying on the participation of counterparties. AMM, on the other hand, does not rely on counterparties. It allows users to trade directly with assets in the pool through liquidity pools and algorithms. Liquidity providers deposit funds into the pool, and AMM uses algorithms (such as constant product formula) to automatically adjust prices, enabling users to complete transactions without waiting for matching.</p><p>FFP can handle Orderbook and AMM transactions in a unified manner and process, thereby integrating the liquidity of both.</p><p>Please refer to the demo code: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/permadao/ffp-demo">https://github.com/permadao/ffp-demo</a></p><h3 id="h-orderbook-agent" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Orderbook Agent</h3><p>In the orderbook demo of FFP, developers can create an Orderbook Agent and conduct asset trading:</p><ol><li><p>Create Orderbook Agent: Use the <code>createOrderbookProcess</code> function to create an orderbook agent process, which deploys an AO process and loads “orderbook” related business code, making it an independent financial entity responsible for recording and managing orders.</p></li><li><p>Deposit assets: Use the <code>deposit.js</code> script to deposit tokens into the orderbook agent to provide trading funds for orders.</p></li><li><p>Create orders: Use the <code>agent.makeOrder</code> method to create buy or sell orders in the orderbook. All orders are sent to the AO network in a specific <strong>FFP Schema</strong>, after which the orders will be transparently displayed in a specific format on the blockchain network and await matching.</p></li><li><p>Take orders: Use the <code>agent.takeOrder</code> method to take orders, and the system automatically completes the transaction and updates the asset balance.</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/2b06e4038b5bae8ffc2443d4bbaeba3a027fc133815cd66c99672f48afd73f22.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h3 id="h-amm-agent" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">AMM Agent</h3><p>In the demo of AMM Agent, the Agent created by the user is equivalent to a personal sovereign liquidity pool. Through AgentFi, users can autonomously provide asset exchange functions without relying on centralized platforms or traditional exchanges. The following is the core process of AMM Agent:</p><ol><li><p>Create AMM Agent: Create an AMM Agent process through the <code>createAMMProcess</code> function, and deploy it as a user-controlled AO process, making it a sovereign financial entity with liquidity management capabilities.</p></li><li><p>Deposit Assets: Users deposit tokens into the AMM Agent, injecting funds into the liquidity pool.</p></li><li><p>Add Liquidity: By calling the <code>agent.addLiquidity</code> method, the deposited assets can be added to the liquidity pool, and users can set the pricing and exchange ratio of the assets in the pool through smart contracts.</p></li><li><p>Automatic Exchange: The AMM Agent uses algorithms (such as the constant product formula) to automatically calculate the exchange rate. The quote results are returned to the user requesting the transaction in a specific <strong>FFP Schema</strong>.</p></li><li><p>Remove Liquidity: When users want to withdraw funds, they can use the <code>agent.removeLiquidity</code> method to remove liquidity from the pool and withdraw assets.</p></li></ol><p>By creating an AMM Agent, users have full autonomy over liquidity management and can provide asset exchange services without counterparties, thereby establishing a personalized decentralized trading system.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c6a81e98e50fdac8199963d3a8210cabc4d0068fc65e9f09d32cf46adcd3c01d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p><strong>It can be considered that when a user creates an Agent (whether an AMM Agent or an Orderbook Agent), they are essentially creating a personal sovereign decentralized exchange.</strong> AgentFi completely breaks the traditional boundaries of exchanges, it allows users to trade without relying on a specific platform. By setting up Agents with specific functions and smart contract rules, users can autonomously provide a &quot;venue&quot; for exchanges, and achieve sovereign financial services. <strong>All it takes is just one line of code to create an agent.</strong></p><h3 id="h-interoperability" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Interoperability</h3><p>FFP Schema is a data format used in FusionFi Protocol (FFP) for standardizing transaction and settlement data. It defines the data format and communication protocol in different trading processes (such as Orderbook and AMM), ensuring smooth interoperability and compatibility between different types of financial agents. This unified data format allows key info such as prices, order status, and asset information to be shared and parsed among various agents during the trading process.</p><p>In the fourth step of the Orderbook Agent and AMM Agent, both Orderbook orders and AMM requests adopt a unified <strong>FFP Schema</strong> to achieve a consistent settlement data format. The FFP Schema standardizes cross-agent interoperability:</p><ul><li><p>Arbitrageurs can directly query Orderbook orders on-chain, comparing quotes between Orderbook and AMM using the FFP Schema to discover price differences.</p></li><li><p>Arbitrageurs only need to submit uniformly formatted transaction data to the FFP settlement process to achieve atomic transactions across Agents. The FFP specification ensures that multiple hedging orders are either all completed or all failed, avoiding the risk of transaction inconsistency.</p></li></ul><p>In the above use cases, the different trading processes of Orderbook and AMM achieve interoperability. FFP breaks the boundaries between the two types of businesses, achieving collaboration and integration between them.</p><h3 id="h-advanced-features" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Advanced Features</h3><p>FFP supports atomic settlement of multiple transactions and provides the following advanced features for DEXs built on FFP:</p><ul><li><p><strong>Large Order Splitting:</strong> Traders can split large orders into multiple smaller orders. For example, a trader needs to complete a $1 million transaction, but a single Agent may find it difficult to provide the best quote. FFP allows large orders to be split into multiple smaller ones, executed among different Agents to obtain the best quotes in the network.</p></li><li><p><strong>Multiple Orders Merging</strong>: Scattered orders in the market can be merged into a single atomic order, enhancing the interoperability of the Orderbook and AMM, and making transactions more flexible.</p></li><li><p><strong>Multi-hop Trading</strong>: Multi-hop trading is an extended application of the merging function. For example, if a trader wants to exchange asset A for C, but there is no A-C trading pair in the market, yet there are A-B and B-C trading pairs, FFP can merge the A-B and B-C transactions into one order to achieve the trading goal.</p></li><li><p><strong>Zero-Capital Arbitrage</strong>: Arbitrageurs can profit from the price difference between two hedging orders in the market. Unlike traditional arbitrage methods, FFP&apos;s zero-capital arbitrage doesn&apos;t require self-owned funds. Arbitrageurs only need to submit the two orders to the settlement process, and the system will automatically complete the asset exchange and distribute the profit to the arbitrageur.</p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/43ebf78b074308322f8af3d3b77301883e713929ba2334f74cbe8a53de0eb85e.jpg" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>These innovative features brought by FFP not only simplify the trading experience for users and ensure optimal quotes, but also improve capital efficiency for arbitrageurs and guarantee the efficient circulation of value.</p><h2 id="h-vision" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Vision</h2><p><strong>In summary, FFP provides a unified framework for financial agents, breaking down barriers between different financial scenarios.</strong> Not only for orderbooks and AMM, <strong>but various financial operations such as lending, futures, and synthetic assets can also be seamlessly integrated in the future through FFP. It will help build a cross-application, cross-scenario decentralized financial ecosystem.</strong></p><p>Through a unified data format (FFP Schema), FFP simplifies communication and settlement between agents, thus enhancing the flexibility and efficiency of transactions. As more types of financial agents emerge, FFP has the potential to become the core protocol for the AgentFi ecosystem on AO, promoting the popularization of truly sovereign finance and personalized financial services.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/a339397fef716ec1bc98f4144d587bd701df12fef805f04aaa2fbc90b2e18de6.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Intelligent Finance: From AgentFi to FusionFi, Exploring AI-Driven Financial Models on AO]]></title>
            <link>https://paragraph.com/@outprog-2/intelligent-finance-from-agentfi-to-fusionfi-exploring-ai-driven-financial-models-on-ao</link>
            <guid>InsBXZzEjZeYBgnnl5dN</guid>
            <pubDate>Wed, 12 Jun 2024 15:12:56 GMT</pubDate>
            <description><![CDATA[A unified financial protocol is emerging, providing a common, unified standard that fuses various types of financial services and seamlessly connects with AI, promoting the adoption and development of intelligent finance.From Permaswap Self-Custody to AgentFiTwo years ago, we designed and implemented Permaswap Network (PSN), a decentralized asset self-custody trading network. PSN is a network protocol that defines the interactions between LPs and trading users, providing a trustless mechanism...]]></description>
            <content:encoded><![CDATA[<p>A unified financial protocol is emerging, providing a common, unified standard that fuses various types of financial services and seamlessly connects with AI, promoting the adoption and development of intelligent finance.</p><h2 id="h-from-permaswap-self-custody-to-agentfi" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>From Permaswap Self-Custody to AgentFi</strong></h2><p>Two years ago, we designed and implemented Permaswap Network (PSN), a decentralized asset self-custody trading network. PSN is a network protocol that defines the interactions between LPs and trading users, providing a trustless mechanism for asset exchange. PSN is completely open-source, allowing anyone to review the protocol and freely join or leave the network.</p><p>In the PSN network, there are two types of nodes: Routers and LPs. Routers are responsible for aggregating information from LPs and generating many-to-many trading orders for users who need to trade. LP nodes, which include automated market-making programs, allow users to flexibly configure their LP nodes&apos; market-making rules, such as setting up k = x * y curves to become an AMM node.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c433828936e6543bf129628bbf311250d76134044dc230d8111768bf5a2d0c8d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Unlike Ethereum, funds in PSN are not concentrated in a single smart contract but are self-custodied by each LP node. Nodes exchange information through a unified protocol. When a user requests the network, they can obtain a many-to-many trading order, meaning a single transaction may involve asset exchanges with several or even dozens of LPs simultaneously. Each order must be signed by all trading parties to be settled. If any signature is missing or any party fails to make the payment as per the order, the transaction will fail.</p><p>This self-custody LP model can be considered a prototype of what we now refer to as AgentFi on AO. One major difference is that users in the PSN network need to run their own nodes to participate in the network, whereas, in AO&apos;s AgentFi, the node programs are abstracted into processes on the AO computer. This means users do not need to run programs locally but can use the trustless AO computer to run their agent programs.</p><h2 id="h-from-agentfi-to-intelligent-finance" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">From AgentFi to Intelligent Finance</h2><p>Traditional DeFi, due to the performance limitations of public chain smart contracts, requires liquidity providers to deposit assets into specified contracts to conduct financial activities. AO and the agent model will change this situation. On AO, users can launch their own processes, which are essentially user-managed smart contracts with distributed and trustless operation characteristics. The creation and use costs of these processes are much lower than those of Ethereum and other public chain smart contracts. Users&apos; assets are automatically managed by their own processes, and each process acts as an intelligent agent robot that can be programmed to manage the user&apos;s assets automatically.</p><p>Traditional blockchain smart contracts are difficult to modify and upgrade, and usually, assets are managed within a single unified smart contract. For example, Uniswap uses the k = x * y curve to manage asset exchanges uniformly, and Compound adopts a unified interest rate model to manage lending. Traditional smart contracts use a single strategy to manage large amounts of assets, which is not very &quot;intelligent.&quot; Through AO, users can manage assets using personal processes, modifying the process code and configuring various strategies at any time, providing much higher flexibility.</p><p>Transitioning from centralized management to decentralized intelligent management, AO processes will make asset management more efficient and intelligent.</p><p>Additionally, agent robots are very easy to integrate with AI. The strategies of agent robots can be updated by AI, and AI can also provide oracle services for the agent robots, adjusting or modifying strategies based on external data. Currently, large language models have been successfully tested and run on AO. In the near future, agent finance may be fully managed by AI, operating 24/7 to continuously generate profits, thus realizing intelligent finance.</p><h2 id="h-moreover-unifying-finances-model" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Moreover, Unifying Finance’s model</h2><p>Our exploration does not stop here.</p><p>In ancient times, bartering was common. Bookkeeping became a more convenient way of trading, allowing the exchange of value without the immediate transfer of physical goods. This significantly boosted the rate of value exchange, leading to more efficient division of labor and increased productivity. Along with this, the demand for flexible and convenient transactions grew. From bookkeeping, notes (promissory notes) gradually emerged. Notes are powerful tools that can record debt transfers, payments, transfers, and financing in various financial scenarios. Checks, a common type of note, offer a convenient and secure method of payment. Today, many payments are made through electronic means, but their essence remains credit, and notes are crucial for recording credit and transferring value. Essentially, all financial activities revolve around notes, either directly using them for value exchange or utilizing their variants.</p><p>When designing financial products in traditional finance, designers need to consider the trust issues between different financial entities. These issues are addressed through regulation and legal frameworks, requiring significant effort to ensure compliance and manage trust among various parties. However, in the world of blockchain and other trustless protocols, these concerns simply do not exist. Developers have created diverse DeFi financial ecosystems on trustless platforms like Ethereum. As blockchain technology matures, we can leverage the more powerful AO computer and continue to restructure the financial industry using the concept of AgentFi.</p><p>Traditional financial instruments include various types of notes, such as promissory notes, bills of exchange, checks, and discounted notes. The existence of these different types is due to varying trust requirements among different entities, necessitating different legal and compliance measures. However, in a world without trust issues, this proliferation of financial instruments simplifies down to their core abstraction: the financial note. We can use the note as a prototype to implement any financial mechanism. This led to the creation of AgentFi notes, which are incredibly powerful and can express almost any financial business.</p><p>AgentFi notes also signify a change in financial sovereignty. The trust issues of traditional notes meant that finance could only be a tool for authoritative institutions and sovereign states. The emergence of DeFi marked a shift from government sovereignty to code sovereignty in finance. AgentFi notes will hand financial rights to individuals, allowing anyone to issue their own notes and assets, defining personal sovereign financial instruments and behaviors.</p><p>Using AgentFi notes, we can unify finance by modeling any financial instrument. Let&apos;s take a look at example of how AgentFi notes improve outcomes.</p><h3 id="h-exchange" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Exchange</h3><p>Suppose Alice and Bob are the two counterparties in a transaction. Alice requests an exchange rate from Bob, and Bob informs Alice that the rate is P1. If Alice considers P1 reasonable, she will choose to proceed with the transaction; otherwise, she will cancel it.</p><p>Even if Alice agrees to P1, Bob may still refuse the transaction since it hasn&apos;t been settled. If Alice wants to proceed but Bob refuses, Bob&apos;s quote is considered invalid. We view Bob&apos;s invalid quote as malicious because Alice loses the opportunity to request other quotes while waiting for Bob&apos;s response. In this process, Bob could consistently provide the best quote in the market but never complete the transaction.</p><p>To prevent Bob from making malicious quotes, we require the quoting counterparty to provide a note with collateral.</p><p>Using Permaswap&apos;s token $HALO as an example, Alice requests a quote from Bob for an exchange amount of $100. Bob returns a note collateralized with 10 $HALO (equivalent to $1). The note is valid for a very short period, possibly only 10 seconds. If Alice agrees to the price within 10 seconds, she can initiate the settlement function via a smart contract. At this point, the tokens from both parties are exchanged atomically. Once the settlement is completed, the 10 $HALO collateral is returned to Bob. If Bob refuses to settle, his 10 $HALO collateral will be forfeited and transferred to Alice.</p><p>By combining AgentFi notes with the settlement capabilities of smart contracts, we can make the exchange process more resistant to bad actors. Whether using AMM or orderbook decentralized trading models, notes can be used to establish trust between different counterparties.</p><h3 id="h-futures" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Futures</h3><p>In the exchange scenario, the note&apos;s expiration time is only 10 seconds. If we provide a longer-term note with a specific settlement time, this note can serve as a futures certificate.</p><p>Bob creates a note for an asset currently valued at $100, with a settlement time of one week later. This note is collateralized with more $HALO, with only 1% collateral in the exchange scenario. In the futures scenario, Bob, as the issuer, needs to provide collateral equal to 20% of the note&apos;s current value. Additionally, the note requires the holder to also collateralize 20% of the asset.</p><p>Alice collateralizes the required amount and becomes the holder, activating the note. One week later, if the asset&apos;s value rises from $100 to $115, Alice can initiate a settlement and receive the $115 worth of the asset. If Bob refuses to deliver the asset, the 20% $HALO collateral will be forfeited and given to Alice.</p><p>If the asset&apos;s value drops from $100 to $90, Bob can initiate the settlement. Bob will still receive $100, and if Alice refuses to deliver the asset, the 20% $HALO collateralized by Alice will be forfeited and given to Bob.</p><h3 id="h-collateralized-lending" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Collateralized Lending</h3><p>Similarly, for a long-term note, the expiration time could be one year, and it would include an interest function.</p><p>Bob, holding a large amount of $HALO, wants to use it as collateral to borrow from Alice. Bob provides a note with a one-year term, collateralized with 1,000 $HALO (worth $100). The note is valued at $80 and offers an additional 5% annual interest for settlement. Alice pays $80 to purchase the note, and Bob receives an $80 loan.</p><p>During the one-year term, as long as the value of 1,000 $HALO remains above $100, Bob can initiate a settlement upon the note&apos;s maturity. With a 5% annual interest, Bob needs to pay $80 * (1 + 5%) = $84 to settle the note. After settlement, Bob retrieves the 1,000 $HALO, and Alice receives $84.</p><p>If within the one-year term the value of 1,000 $HALO is about to drop below $84 (not $80 because interest is included), for example, at $85, anyone can initiate a settlement. After settlement, Bob will lose all his $HALO, Alice will receive $84, and the settler will get the difference of $85 - $84 from selling 1,000 $HALO, which is a $1 reward for the settler.</p><h3 id="h-currency" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Currency</h3><p>There is a close relationship between notes and currency.</p><p>Bob can over-collateralize $HALO and issue a note with a value of $1. This note is equivalent to currency, akin to a stablecoin, and can be circulated and used as a stable medium of exchange in the market.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7e553fe03c7b94ce30a33dcc866a2c94917476776f0f53be7003492b815af50d.webp" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><h2 id="h-realizing-the-unified-financial-protocol-of-permaweb" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Realizing the Unified Financial Protocol of Permaweb</h2><p>Finance has undergone significant development over the past millennia, especially in the last two hundred years, to keep pace with industrialization and information technology. The financial industry has given rise to many different business types and directions. The emergence of blockchain technology will change all this. By solving the trust issues associated with ledgers, the construction of all financial services becomes much simpler. We have revealed the uniformity of finance, allowing us to simplify and reconstruct complex financial services, ultimately achieving Fusion Finance.</p><p>From the self-custody network of Permaswap to AO&apos;s AgentFi, blockchain technology has made significant strides. Permaswap will continue to evolve with technological advancements, realizing a complete and unified financial protocol on the Permaweb.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/da0bef620154cc75fe376bd0e18922f08e37fad41c61fd8c23d8af21391a777a.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[PermaDAO in Practice: From Human Governance to Fully On-chain  Governance]]></title>
            <link>https://paragraph.com/@outprog-2/permadao-in-practice-from-human-governance-to-fully-on-chain-governance</link>
            <guid>tmWNODktI4Iglvj5CYYf</guid>
            <pubDate>Thu, 14 Dec 2023 01:47:47 GMT</pubDate>
            <description><![CDATA[SummaryPermaDAO is exploring the practical transition from traditional “human governance” to fully "On-Chain Governance." With Bitcoin and Ethereum communities serving as examples, Decentralized Autonomous Organizations (DAOs) are flourishing with the support of blockchain technology. While DAO&apos;s have excelled in creating simple rules, navigating collaborations entailing intricate regulations remains a complex challenge. The ultimate goal for DAOs is fully on-chain governance, a realizat...]]></description>
            <content:encoded><![CDATA[<blockquote><h3 id="h-summary" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Summary</h3><p>PermaDAO is exploring the practical transition from traditional “human governance” to fully &quot;On-Chain Governance.&quot; With Bitcoin and Ethereum communities serving as examples, Decentralized Autonomous Organizations (DAOs) are flourishing with the support of blockchain technology. While DAO&apos;s have excelled in creating simple rules, navigating collaborations entailing intricate regulations remains a complex challenge. The ultimate goal for DAOs is fully on-chain governance, a realization that requires a prolonged evolutionary process. PermaDAO, recognizing this, will release the HALO governance token, progressively advancing towards a fully on-chain governance model through &quot;meta-governance concept.”</p></blockquote><p>A Decentralized Autonomous Organization (DAO) is a form of organizational structure embodied through open-source code, controlled by shareholders, and impervious to the influence of central authorities. Due to the immutable and traceable blockchain smart contracts features, DAOs have received robust technical support and have made significant strides in cryptography.</p><p>The Bitcoin and Ethereum communities represent DAOs, where consensus is formed through code, fostering community collaboration to enhance the system for common goals. DAOs have made significant strides in decentralized community governance, primarily due to the relatively simple Bitcoin and Ethereum rules. The fundamental Bitcoin rules revolve around payments, essentially involving miners providing BTC payment services. Similarly, the basic Ethereum rules entails miners to provide smart contract computing services.</p><p>Additionally, Uniswap, with its simple formula of k = x * y, offers decentralized asset swaps, representing a fundamental rule for DAOs. Built upon this formula, Uniswap serves a vast user base, liquidity providers, and arbitrageurs, creating a token exchange ecosystem that is open to all, allowing participants to join or exit at any time.</p><p><strong>It is evident that DAOs have had a profound impact on collaborative efforts based on simple fundamental rules, yet there have yet to be notably successful cases in collaborations involving complex rules.</strong></p><h2 id="h-dual-aspects-of-governance" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Dual Aspects of Governance</strong></h2><h4 id="h-rule-of-man" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Rule of man</h4><p>The traditional governance model, often referred to as the &quot;rule of man,&quot; involves individuals creating a set of rules through communication and coordination to manage production and consumption relationships. These rules are codified into laws and regulations, forming standards that can be referenced. The enforcement of laws relies on centralized violent institutions for protection.</p><p>The rule of man developed over thousands of years, has become highly mature but also intricate. Whether at the scale of a company or a nation, all the rules and laws within a system are products of human governance.</p><p><strong>A mature human governance system can handle highly complex collaborative issues, which is a capability that current DAOs have not yet fully achieved.</strong></p><h4 id="h-code-is-law" class="text-xl font-header !mt-6 !mb-3 first:!mt-0 first:!mb-0">Code is law</h4><p>The emergence of smart contracts has sparked a new wave of governance, making it easier to manage organizations using open-source code. <strong>Smart contracts rules are executed by machines, eliminating any margin of error, avoiding informal rules and fraud that may exist in human governance.</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7821f42c9fcf8f3e02b94ac3dd7595ae1a056c5bc78409a6f3f2bbfe4aca9e15.png" alt="Code is law" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Code is law</figcaption></figure><p>However, due to this mechanism&apos;s precision, the flexibility is limited. If incorrect rules are established (often referred to as smart contract vulnerability), the losses caused by these vulnerabilities can be challenging to recover. The DAO incident on Ethereum in 2016 is an example where significant asset losses occurred due to a smart contract vulnerability. Ultimately, this led to a division within the Ethereum community. The outcome was a rollback from &quot;code is law&quot; to “rule of man&quot;. Guided by Vitalik, the community refused to acknowledge the results created and ultimately decided to roll back the blockchain to its state before the theft occurred.</p><p>At the end of the day, <strong>the lack of flexibility restricted &quot;the rule of code&quot; to small-scale applications and scenarios with relatively simple foundational rules.</strong></p><h2 id="h-opposing-forces" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Opposing Forces?</strong></h2><p>The dual sides of governance, the “rule of man&quot; and “code is law” seem to have conflict and opposition. With the recurring security incidents and governance failures, does this imply that DAOs are destined to struggle with complex collaborations. Are DAOs a utopian fantasy?</p><p>Making DAOs applicable to complex collaboration rules, suitable for large-scale collaborations involving strangers, is the direction PermaDAO is looking at.</p><p>Indeed, the “rule of man&quot; and “code is law&quot; are not opposing forces. Whether it&apos;s rules computed by machines or legal rules documented in books, humans remain to be the core of collaboration. DAO Practitioners don’t need to bring all actions under blockchain governance; instead, they should start with a human-based input and gradually introduce on-chain rules. The rules computed by machines aim to minimize the trust costs between individuals and reduce the consensus cost of value distribution (cutting the need for violent enforcement), rules executed by machines are more efficient and transparent, enabling human governance to achieve faster iterations and stronger execution capabilities.</p><p>In the process of PermaDAO&apos;s practice, there hasn&apos;t been an excessive pursuit of fully on-chain governance. Early on, it was driven by individual enthusiasts, gradually establishing rules, expanding the community membership, and constructing bit by bit. The following two cases might indicate an excessive reliance on on-chain governance:</p><ol><li><p><strong>PandaDAO.</strong> Excessive reliance on on-chain governance, token issuance, and NFT distribution, coupled with a lack of efficient decision-making and rational contributors, ultimately led to a downward spiral.</p></li><li><p><strong>Polkadot.</strong> Despite establishing complex on-chain governance mechanisms upon launching, allowing all functionalities to be improved through voting, it ultimately failed to yield truly effective applications. The lesson learned is not to become excessively absorbed in on-chain governance prematurely; instead, growth should occur organically based on the needs of users and developers.</p></li></ol><p><strong>The typical manifestation of excessive on-chain governance is engaging in extensive discussions about governance and advantages even before the community has formed. This is often accomplished by creating FOMO sentiments through methods like token issuance or prematurely using NFTs as a medium for user acquisition, resulting in the unhealthy rapid growth of the community.</strong> In the end, all participants are <strong>fixed within a carefully designed behavioral pattern, unable to change anything or determine the future direction of the DAO</strong>. Embracing fully on-chain governance from the outset is not a favorable governance path. Even in mature and large ecosystems like the Bitcoin and Ethereum communities, full on-chain governance has not truly been initiated. Instead, communication, management, and iterative growth are more often facilitated through human-centric community models. The Bitcoin community grew slowly rather than being designed. It started with just a few enthusiasts running Bitcoin code on personal computers, then progressed to someone buying pizza with Bitcoin, and eventually evolved into the massive computational power we see today. The governance and development process of DAOs is both lengthy and challenging.</p><h2 id="h-meta-governance" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Meta-Governance</strong></h2><p>In stark contrast to the previously mentioned excessive on-chain governance, Meta-Governance has minimal pre-defined rules. First and foremost, <strong>there is no genuinely orchestrated set of rules by an official entity</strong> to entice more people to join and generate FOMO. Secondly, Meta-Governance places more emphasis on how the governance process is generated. It adopts a human-centric governance model, relying on contributors to create rules.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d7c1fe45515e8459f8fc699dbac4680d9b090f44be646af80a1df0d2bbc135b0.png" alt="Meta-Governance" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Meta-Governance</figcaption></figure><p>The PermaDAO theme revolves around the Arweave ecosystem, with a <strong>core philosophy of exploring large-scale collaboration amongst strangers</strong>. All rules only need to expand around these two aspects. We hope any contributor can create rules, introduce new types of work, and generate more tasks. Of course, the premise is that these rules and tasks can operate clearly, and the execution results can be recorded on the blockchain. Permanence is also a crucial foundation feature for PermaDAO. The process of everyone&apos;s contributions will ultimately be recorded on the blockchain, creating a permanent record. Your workload will forever belong to you, thanks to Arweave’s permanent storage.</p><p>In practice, through Meta-Governance, PermaDAO generates autonomous domains such as Activity Guild, Content Guild, Branding Guild, Development Guild, and more. The rules of these guilds are created spontaneously by contributors in the community. Initially, many guilds faced various issues, but as more contributors joined, there were always individuals raising questions and finding solutions.</p><p>Occasionally, contributors would inquire why PermaDAO hasn&apos;t issued NFTs to attract newcomers. According to the Meta-Governance logic, the issuance of NFTs is also a rule created by contributors. There won&apos;t be corresponding rules until community members propose and promote such proposals within the community.</p><p><strong>The governance of DAO relies on the community itself, not on any so-called official entity. Meta-governance is the process of creating rules amidst chaos, evolving from disorder to order in an automated manner.</strong></p><h2 id="h-fully-on-chain-governance" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Fully On-Chain Governance</strong></h2><p>Excessive on-chain governance is not a good practice, but fully on-chain governance remains the ultimate goal that DAOs explore, it just needs a more lengthy evolutionary process to achieve it eventually. <strong>The rules of on-chain governance should not be prematurely defined. Due to the lack of flexibility in smart contract code, early definitions can lead to the model having issues and ultimately creating a death spiral to failure.</strong> After all, it hasn’t even been a decade since DAO exploration started, and there are too many issues to explore and solve. We hope to start with Meta-Governance, deriving a model of full on-chain governance from chaos, without expecting to produce a FOMO model meticulously designed by a few individuals but still flawed.</p><h2 id="h-exploring-halo-token" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Exploring HALO Token</strong></h2><p>PermaDAO has been using the approach of Meta-Governance in its exploration of DAO for over a year. There are over 1000 articles created and translated within the DAO, and more than 10,000 tasks of various types have been executed. These tasks include, but are not limited to, Space activities, large-scale offline events, PR campaigns, software development, content creation, content translation, financial settlements, and institutional proposals. PermaDAO&apos;s currently has 370 contributors, achieving the collaboration scale of a medium-sized enterprise through 100% online cooperation. Over 50 active contributors receive AR incentives weekly. The achievements are significant!</p><p>With the guild rules made now being mature, the DAO is poised to embark on the next phase of exploration—how to achieve fully on-chain governance! In the three stages of DAO development, pioneers delve into rule exploration when talent is scarce. After establishing rules, in the mid-term, more contributors are attracted, and a fair and transparent promotion system is instituted, fostering healthy and sustainable development. Ultimately, this leads to the exploration of fully on-chain governance.</p><p>We introduced the HALO Token for governance voting. With HALO <strong>allocation based on past workload data</strong>. All contributors will receive HALO tokens, with the quantity tied to their past workload to encourage and recognize volunteers&apos; contributions. Initially distributed HALO will be in a locked state, granting voting and governance rights, with weight proportional to workload time. This approach respects early contributors, safeguarding their interests as they played a crucial role in the DAO&apos;s early stages when talent was scarce.</p><p><strong>The HALO Token obtained through contributions to different guilds carries different voting characteristics</strong>. The HALO Token from that particular guild weighed ten times more than the HALO voted to other guilds. This measure is designed to safeguard the governance rights of guild professionals and prevent the rules established by a guild&apos;s founders from being easily overturned.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/c1ad1e4a1fd2b3fcf11946468c851ec231574b11b71094e2000d1a574f069924.png" alt="10x Vote" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">10x Vote</figcaption></figure><p>Staked HALO can be unstaked and traded on secondary markets, but unstaking sadly means that you’ll be forfeiting your voting rights. <strong>In a permissionless DAO, new members must contribute by working or repurchasing HALO to gain voting rights.</strong> HALO purchased on the secondary market after locking won&apos;t inherit the tenfold voting weight.</p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Conclusion</strong></h2><p>In the governance realm, decisions, both centralized and decentralized acknowledge the pivotal role played by individuals. In the age of information and blockchain, a unique opportunity presents itself — the creation of a platform that manifests fair and transparent visions, granting greater autonomy to individuals in designing systems. The HALO Token will serve as a powerful tool for PermaDAO to explore fully on-chain governance. Despite the risks, HALO will operate as a test token before its official launch. PermaDAO is poised to execute on-chain governance voting using blockchain technology, encompassing facets such as scrutinizing guild rule proposals, electing leaders, and rotating key positions. The efficacy of meta-governance has already manifested during PermaDAO&apos;s early stages. We firmly believe that the future will witness the exploration of highly viable solutions for complete on-chain governance, establishing the groundwork for extensive collaboration among blockchain strangers.</p><p>We extend a heartfelt welcome to individuals with expertise to join PermaDAO, contribute proposals, and engage in collaborative efforts to refine rules. Within this realm, no rules are immutable; there are only opportunities for improvement. While the current framework may seem somewhat antiquated, the forces of emergence and evolution are certain to infuse a renewed brilliance into the system.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/22b4be50029b0b64b5574dbb8f3a386e1e82d566bd71ef7289b5e204bb9d2580.jpg" length="0" type="image/jpg"/>
        </item>
        <item>
            <title><![CDATA[Permaweb, a Decentralized Microservices Architecture]]></title>
            <link>https://paragraph.com/@outprog-2/permaweb-a-decentralized-microservices-architecture</link>
            <guid>TQaeI0U44sj9wCMhWjZL</guid>
            <pubDate>Tue, 15 Aug 2023 03:52:56 GMT</pubDate>
            <description><![CDATA[Permaweb is the next-generation internet architecture proposed by the Arweave ecosystem. The key emphasis of Permaweb lies in granting applications and websites the attribute of perpetual accessibility, allowing the internet to possess memory and eliminate forgetting. Additionally, Permaweb features a serverless nature, relieving developers from deploying front-end and back-end components themselves; all developed services will be provided by the foundational service layer of Permaweb. This a...]]></description>
            <content:encoded><![CDATA[<p>Permaweb is the next-generation internet architecture proposed by the Arweave ecosystem. The key emphasis of Permaweb lies in granting applications and websites the attribute of perpetual accessibility, allowing the internet to possess memory and eliminate forgetting. Additionally, Permaweb features a serverless nature, relieving developers from deploying front-end and back-end components themselves; all developed services will be provided by the foundational service layer of Permaweb.</p><p>This article will provide a technical interpretation of Permaweb while incorporating SCP(Storage-based Consensus Paradigm) theory.</p><h1 id="h-framework" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Framework</strong></h1><p>Permaweb follows a three-layer architecture. The top layer is the Application Layer, which is the user-facing interface. The middle layer is the Service Layer, providing backend services to the application. The bottom layer is the Storage Layer, utilizing Arweave to offer data storage services.</p><p>The architecture of Permaweb is not significantly different from Web2 architecture. The Application Layer corresponds to the frontend in traditional Web2, the Service Layer corresponds to the backend, and the Storage Layer corresponds to physical servers or databases.</p><p>The most significant distinction between Permaweb and Web2 is the use of decentralized storage. Once Permaweb applications integrate permanent storage like Arweave, tampering and erasing application content becomes very difficult, granting the application decentralized properties. Although Permaweb&apos;s architecture resembles Web2, its underlying technology and design philosophy fundamentally differ.</p><p>Permaweb&apos;s architecture is shown in the figure below (from Permaweb Cookbook: <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cookbook.arweave.asia/"><strong>https://cookbook.arweave.asia/</strong></a>). The following sections will provide a detailed overview of Permaweb&apos;s three-layer architecture.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/8428fde1a75c6eac023b25db6e21b8e3852c491477a002a4c618e715e1219097.png" alt="Source: https://cookbook.arweave.asia/" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Source: https://cookbook.arweave.asia/</figcaption></figure><h3 id="h-storage-layer" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Storage Layer</strong></h3><p>The Storage Layer is the core of Permaweb. Without blockchain technology in the storage layer, there would be no difference between Permaweb and Web2. The storage layer of Permaweb is not limited to Arweave. Theoretically, Bitcoin or Ethereum could also be used as a storage layer to create a Permaweb application, but developers and users may struggle with high storage costs. Arweave, with its professional permanent storage blockchain capabilities and costing only $5 for 1 GB, is the optimal choice for being the storage layer of Permaweb.</p><p>Can the storage layer use IPFS? If IPFS is used, Permaweb will lose the data traceability feature. IPFS&apos;s data CID ensures immutability, but IPFS does not use blockchain technology. IPFS data lacks block timestamps, making it impossible to discern the time of data creation. Additionally, data will be lost if IPFS service nodes are shut down, making data permanence and traceability unassured.</p><h3 id="h-service-layer" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Service Layer</strong></h3><p>The service layer serves as a unified middleware providing APIs to applications, similar to a Web2 microservices cluster, being stateless and capable of horizontal scaling. Typically, Permaweb&apos;s service layer offers standardized interfaces and protocols (similar to Web2&apos;s gRPC or Thrift, the entirely open-source). These interfaces and protocols are fully open-source, and any service provider that deploys services can provide the same API based on the protocol standard. As long as an application is developed using the standard protocol, it can operate and be used on different service layers.</p><p>Currently, Arweave&apos;s service layer includes four core components:</p><ul><li><p>Gateway services: Caches frequently used Arweave data. Examples include <em>arweave.asia, arweave.dev, g8way.io, ar-io.dev</em>, and more.</p></li><li><p>Binding services: Using the Arweave ANS-104 standard, large amounts of data are batched and packaged onto Arweave. Examples include bundlr, arseeding, etc. Data conforming to ANS-104 can also be queried using GraphQL.</p></li><li><p>Sequence services: Smart contract services, payment services, etc. Examples include Warp, everPay, etc.</p></li><li><p>Indexing services: Arweave Tags retrieval service, full-text indexing service. Examples include Adot, KNN3, goldsky, etc.</p></li></ul><p>Currently, the standard protocol includes only these four modules, but in the future, Permaweb&apos;s service layer could be further expanded with new standards.</p><h3 id="h-application-layer" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Application Layer</strong></h3><p>Permaweb applications possess Serverless characteristics; developers don&apos;t need to deploy servers. As the service layer provides standard interfaces to the application layer, applications developed according to specifications can operate and be used on any service layer.</p><p><strong>Interaction</strong></p><p>Users only need to interact with the service layer without interacting with the underlying blockchain.</p><ul><li><p>Resource loading: A standardized gateway provides all necessary file resources that the Permaweb frontend needs to load. These file resources are organized in a directory format based on the Manifest standard, making it easy for web protocols to load and assemble them.</p></li><li><p>Data writing: Writing to Permaweb usually employs the ANS-104 standard on Arweave, supporting large-scale data writing. The bundle service implemented using ANS-104 makes the writing experience on Permaweb consistent with Web2.</p></li><li><p>Data querying and indexing: A standardized indexing service enables Permaweb to load content dynamically. Indexing doesn&apos;t require waiting for data to be packed onto Arweave, once data is uploaded to the bundle service, efficient application indexes can be generated in real-time, providing users with real-time data querying capabilities.</p></li></ul><p>In summary, interaction-wise, Permaweb can provide an entirely consistent experience with Web2.</p><p><strong>Resistance to Censorship</strong></p><p>The standard protocol and interfaces provide applications with anti-censorship features. Below are URLs of a Permaweb application named &quot;cookbook&quot;:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cookbook.arweave.asia/"><strong>https://cookbook.arweave.asia/</strong></a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cookbook.arweave.dev/"><strong>https://cookbook.arweave.dev/</strong></a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cookbook.g8way.io/"><strong>https://cookbook.g8way.io/</strong></a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cookbook.ar-io.dev/"><strong>https://cookbook.ar-io.dev/</strong></a></p></li></ul><p>You can see that any of these URLs can access the &quot;cookbook&quot; application. This website is served by different gateways and servers globally. If <em>arweave.asia</em> becomes inaccessible, users can still use other URLs to continue using the application. Even if all gateways are closed, the cookbook&apos;s data is stored using Arweave, and this data won&apos;t be lost, allowing service providers to restore the &quot;cookbook&quot; application at any time.</p><p>Using Arweave&apos;s permanent storage as the storage layer ensures data decentralization for every Permaweb application. Adopting standardized, open-source protocols for the service layer, can prevent censorship risks caused by the closure of individual servers due to uncontrollable circumstances. Permaweb applications possess decentralized and censorship-resistant features.</p><h1 id="h-microservices-version-of-scp" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Microservices Version of SCP</strong></h1><p>The architecture of Permaweb is similar to traditional Web2 architecture. Essentially, Permaweb is a set of microservices-based application architecture built on decentralized storage.</p><p>Microservices is a software architecture pattern used in Web2 development that breaks down a large and complex application into a series of smaller, more independent service units. Each microservice is an isolated functional module that can be developed, deployed, and operated independently. These microservices communicate with each other through well-defined APIs and can use lightweight communication protocols such as HTTP or message queues to achieve interoperability.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ede94edb1d29a9020da50be81f49559c7293c1459c270034735b19bd0b8d384e.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The overall architecture of Permaweb is very similar to microservices. Each Permaweb application is composed of standardized and independent service units. This same design philosophy equips Permaweb with the capability to build complex applications on a large scale.</p><p>What sets Permaweb apart from traditional microservices is its alignment with SCP, making it an SCP-based microservices architecture.</p><blockquote><p><em>What is SCP (Storage-based Consensus Paradigm)? It&apos;s a consensus paradigm based on storage, where the core idea is that as long as the storage is immutable and transactions on it are traceable, the result of application computation will be unique anywhere, leading to consensus. A distinctive feature of SCP is that underlying data can be infinitely combinable. As long as there are standardized ways of assembling data, applications can aggregate unique states from any storage layer, even multiple storage layers together.</em></p></blockquote><p>When developing applications using SCP, traditional application architectures require minimal adjustments. Only the database (storage layer) must be replaced with immutable and traceable blockchain storage.</p><h3 id="h-advantages" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>Advantages</strong></h3><p>Applications developed using this decentralized microservices architecture can acquire equivalent features of blockchain technology. These features include decentralization, immutability, traceability, resistance to censorship, and more.</p><p>Similar to traditional microservices architecture, this framework offers the following development advantages:</p><ol><li><p><strong>Modularity and Maintainability:</strong> Independent services responsible for specific functions. This standardized and modular design allows each service to be developed, tested, deployed, and maintained independently, enhancing application maintainability and flexibility.</p></li><li><p><strong>Independence:</strong> Each service can be developed and maintained by different teams, aligning with the characteristics of DAOs. This allows various organizations and individuals to contribute their best performance and development speed to Permaweb. It also enables developers to choose the most suitable technology stack and tools. In the Arweave ecosystem, we can see different teams providing various services, such as gateways offered by <em>ar.io,</em> data binding services provided by bundlr and the open-source arseeding, and dedicated financial services offered by everPay and Permaswap, among others.</p></li><li><p><strong>Scalability:</strong> Independent services can be horizontally scaled as needed. Each service could even be likened to the shards mentioned in ETH 2.0, but Permaweb doesn&apos;t have a limitation on the number of shards and can scale infinitely horizontally. Additionally, the same protocol standard can offer different data set services. For instance, certain gateways can optimize the access speed for specific applications by caching and processing data for those applications only.</p></li><li><p><strong>High Availability:</strong> With multiple available gateways (microservices), the application avoids single points of failure and achieves better availability.</p></li></ol><p>This architecture inherits all the advantages of microservices while overcoming the Blockchain <strong>impossible trinity</strong>. Traditional blockchain applications had to sacrifice one feature among scalability, security, and decentralization to ensure the integrity of the other two. Under the SCP theory, due to the layered architectural design, consensus will be guaranteed by the storage layer and a universal protocol. Decentralization is no longer strongly related to the number of nodes but to the openness (open-source nature) of the protocol. When discussing Ethereum&apos;s decentralization, apart from considering the number of nodes, it&apos;s crucial to recognize that the Ethereum software itself is a standard protocol. Users and miners reach consensus using the same protocol, forming a high degree of decentralization. In the case of Ethereum, the majority of users and developers currently use services provided by <em>infura.io</em>. Although <em>infura.io</em> is a centralized service, users can deploy the Ethereum protocol at any time and independently access the network. Similarly, decentralized microservices can fulfill the mentioned characteristics. However, decentralized microservices aren&apos;t tied to a specific VM architecture (like EVM). Instead, they are more flexible and closer to the theoretical model of traditional architecture. They represent the next-generation decentralized internet architecture born from the fusion of microservices and SCP theory.</p><h2 id="h-practice-from-arweave-beyond-arweave" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Practice: From Arweave, Beyond Arweave</strong></h2><p>Currently, Permaweb has only four services: gateway, data binding, sequence, and indexing. These services have formed a certain standard. So, what exactly is a Permaweb instance, and how is it built using these four standard services?</p><h3 id="h-the-now-application" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0"><strong>The &quot;Now&quot; Application</strong></h3><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://now.arweave.asia/"><strong>https://now.arweave.asia</strong></a> is a Permaweb application (referred to as &quot;Now&quot; in the following text) that serves as a platform for communication among developers within the Arweave ecosystem. The primary function of Now is to allow users to initiate blogs, and other users can like the content of these blogs.</p><p>All the data of Now is stored on Arweave, ensuring decentralization through immutable storage. When a user opens Now, the browser loads a frontend framework from Arweave&apos;s gateway service, as shown in the figure below. This page framework mainly includes the Header component of Now and doesn&apos;t contain the display data of the Now application.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6bf2fdc9184591ddc8b8539f3c3074723cb977cb9328d41ba847d41858144e50.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>After the browser loads the application framework, we can see that the content display section of Now will show <code>Loading stamps</code> . At this point, the Now application is initiating GraphQL requests to retrieve data for the application. After a few seconds of waiting, the retrieval process is completed, and the Now application will display the latest user comments and likes (Stampers), as shown in the image below:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/3778a3365cc8525c2114ce246d8187eec16a1198a39480fe6ad35b16d7243346.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>On this page, the initialization of the framework, all user data, and all images presented on the page are obtained through the gateway. These elements are computed and assembled into the complete Now page within the browser. The gateway provides the capability to load static resources, while the indexing service provides the ability to load dynamic data.</p><p>When a user wants to add a new blog post, they can use their wallet to upload the content to Arweave. This content will be marked with specific tags to facilitate GraphQL query functionality provided by the indexing service. After the successful upload of the blog, upon refreshing the Now application, the new content will be displayed within the content presentation of the application.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d39afd99cd9b6f4b6385cbd25b0e6dda35df897fcb36e89c83eeb7d43f100976.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The diagram above illustrates the fundamental process of writing to and reading from Permaweb. In practical applications, both writing to and reading from Permaweb will be carried out through the service layer.</p><h2 id="h-scaling" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Scaling</strong></h2><p>The greatest advantage of microservices is scalability, and this feature will be fully inherited by the Now application. We can access Now using any of the following gateways:</p><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://now.arweave.asia/"><strong>https://now.arweave.asia/</strong></a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://now.arweave.dev/"><strong>https://now.arweave.dev/</strong></a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://now.g8way.io/"><strong>https://now.g8way.io/</strong></a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://now.ar-io.dev/"><strong>https://now.ar-io.dev/</strong></a></p></li></ul><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/d5ddd7471cfc7a5a08f638f68bd76eef5dbd662966766e3a52c74e984cd49640.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Similar gateways can be horizontally scaled without limit, giving the Now application nearly unlimited performance capability.</p><h2 id="h-the-best-practices-of-scp" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The <strong>Best Practices of SCP</strong></h2><p>In the architecture of Permaweb, Arweave is only used as the storage layer. However, decentralized microservices should not be limited to this. We should deeply draw from the advantages of Permaweb and microservices architecture to explore the best engineering practices of SCP.</p><p>The following image is from the article <strong>Evolution of the Blockchain Application Model along with Changing Consensus</strong>, describing the future architecture of blockchain applications - users no longer interact with the blockchain system itself, but with the service layer. The evolution of blockchain applications is shown from Figure 1 to Figure 3, and more content can be read at:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://news.ever.vision/evolution-of-the-blockchain-application-model-along-with-changing-consensus-755e4ae407a7">https://news.ever.vision/evolution-of-the-blockchain-application-model-along-with-changing-consensus-755e4ae407a7</a></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6918efaac8769b20e26724098bcfc146bb7f4404491996a80ada880fc7720e34.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>From Figure 3, it can be seen that the blockchain relied upon by the application is not limited to Arweave, Bitcoin and Ethereum are also other blockchain objects. These blockchains serve as the consensus source for the application, providing decentralization and trusted assurance. Similarly, Permaweb and decentralized microservices can also be expanded, with the storage layer not limited to Arweave. Bitcoin and Ethereum can also be used as storage layers, where the storage layer can also be other types of blockchains. One possible best practice architecture is shown in the image below:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/feaf3fb9b1149cd616a64210f51bca496a24b202a1b82de305ad51f16f769382.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Describing from bottom to top:</p><ul><li><p>Consensus Layer: After expanding Permaweb, renaming the original storage layer to the consensus layer is more appropriate. The consensus layer can be any blockchain system, possessing the properties of immutability and traceability.</p></li><li><p>Service Layer: The key distinction between the service layer and Permaweb lies in the fact that the underlying standard protocol is not limited to Arweave storage, allowing microservices to be established for any blockchain system. Taking the indexing service as an example, Nansen provides data query capabilities for existing EVM public chains, and many DApps and frontend data can directly use Nansen as a data source. KNN3 also provides similar indexing capabilities, creating a standardized relational query layer for blockchain data and offering storage indexing compatibility with Arweave GraphQL. In this architecture, microservices have more standards and better compatibility with the consensus layer.</p></li><li><p>Application Layer: Not limited to Permaweb applications, this architecture can support decentralized applications (Web3) and Web2 applications, fully compatible with the original architectural system.</p></li></ul><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Conclusion</strong></h1><p>When looking back at the evolution of computer software engineering over the past 30 years and considering the evolution of blockchain engineering over the past 10 years, it is necessary to reflect on whether a global virtual machine (such as EVM) combined with Layer2 scaling solutions is the ultimate solution for decentralized systems.</p><p>This article did not deeply explore the feasibility of Layer2 or sharding technologies, but instead provided another possibility for the way blockchain applications are approached. Using Arweave&apos;s Permaweb as an example, this article combined the Storage-based Consensus Paradigm (SCP) and the microservices architecture to reevaluate a feasible engineering solution. This solution not only has strong scalability but also empowers applications with decentralization features. More importantly, this solution is not a mere illusion but a practical architectural system that can be implemented.</p><h1 id="h-reference" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0"><strong>Reference</strong></h1><ol><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mp.weixin.qq.com/s/rSttw02Xsq2-6IMU0_JMjw">https://mp.weixin.qq.com/s/rSttw02Xsq2-6IMU0_JMjw</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://news.ever.vision/evolution-of-the-blockchain-application-model-along-with-changing-consensus-755e4ae407a7">https://news.ever.vision/evolution-of-the-blockchain-application-model-along-with-changing-consensus-755e4ae407a7</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://cookbook.g8way.io/">https://cookbook.g8way.io/</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://news.ever.vision/a-storage-based-computation-paradigm-enabled-by-arweave-de799ae8c424">https://news.ever.vision/a-storage-based-computation-paradigm-enabled-by-arweave-de799ae8c424</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.notion.so/Brief-History-The-Development-of-Arweave-and-Storage-based-Consensus-Paradigm-SCP-d60aec0e8a4d4aafa33d536c6fdf4189?pvs=21">https://permadao.notion.site/Brief-History-The-Development-of-Arweave-and-Storage-based-Consensus-Paradigm-SCP-d60aec0e8a4d4aafa33d536c6fdf4189</a></p></li></ol>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ca960b04837d7da7db750440349abd65599d145693e6ea2609e2fbdc09ee1274.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[How to Build Your Own SCP App: Domain-oriented PoS Design — Token DAO]]></title>
            <link>https://paragraph.com/@outprog-2/how-to-build-your-own-scp-app-domain-oriented-pos-design-token-dao</link>
            <guid>5JXm55kUYIMimTvKB6l3</guid>
            <pubDate>Fri, 14 Jan 2022 06:09:36 GMT</pubDate>
            <description><![CDATA[In the last blog post, we introduced a domain-oriented PoS design. We foresee that in the rising era of WEB3, developers will not be limited to traditional Layer1 blockchain and EVM. Still, there will be more paradigms to build WEB3 applications. SCP is a smart choice for WEB3 development architecture design, allowing developers to focus on domain-oriented PoS design. This article will provide an in-depth example of domain-oriented PoS and explain how to solve the trust problem through domain...]]></description>
            <content:encoded><![CDATA[<p>In the last blog post, we introduced a domain-oriented PoS design. We foresee that in the rising era of WEB3, developers will not be limited to traditional Layer1 blockchain and EVM. Still, there will be more paradigms to build WEB3 applications. SCP is a smart choice for WEB3 development architecture design, allowing developers to focus on domain-oriented PoS design. This article will provide an in-depth example of domain-oriented PoS and explain how to solve the trust problem through domain-oriented PoS, and create a trustless DAO for collaboration between users through PoS.</p><p>Token security is an oft-criticized topic in blockchain security. On blockchains, anyone can issue tokens, and the quality of these tokens varies. There are even hackers who maliciously issue tokens that can only be bought but not sold to scam users. In the blockchain industry, smart contracts are the law. Still, the terms of these contracts can only be identified by professional technical experts. It is difficult for users to distinguish between valid and secure tokens and malicious tokens in hundreds of lines of code.</p><p>imToken has created a token profile (<a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/consenlabs/token-profile">https://github.com/consenlabs/token-profile</a>), where token projects submit token information themselves on GitHub. Those submissions will be reviewed by an authority (imToken) before being displayed in the imToken wallet. If there is a malicious token, it is usually fed back to the authority by the user and re-audited by the authority, which is a long and troublesome process. everFinance has encountered malicious tokens EVER. The lengthy auditing process, which requires interfacing with various agencies and media, has dramatically delayed the flagging and publicizing of the malicious token. So, do we have a decentralized and more efficient token identification mechanism? And make the process of labeling tokens transparent and trustworthy, accurate and fast through financial incentives?</p><h1 id="h-common-auditing-process" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Common Auditing Process</h1><p>The typical approach of token security relies on a centralized authority for auditing. The risk control mechanism for tokens is summarized in the flow shown below:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7d5312013560e5e42fd841e08da60fb98b637a3f7806ee8d6e23d007263a25e4.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In the above figure, the token issuer or user submits token information. The status of the token audition is yellow. The authority will audit the token information and mark the tokens as green for secure tokens and red for risky tokens. If the authority audits the token incorrectly, auditing is started over, and the token status is re-labeled after re-auditing.</p><p>In the traditional security world, this process is repeated by an authority every time a new token is created. The user of the token information needs to trust the authority and wait for the authority&apos;s re-audit when the token information is faulty.</p><p>At the same time, the security of the token is repeatedly audited by different authorities, and absolute trust is not always reached for other authorities. We can see that security-related information is produced in a disparate and untrustworthy information network and managed independently by different authorities.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/0a0d8ceff5f1a2e3bbe917c4904af297277e65044626ca3b495d82fc7c91721d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>There are two crucial problems with the existing mechanism:</p><ol><li><p>The applications completely trust and rely on the authorities. There is a massive single point of risk for the token information.</p></li><li><p>Security information is scattered among different authorities. There is a huge trust gap between authorities, with a time-consuming information-sharing process.</p></li></ol><h3 id="h-authorities-and-trust-gap" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Authorities and Trust Gap</h3><p>Trusting authorities generates a huge single point of risk. It is why many apps build their own security risk control systems. Single point of risk may lead to untimely token information updates or even wrong token information. When the business pays much attention to security, the application provider needs to conduct a repeated review of the content in addition to the authority, which reduces the efficiency but also increases the cost of sharing security information.</p><p>Due to trust issues, the security of the token is not quickly agreed upon among organizations. When a risky token is labeled, repeated audits and lengthy verification processes are often required between authorities before the final token security information can be updated.</p><h3 id="h-altcoin-big-risk" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">Altcoin, Big Risk</h3><p>For some small-cap altcoins, due to the high audit cost, it will lead to the fact that no authority verifies them. The authority will be alerted only when the altcoins lead to significant financial problems. Such security information lag commonly happens.</p><h1 id="h-using-dao-to-govern-security" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Using DAO to Govern Security</h1><p>The Storage-based Consensus Paradigm (SCP) advocated by Arweave and everFinance opens up new possibilities in the field of token security:</p><ol><li><p>No more trust gaps, token information is trustworthy, and the consensus of the DAO is the only trusted source</p></li><li><p>No more reliance on authorities, decentralizing token information so that anyone can get accurate information</p></li><li><p>No access control, any institution or individual can participate in DAO without permission</p></li><li><p>Faster token information validation, with DAO&apos;s economic incentive model incentivizing members to process new token information quickly</p></li></ol><h3 id="h-how-to-build" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">How to Build</h3><p>Reasonable financial incentives are a vital element in creating a DAO. The traditional security auditing process cannot solve the consensus on security information or the single centralized point of risk.</p><p>We can develop a tokenDAO node, an off-chain smart contract for DAO members&apos; collaboration. The node&apos;s code defines the template for uploading token information, the token mechanism, how to conduct voting, rewards and penalties, and other related rules.</p><p>There will be a token called TOK in tokenDAO. TOK is a profit-sharing community token, and anyone can go to everPay Swap to get TOK. TOK functions include: </p><ol><li><p>Incentivize correct token information uploads</p></li><li><p>Incentivize correct token labeling</p></li><li><p>Vote on token information</p></li></ol><p><strong>Token Upload</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/90ea63f31865cba316c9d03c10b987f97926cd5913b4ccc11feff51a3c740bbe.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Token information will be uploaded to Arweave and must be uploaded according to the data template specified by tokenDAO. Incorrect data fields or duplicated uploads are considered invalid. Once valid data is uploaded to Arweave, it is loaded into the tokenDAO node. tokenDAO nodes automatically store the uploader address of each piece of data. TOK can be staked to each token information. The more TOKs are staked for each token information, the more TOK rewards the uploader receives. However, the TOK reward for the uploader is much lower than the reward for staking tokens for labeling since collecting information is much easier than labeling information.</p><p><strong>Token Labelling</strong></p><p>Any user holding a TOK can stake their TOK to valid token information. TOK staking is a ternary operation consisting of: no staking, stake the token as safe, and stake the token as scammy. When there is no staking, there are no rewards to the units of TOK. Staking a token as safe or scam can result in a reward or a penalty. The holder of a TOK needs to correctly determine if the token is malicious. The penalty for a wrong stake is greater than the reward of a correct stake to keep the quality of each stake and avoid arbitrary stakes.</p><p>A TOK can be staked to any number of token information. Different stakes can be chosen for different token information: stake for safe or for dangerous. A unit value of TOK is less profitable if it is staked to only one token, and most profitable if it is staked to all tokens in the network. A TOK can also be delegated to a third party to stake.</p><p><strong>Information Correction</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9d054777fc96a53b0812e2096ef1b83e3153e195e8c63b70ec871888f5492dd2.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The graph shows the results generated by TOK stakes. The green bar represents the number of safe stakes, and the red bar represents the number of dangerous stakes. tokenA has a large amount of TOK staked as safe, while tokenC has a large amount of TOK staked as safe and a small amount staked as unsafe, which is a controversial token. If anyone staked for danger for tokenA, tokenA becomes a controversial token, and the token enters the uncertainty state.</p><p>Within n hours of the token being controversial, the user can choose to change the stake type, and if a new consensus is reached within n hours, the token is automatically released from dispute. If there is still a controversy after n hours, a voting phase will take place. Any user with a TOK can vote on the controversial token. Ultimately, the wrong side of the stake is forfeited and awarded to the voter and the staker with the correct choice.</p><p><strong>How to Use tokenDAO</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7e83561f5c19d15807f308e7f1975abaa198a87306e2f04fde99058016d1689d.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The DAO is entirely free, and anyone can download the tokenDAO node. Running the node will automatically sync token information from Arweave and generate staking and voting conditions for each token according to the transaction history on Arweave. Once the tokenDAO node is synced to the latest block on Arweave, users can access the tokenDAO API to get the latest, fully decentralized, secure token information consensus.</p><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h1><p>Arweave + SCP allows us to quickly create a domain-oriented PoS and DAO based on a domain-specific problem. The model can be adapted to a broader range of domains. Whether blockchainless DEX or decentralized new media mentioned in previous blogs, similar projects can all be economically incentivized by domain-oriented PoS design tokens. Arweave + SCP solves the consensus problem and provides developers with the freedom to develop architecture designs. Arweave + SCP will pave the technical path for WEB3.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/cc71cecfc00c0da0e25817bd7b33481aec9d4ab63d469662cdbd8cb915214f52.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[How to Build Your Own SCP App: Decentralized News Media]]></title>
            <link>https://paragraph.com/@outprog-2/how-to-build-your-own-scp-app-decentralized-news-media</link>
            <guid>fScMYpORefAxE2gZb1sr</guid>
            <pubDate>Mon, 03 Jan 2022 03:23:55 GMT</pubDate>
            <description><![CDATA[It is difficult to create a decentralized news media content platform on Ethereum, since the high fees discourage any forms of storage. Arweave offers a new possibility to reduce the cost of decentralized storage with 1GB of permanent data storage for only 15 USD. Using Arweave as the Web3 infrastructure, developers can easily build decentralized media content platforms. Arweave’s permanent storage starts a new era of blockchain: distribute data and content without centralized distribution. U...]]></description>
            <content:encoded><![CDATA[<p>It is difficult to create a decentralized news media content platform on Ethereum, since the high fees discourage any forms of storage. Arweave offers a new possibility to reduce the cost of decentralized storage with 1GB of permanent data storage for only 15 USD. Using Arweave as the Web3 infrastructure, developers can easily build decentralized media content platforms.</p><p>Arweave’s permanent storage starts a new era of blockchain: distribute data and content without centralized distribution. Using the <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/KCYNKCIhFvTZ1DmD7IpXr3p8di31ecC283HgMDqasmU">Storage-based Consensus Paradigm</a> for content distribution, readers only need to trust the open source smart contract code to get content media with untampered and uncensored content through a decentralized approach. After reading this article, you will learn how to decentralize media content and make it available everywhere. Also, we can use token economics to decentralize the content creation process.</p><h1 id="h-lack-of-data-decentralization" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Lack of Data Decentralization</h1><p>Traditional content distribution platform is a single node of centralized storage, with the growth of data volume or data censorship, some content will be actively or passively deleted or lost. At the same time, the platform may face closure in the future, and users will not be able to access pre existing information after the closure.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/2c9100fd1b5f5f7f3e14a52952ed5dea6a903ba9cea50d227aba8fe3f5488320.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>For news media of the Web2 era, as shown in the diagram above, journalists (orange ones) write their industry insights into content to provide media service for readers (blue ones) through centralized nodes. This content is elegantly presented by the nodes, and users can simply click on the website URL to get the content and data they want.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/de69372e15bed58b94695ed3235042338d3cb70b7afae3519bee71c7fa602080.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Unfortunately, when centralized nodes are shut down, readers have difficulty accessing the content and even lose access to historical content (including articles they have already read).</p><p>Using Arweave for storage ensures that data will never be lost, so data decentralization is easy to achieve. Content distributors simply pay a certain AR to store data in Arweave. However, it is not enough to store data permanently. A large amount of redundant data is stored permanently, and readers cannot write code or scripts to filter the unneeded data and transform useful data into content as developers do. They also don’t have the ability to write HTML and CSS code to visualize the original article data to readable contents. Of course, we can directly store HTML files to Arweave, but even though the data is already a web page, it still cannot be indexed and searched directly in the user&apos;s device. </p><p>Decentralized data storage alone cannot solve the problem of data readability (visualization). When building decentralized news media, developers must not only consider permanent data storage, but also consider data readability and visualization. SCP is the last step for content decentralization, making it easier for everyone to enjoy Web3 experience.</p><h1 id="h-decentralization-of-news-media" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Decentralization of News Media</h1><p>A complete decentralized news media should not only store data on the blockchain, but also provide visualization of the data. Using SCP can enhance the experience: SCP allows anyone to run open source off-chain smart contract code at any time from their own device, restoring the historical status of all articles and displaying all article content onto the screen.</p><p>Decentralized news media needs to do two things.</p><ol><li><p>Open source the node code so that anyone can get the code and re-run the node</p></li><li><p>Upload all data from the node to Arweave, and the open source node can automatically get the data and visualize the data into readable content</p></li></ol><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/029d9ee14a83505348f3de3f5e14a47c67971a8f3f7900033da4e73c9979bd1a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In the above diagram, the core node is the distribution end of the news. It is similar to the traditional architecture: the journalist (yellow ones) provides the content, which is displayed to the readers (blue ones) through News Core Node. The core node must be an open-source, central node with data upload function. The core node is responsible for the data presentation to the users and also uploads the content provided by the journalists to Arweave one by one.</p><p>The open source nature of the core nodes makes the media platform a smart contract. News article data is uploaded to Arweave&apos;s blocks continuously. Readers or operators who download and run the code can automatically download newly added data on Arweave and become a distribution node to provide content displaying services. The distribution node only needs to sync to data in the latest Arweave block to keep the content up-to-date.</p><p>If a decentralized news media uses the above architecture, when the media is shut down, anyone can recover and display the content using the data on the Arweave blockchain and the node&apos;s open source code.</p><p>Web3 news media does not require extensive modifications to Web2 ones. It only needs to replace the original storage solution to permanent storage on Arweave. Web2&apos;s high performance developing middleware will be the carrier for off-chain smart contracts, providing unlimited performance.</p><h1 id="h-decentralization-of-content-production" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Decentralization of Content Production</h1><p>The previous section mentioned the decentralization of content, so that any media that is shut down can be restored to a functioning node through the source code and Arweave&apos;s permanent data. However, in the above architecture, content providers still need to provide data upload services through centralized nodes, so can we also enable journalists to decentralize content writing without relying on centralized nodes? The answer is yes.</p><p>But if everyone submits data to Arweave, and the news media nodes load data without access control, a lot of junk news data will be generated, degrading the reading experience. The solution in the previous section is that the content is uploaded only by the core nodes, and the admin private keys of the core nodes have the ability to audit the data. At the same time, the other open source nodes download data from the content of the core private keys, thus not allowing spam news to “pollute” the news feed.</p><p>There are two issues that need to be addressed.</p><ol><li><p>Content should not be uploaded centrally</p></li><li><p>Content should not be overrun with meaningless data</p></li></ol><p>The key to solving both problems is token economics. Developers can integrate a token mechanism in the open source node that is specifically designed to focus on the functions of content uploading and spam data prevention. It is a domain-oriented PoS design.</p><p>Domain-oriented PoS designs are designed to solve domain-specific problems through proofs of stake. Traditional PoS are designed for generating new blocks and consensus protocols. These designs spend a lot of effort on consensus and no longer have the ability to develop proofs of stake for specific business domains. If we had to use traditional PoS to develop for specific business domains, the design architecture would be very complex and &quot;messy&quot;.</p><p>Arweave&apos;s perpetual storage mechanism makes data immutable and traceable, and already guarantees consensus data storage. Developers developing on SCP do not need to worry about consensus issues for their applications, and using SCP allows developers to completely focus on domain-oriented PoS design.</p><h3 id="h-how-to-decentralize-content-uploading" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">How to decentralize content uploading?</h3><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/05cbffbab06fb7f6ba63a95b5146fe490e6d7887719254ae0e9e244e692635de.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The above figure uses a unique private key for data distribution. To improve this, we changed filtering by key to filtering by token. </p><p>Native tokens integrated inside the open source node are called NEWS. Each NEWS has a unique ownership and can be transferred. Ownership and the transfer of ownership can use a Storage-based Consensus Paradigm: the account that owns NEWS can send the transaction metadata of transfer(amount, to) to Arweave, and other news nodes can get this transfer information from Arweave and perform the ownership transfer. This transfer information can be obtained by other news nodes from Arweave and the transfer of ownership can be performed. </p><p>Based on the SCP, the nodes have a consistent state over the same Arweave block height. Therefore, the ownership of NEWS follows the change of Arweave block, and our content is distributed through Arweave, so the token ownership and content have the same time series.</p><p>Three wallet addresses A, B and C hold NEWS on Arweave and they can do content uploads as follows:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/06d5cc964a50f94cec6a315d9eecb94e6366e742c41243b34472e8c3b7a3f120.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>From block 101 to 103, A and B hold NEWS tokens, and the content uploaded by A and B can be downloaded and computed by the nodes; C has no NEWS tokens, so C&apos;s uploaded content will be filtered out by the nodes.</p><p>At block height 104, A transfers 1 NEWS to C.</p><p>In block 105 and 106, the node does not download A&apos;s content uploaded after block 104 because A does not have NEWS tokens; C holds NEWS, and C&apos;s new content can be downloaded by the node normally.</p><p>With the addition of the token mechanism, news uploading no longer depends on a single private key and can be done by any token holder. When the node is synchronized to the latest Arweave block height, the valid articles are those uploaded by A and B in blocks 102-103 and those uploaded by C in block 106; the content uploaded by C in 103 and by A in 105 are not included in the node.</p><h3 id="h-how-to-avoid-spam-content" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">How to Avoid Spam Content?</h3><p>Tokens can not only replace keys for content uploads, but can also solve the problem of spam content. We can empower tokens with more functions, such as voting. NEWS holders can vote on the content they view, so we can design an effective voting incentive to encourage the display of high quality content. With the voting mechanism, nodes can process the voting data and rank the high quality content. Popular and high quality data will be in the headline. This also allows a decentralized and democratic recommendation system to be built.</p><p>The quality of news media may depend on the quality control ability of the news organization (centralized organization). At the start of the community, the centralized organization may need to hold more than 51% of the NEWS tokens to ensure the quality of the content voting. But as the decentralized community grows, the tokens will slowly be released to great journalists. A good token incentive will allow the tokens to be distributed and transferred appropriately, so that the best journalists will be rewarded more and quality content will be properly &quot;headlined&quot;.</p><h2 id="h-conclusion" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h2><p>Web3 news media not only creates content distribution that cannot be turned off, but also allows for more reliable and efficient content production. Using the SCP architecture lowers the barrier to decentralized news media, makes smart contracts development much easier for normal web users, makes Web3 content displaying easier, and makes Web3 more widespread.</p><p>In the same way that token economics offers the possibility of content uploading and spam filtering for news media, a native token architecture based on SCP provides higher token performance, ensuring decentralization and native Web3. SCP will also reduce the cost of Web3 participation and interaction, instead of having the user paying more than 20 USD in gas fees for even a single upvote.</p><p>Token economics also allows decentralized news media nodes to become DAOs and off-chain news media nodes to become smart contracts. When we run a news media node, we can trust the node&apos;s open source code, and the node&apos;s mechanism determines the quality and reliability of the content produced on it. Ultimately, the production and distribution of content is no longer determined by an authority, but what we trust, a DAO —— code is law.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/77acc5e7ff6694daa7e6c3c065dfe5bce7eceb72531fb2e322164b78004c5e01.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[How to Build Your Own SCP App: A Prototype for Next-generation Blockchainless DEXs]]></title>
            <link>https://paragraph.com/@outprog-2/how-to-build-your-own-scp-app-a-prototype-for-next-generation-blockchainless-dexs</link>
            <guid>zhkzdtvG0t06p2BKjMIJ</guid>
            <pubDate>Thu, 09 Dec 2021 13:37:05 GMT</pubDate>
            <description><![CDATA[Decentralized applications do not have to be built on a public blockchain like Ethereum. When we are talking about DEXs, we generally refer to smart contract programs that run on Ethereum like Uniswap. This post will describe how to build a DEX in a new way that combines the automated market-making capabilities of Uniswap and the same security properties as blockchains. Even better, the new DEX model provides nearly infinite scalability without the risk of MEV.How Uniswap WorksThe concept of ...]]></description>
            <content:encoded><![CDATA[<p><strong>Decentralized applications do not have to be built on a public blockchain like Ethereum.</strong></p><p>When we are talking about DEXs, we generally refer to smart contract programs that run on Ethereum like Uniswap. This post will describe how to build a DEX in a new way that combines the automated market-making capabilities of Uniswap and the same security properties as blockchains. Even better, the new DEX model provides nearly infinite scalability without the risk of MEV.</p><h1 id="h-how-uniswap-works" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">How Uniswap Works</h1><p>The concept of automated market making originates from Uniswap. Hence, a new type of DEXs cannot be built in isolation from the design philosophy behind Uniswap, that is, using the simplest algorithm in combination with a blockchain to allow every user to be a market maker in place of specialized agencies.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/6c1ecc6b1704f444432b35985fdf2fcc407ac674993d33b3f843d4d2fbf1b028.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>The overall architecture of Uniswap v3 is shown in the figure above. The smart contracts of Uniswap v3 are executed in the EVM, which is run by every geth node. Hence, the computation process of v3 is performed by thousands of nodes, which reach a consensus via the PoW mechanism.</p><p>Take a closer look at the smart contracts of Uniswap v3. What Uniswap v3 essentially does is to aggregate NFTs by using the Router. Behind each of the NFTs is a liquidity pool provided by an individual user who sets a specific bonding curve and a price range for market-making. When a user sends a quote request to a v3 smart contract, the Router will generate the current best price by performing an aggregation computation. The user will sign a transaction at that price and send it to the Uniswap contract for execution. The transaction will lead to synchronous update of multiple NFTs, ensuring that the swap functionality of Uniswap is secure and reliable for users.</p><h2 id="h-the-prototype-of-the-next-generation-dexs" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">The Prototype of the Next-generation DEXs</h2><p>Before creating a prototype, you need to learn about everPay and its bundle transaction. everPay is a blockchain-based financial infrastructure that combines Arweave and SCP. By offering real-time transfers and a verifiable ledger, everPay allows users and developers to conduct token settlement in real time.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/cbdc6da45330ee2a23e983b414c8524a04865f050d376ded4a3e93c19797f6b4.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In everPay, a bundle transaction is a type of opAction. It allows a many-to-many transfer that requires the signatures of all transfer parties. If any of the subtransactions in a bundle transaction fails, the entire bundle transaction will be rolled back. Generally speaking, a bundle transaction is a many-to-many transactional transfer functionality.</p><p>Now that you have learnt about how Uniswap v3 works, you can build a new generation of DEXs on top of the SCP basics and everPay&apos;s bundle transactions.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/b03fc858f9570dea0a746c7b558bf1419039466e7186a68119a6b8afd1b971c6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Firstly, the Router Contract in Uniswap v3 can be replaced by router nodes. A router node is a routing gateway node that can be deployed by anyone to collect the information of liquidity providers (LPs). Similar to the Router in v3, a router node can obtain the best price and swap path by performing aggregation computations when receiving a quote request.</p><p>Secondly, the NFTs  in Uniswap v3 can be replaced by LP nodes, which are in control of a private key and an automated signature program. The LP node program will make quotations and sign bundle transactions according to the user-defined curve and price range. When an LP node starts, it will connect with router nodes and submit quote information to them. Router nodes will send valid bundle transactions to LP nodes, which will sign the ones in compliance with their own market-making rules. The successfully signed transactions will be sent back to router nodes.</p><p><strong>Transaction process:</strong></p><ol><li><p>A user sends a quote request to a router node.</p></li><li><p>The router node generates the best quote and swap path with information gathered from multiple liquidity providers.</p><ol><li><p>An instance of a bundle swap path: UserA transfers tokenA to lpB, lpB transfers tokenB to lpC, lpC transfers tokenC to userA.</p></li></ol></li><li><p>If the user agrees with the quote, he will sign the transaction. And then the route node will ask all the LP nodes involved to sign it. The quote also needs to be confirmed by the LP nodes.</p></li><li><p>The router node will submit the bundle transaction to everPay for execution after it gathers all the signatures required.</p></li></ol><p><strong>Benefits of the Next Generation of DEXs:</strong></p><ol><li><p>A fully distributed P2P network that cannot be disrupted or shut down. Anyone can deploy a router node or an LP node in the network;</p></li><li><p>Infinite scalability. Every router node can connect with hundreds of LP nodes and provide aggregation services for tens of thousands of users. An unlimited number of router nodes can be deployed in the network.</p></li><li><p>No MEV. A user will be paid exactly the same price at which he signs the bundle transaction. If any of the LP nodes fails to pay the corresponding tokens, the entire bundle transaction will be rolled back, which means it does not happen at all.</p></li><li><p>Ultrahigh asset security. Since LP nodes have their own private key and assets in hand, hackers have to attack them one by one to steal their assets, which means the attack vectors are highly distributed.</p></li></ol><p>Such a network offers an optimal user experience. You only need to access the UI that connects to a router node and then sign your transaction at the price provided by the router node. Since the router node communicates with all the LP nodes that connect to it by using websocket, the transaction can be signed in seconds and then executed by everPay in real time. In addition to the high-speed transaction processing, you can also benefit from no slippage because the quote you are offered is what you finally get. In this way, you do not need to worry about any MEV extraction conducted by flashbots, which is commonly seen on Ethereum.</p><p>The only drawback is that becoming an LP needs to run a node, but there are workarounds. For example, your mobile wallet can be an LP node. As long as you set a price range and select a market-making curve on your phone, you can utilize the idle assets in your wallet for automated arbitrage. You can participate in the DEX&apos;s swap network as if you were playing online games, and the program on your phone will stay online and conduct automated market-making according to your custom rules.</p><h1 id="h-conclusion" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Conclusion</h1><p>As is shown in the prototype above, we can build a decentralized application without any on-chain smart contract at an extremely low cost. Such a development mode conforms to the mindset of Web2 developers. We can expect that the rise of the Web3 era will go beyond blockchains and EVM and bring out more paradigms for building Web3 applications. The SCP proves to be an excellent option for Web3 development by providing applications with the immutability and traceability of blockchains as well as the scalability of large-scale systems.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/51db4a8bd5b93b52d6a811aa9e3e99e2c47eed89f4bc46165ca8e297159f25be.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Introducing Arweave’s Tech Ecosystem (Part 3) ]]></title>
            <link>https://paragraph.com/@outprog-2/introducing-arweave-s-tech-ecosystem-part-3</link>
            <guid>BxeTJ481wSeL6vHSn9Qg</guid>
            <pubDate>Thu, 02 Dec 2021 15:08:20 GMT</pubDate>
            <description><![CDATA[This post is based on the speech that outprog, the everFinance’s founder who proposes the SCP (Storage-based Consensus Paradigm) theory, gave on BeWater Live. It is intended to give you the whole picture of Arweave’s tech ecosystem by delving into Arweave, SmartWeave and SCP, as well as the two-layer model that integrates PoW and PoS. This post is divided into three parts, each of which centers on the following content: 1. How Arweave Works - Why is perpetual storage economically viable - How...]]></description>
            <content:encoded><![CDATA[<p>This post is based on the speech that outprog, the everFinance’s founder who proposes the SCP (Storage-based Consensus Paradigm) theory, gave on BeWater Live. It is intended to give you the whole picture of Arweave’s tech ecosystem by delving into Arweave, SmartWeave and SCP, as well as the two-layer model that integrates PoW and PoS.</p><p>This post is divided into three parts, each of which centers on the following content:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/WSBB2wO5WjqEL7YKQxrJ875Ej2MHvLaC_84AU220-nI"><strong>1. How Arweave Works</strong></a></p><p>- Why is perpetual storage economically viable</p><p>- How does Arweave ensure miners store all the data</p><p>- Blockweave technology</p><p>- Implicit incentive mechanism</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/5pujoWWTTETlCrInwhsceEhMOkpJmjYNfFXhkLGlBJA"><strong>2. SmartWeave and SCP</strong></a></p><p>- SmartWeave</p><p>- Storage-based Consensus Paradigm</p><p>- The Web3 Era of Infinite Scaling</p><p>- everPay Architecture</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/LMg1GUOF-TUThVaqEi_HWTgFzlsc2DpCC23Y57tcCc4"><strong>3. The Two-layer model that integrates Permanent Storage and PoS</strong></a></p><p>- The Design of KYVE</p><p>- The Design of Koii that Integrates Permanent Storage and Pos</p><p>- Conclusion</p><h2 id="h-part3-the-two-layer-model-that-integrates-permanent-storage-and-pos" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Part3: The Two-layer model that Integrates Permanent Storage and PoS</h2><p>This post is the third and final part of “Introducing Arweave’s Tech Ecosystem”.</p><p>After the SCP has been iterated and updated for more than half a year, we found that data verification is the core problem of the paradigm. SmartWeave cannot resist DDoS attacks because it fails to handle data verification properly. The validity of on-chain data is of utmost importance. Only when the data is valid and accurate can the usability and scalability of applications be ensured.</p><p>In everPay, the coordinator is responsible for data verification, which can be expanded to decentralized solutions.</p><p>Decentralized data verification solutions are used by a great number of projects in the Arweave ecosystem. All these projects conform to the SCP. Among them, SmartWeave is a typical example. Other projects built on Arweave, such as publish content platform koii, data archiving protocol KYVE and the oracle solution Redstone, are essentially designed according to the similar SCP model as everPay’s.</p><h3 id="h-1-design-of-kyve" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">1 Design of KYVE</h3><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/70f342bb75479659a4ab201dab25ed8e158b031efeff4b99ae290707c000db16.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>According to KYVE’s architecture, the data is uploaded by the uploader and then voted on by the Validators. KYVE ensures the validity of the data included on-chain and removes any invalid data so that clients do not need to load invalid data.</p><h3 id="h-2-the-koii-design-that-integrates-permanent-storage-and-pos" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2 The Koii Design that Integrates Permanent Storage and PoS</h3><p>Koii has built a fully decentralized consensus network with high scalability. It <strong>adds a PoS layer on top of the permanent storage chain Arweave</strong>. Only those who stake tokens are qualified to verify data in the Koii network. Any data verification performed by non-stakers are deemed invalid.</p><p>If a validator node which has staked tokens broadcasts false data, it’ll get slashed according to Koii’s PoS mechanism. As long as the number of tokens slashed reaches the threshold value, the node will be kicked out of the network. This way, Koii creates a fully decentralized task distributor.</p><p>For example, there might be 100 Koii nodes that can deal with simple computation tasks. Similar to the developers who write smart contracts in Solidity, the task distributor provides Koii nodes with task scripts for computation. The nodes that accomplish the tasks can obtain newly created tokens as rewards as long as they include the validated data onto the chain.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7702bb0a613773da3a1cb9067e0932aad0fa4655d18bd59963dc1e45d5e1de0a.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>In the Koii network that contains 100 validator nodes, it barely requires three or four nodes instead of all the nodes to compete in order to execute a computation task distributed by the developer.</p><p>For example, the computation tasks of Application A and Application B can be handled by different nodes in the Koii network. As long as a computation task is done by a single node in the network, it will be computed and verified in an accurate way.</p><p>The SCP that integrates permanent storage and PoS has another advantage. The nodes that participate in staking cannot tamper with the computation results of a deterministic program, which means that the consensus is immutable. The consensus depends on a storage blockchain.</p><p>As the SCP suggests, a consensus reached on the basis of perpetual storage cannot be tampered with by third parties. Even if barely 1 million dollars of tokens are staked by validator nodes, projects worth 100 million or 1 billion dollars can run properly in the Koii network because staking only offers data verification capabilities instead of basic consensus protection.</p><p>Ultimately, a consensus is reached through the SCP. Intuitively, a Koii node is like an accountant who has no access to real assets. This makes it that it can only help accounts, but cannot change the consensus. This model has a great advantage over the traditional PoS mechanism. In the traditional PoS mechanisms, running a project worth 1 billion dollars requires 10 billion dollars worth of tokens to be staked. On the contrary, <strong>the PoS mechanism based on the SCP allows projects of great value to run on top of a relatively small number of stakes</strong>.</p><h3 id="h-3-conclusion" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">3 Conclusion</h3><p>To sum up, the hybrid model that combines permanent storage and PoS is a way to build a dApp with the permanent storage chain Arweave as Layer 1 for perpetual storage and the PoS mechanism as Layer 2 on top of it.</p><p>The projects built on top of Arweave are not restricted to the DeFi field, but also cover every aspect of Web2. Ardrive is one of the examples. You can pay AR tokens to store an image on it and download the image whenever you need.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/249f27417f4bf4b0d8e0c71bcd7440a82859892c9cdcdc4f3940e1ab3d2684d6.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>To give another example, the oracle solution Redstone aims to upload the validated pricing data to Arweave. Similar to everPay, Koii and KYVE, Redstone is also built with a staking mechanism. It verifies the pricing data of various tokens and stores it in Arweave, so that anyone can obtain accurate crypto prices.</p><p>Redstone can be considered as the Chainlink in the Web3 space. It allows all the applications built on the SCP to read the data from a storage blockchain to perform off-chain computations. The data accuracy is ensured by the economic mechanism of Redstone.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/455ad32b145fa49ee47800adfb0cc27335f8e953c89866d1cea5f86a351c8c77.png" alt="" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="hide-figcaption"></figcaption></figure><p>Thanks to the hybrid model, all the business programs that perform computations off-chain can offer an optimal user experience and extremely high TPS. Besides, the applications built on the SCP benefit from the characteristics of decentralization, which are,traceability, immutability and trustlessness.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/1dcc4a71784fadfc5f3637175ec9c0c3f02b036156b4dd69d4c5afdd2aab1c32.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Introducing Arweave’s Tech Ecosystem (Part 2)]]></title>
            <link>https://paragraph.com/@outprog-2/introducing-arweave-s-tech-ecosystem-part-2</link>
            <guid>zfVaeFKWxw1pHazjNpch</guid>
            <pubDate>Tue, 23 Nov 2021 13:07:29 GMT</pubDate>
            <description><![CDATA[This post is based on the speech that outprog, the everFinance’s founder who proposes the SCP (Storage-based Consensus Paradigm) theory, gave on BeWater Live. It is intended to give you the whole picture of Arweave’s tech ecosystem by delving into Arweave, SmartWeave and SCP, as well as the two-layer model that integrates PoW and PoS. This post is divided into three parts, each of which centers on the following content: 1. How Arweave Works - Why is perpetual storage economically viable - How...]]></description>
            <content:encoded><![CDATA[<p>This post is based on the speech that outprog, the everFinance’s founder who proposes the SCP (Storage-based Consensus Paradigm) theory, gave on BeWater Live. It is intended to give you the whole picture of Arweave’s tech ecosystem by delving into Arweave, SmartWeave and SCP, as well as the two-layer model that integrates PoW and PoS.</p><p>This post is divided into three parts, each of which centers on the following content:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/WSBB2wO5WjqEL7YKQxrJ875Ej2MHvLaC_84AU220-nI"><strong>1. How Arweave Works</strong></a></p><p>- Why is perpetual storage economically viable</p><p>- How does Arweave ensure miners store all the data</p><p>- Blockweave technology</p><p>- Implicit incentive mechanism</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/5pujoWWTTETlCrInwhsceEhMOkpJmjYNfFXhkLGlBJA"><strong>2. SmartWeave and SCP</strong></a></p><p>- SmartWeave</p><p>- Storage-based Consensus Paradigm</p><p>- The Web3 Era of Infinite Scaling</p><p>- everPay Architecture</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/LMg1GUOF-TUThVaqEi_HWTgFzlsc2DpCC23Y57tcCc4"><strong>3. The Two-layer model that integrates Permanent Storage and PoS</strong></a></p><p>- The Design of KYVE</p><p>- The Design of Koii that Integrates Permanent Storage and Pos</p><p>- Conclusion</p><h2 id="h-smartweave-and-scp" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">SmartWeave and SCP</h2><p><strong>This is the second part of “Introducing Arweave’s Tech Ecosystem”. This post will discuss perpetual storage and consensus computation.</strong></p><h3 id="h-1-smartweave" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">1. SmartWeave</h3><p>When I first learned about Arweave last July (2020), I was aware that it would be a game-changing underlying blockchain. It occurred to me that a blockchain or cloud storage designed for perpetual storage could be considered as a tape of a Turing machine.</p><p>As we all know, a Turing machine is composed of a state machine and an infinitely long tape. Arweave is ideal for serving as a tape. We can write a program that is able to perform any computation and store it in Arweave with all the data.</p><p>For example, when you create a financial statement using Excel on your personal computer and send it to others, they cannot confirm whether your financial statement is authentic.</p><p>However, if the hard drives of the computer are replaced with a storage blockchain, the financial statement can be trusted with all the data stored on-chain and computations done by independent clients in a distributed way.</p><p>Hence, we believe that <strong>as long as the data stored on-chain is trustable, computations can be performed in any compute unit and the results computed on immutable data via a deterministic program are unique and trustable</strong>.</p><p>In Bitcoin, the ledger is created using the PoW mechanism, which helps build a consensus. However, with Arweave using hard drives instead, each operation and its steps performed on your personal computer will be recorded on-chain.</p><p>Hence, the current state is always traceable and verifiable. Although it seems to be a radically new model, it is actually a classical model that returns to the essence of computers. It ensures that every file is traceable and immutable with no need to perform computations on-chain like Ethereum.</p><p>As long as a deterministic program is uploaded to Arweave, it can be downloaded by anyone and can automatically load the data on-chain to perform computations. In this case, any computation result can be considered as an objective fact or a consensus. So how is SmartWeave able to make all this possible?</p><p>SmartWeave is a virtual machine that runs off-chain. It can read the running code of applications, load all the input parameters from Arweave, and then locally execute each of the transactions required. After that, Smartweave syncs up with the latest Arweave block so that it can generate the latest finalized state.</p><p><strong>The code of smart contracts is not executed on-chain at all</strong>.</p><p>Arweave can guarantee the authenticity of the code stored in an Arweave transaction, which can be a token contract, for example. The state of the contract and all the relevant operations are the outcome of users sending Arweave transactions.</p><p>Although it sounds perfect, SmartWeave has a weak spot for its inability to avoid DDoS attacks. A DDoS attack means that a hacker sends a massive amount of invalid transaction data that will not be executed successfully.</p><p>Since SmartWeave cannot tell which data is valid before executing transactions, the SmartWeave clients have to keep loading the data to compute the results. If there are multiple gigabytes of invalid transactions, SmartWeave will suffer from low availability, but its security and consensus remain unaffected.</p><h3 id="h-2-storage-based-consensus-paradigm" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2. Storage-based Consensus Paradigm</h3><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/09b4e6674f9ad501688089c204915364af378d75ecc7cca17c68c1d8f2ddc736.png" alt="Evolution of Consensus" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Evolution of Consensus</figcaption></figure><p>Figure 1 shows the Bitcoin model. Before you make a transfer using Bitcoin, you need to run a full node or SPV node on your personal computer to recompute Bitcoin’s ledger.</p><p>However, since 2017, the proxy model adopted by MetaMask and imtoken has gained popularity. In this model, application operators deploy full nodes on Ethereum and Bitcoin for users to request data and send transactions.</p><p>Similar to the Figure 1 Bitcoin model, the SmartWeave model requires users to perform computations and send transactions on their own. However, in the proxy model shown in Figure 2, proxies like MetaMask can display a false balance for users, but they cannot change the consensus.</p><p>Whoever performs a computation on the consensus data through a specific program must obtain an identical and unique result. Anyone who runs a node is unlikely to obtain a false state by computation. The same goes for SmartWeave — all the calculated results are finalized.</p><p>Taking one step further, we can discover that <strong>users no longer need to interact with blockchains on their own. Instead, they only need to access the application clients that interact with blockchains.</strong></p><p>Take SmartWeave for example, it depends on an application client, which can be run on the provider’s server, to perform off-chain computations. A perpetual storage blockchain allows the server to be a deterministic and traceable <strong>program with the same characteristics as a blockchain</strong>.</p><p><strong>1) Relative Consensus and Absolute Consensus</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/86c32ac3ce7f09022e87c6273e1913f313a6c06422af24dab7abb0fe44e19175.png" alt="Absolute Consensus" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Absolute Consensus</figcaption></figure><p>Why do users no longer need to access blockchains directly? To find out the answer, you need to understand the concepts of relative consensus and absolute consensus.</p><p>For example, an eth node shown on the left is deployed by imtoken. When you send a transaction using imToken, the transaction is relayed to the eth node via the imToken gateway.</p><p>In this case, you completely trust a third party that can forge data, which is called relative consensus. On the contrary, if you deploy a node on your own to execute all the transactions without relying on any third party, this is called absolute consensus.</p><p>The proxy model allows users to use many DeFi products, which usually provide an APR for yield mining. To obtain an actual and reliable APR, users must perform computations on their own.</p><p>When users rely on centralized nodes to provide slightly abstract data like APR, the third-party servers can offer a false APR to them, but they cannot change the consensus on transfers. To go one step further, third-party nodes can be trusted to compute the basic information of transfers like balance. They simply need to provide a user-friendly API.</p><p>So we’ve built the Trusted APP model, in which a Trusted App takes the place of blockchains to interact with users. Decoupling users from blockchains is the key to lowering the user threshold and increasing TPS.</p><p><strong>2) Trusted APP</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/7c0bea2e3831c55aedd9224d3988c7c812d85e0cd7574afaf1927dbbe8262e3c.png" alt="Empower" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Empower</figcaption></figure><p>This model has the following advantages:</p><ul><li><p>Composability</p></li></ul><p>The Trusted APP offers composability on the basis of data partitioning. When composing with each other, Application A can download the data of Application B from the storage blockchain and verify it according to the business rules of Application B, thus achieving multi-ledger verification.</p><p>It allows us to only integrate the data of applications that we care about for verification. This model greatly improves the composability of traditional businesses using a blockchain. It reminds me of the days when I worked at a bank.</p><p>During the period, I was responsible for multi-party account checking and found it painful to do it in a traditional way. Everyday I was sent a text file to check my ledger with the third-party ledger. Such a semi-manual method is error-prone. If any error occurs, reversal is required.</p><p>However, with Arweave storing all the data, the multi-party account checking can be done via an automated program. This can help create a ledger that is very close to Bitoin’s. All the DeFi and traditional applications can be composed in this way so that account checking can be done per block instead of per day.</p><ul><li><p>Low development barriers</p></li></ul><p>The storage-based consensus paradigm greatly reduces barriers to development. As I once demonstrated, it is quite simple to write a SmartWeave contract with custom states in JavaScript.</p><p>Imagine that the balance state of an application is state.balance, the registration state of an email address is state.registered, and the state of a perpetually stored file is state.file_id. The paradigm makes development quite simple and flexible without any limitation to programming languages.</p><p>The PST tokens on Arweave conform to a specific standard like ERC20 tokens and have some general APIs for states. However, there is no restriction on the development of Web2 and Web3 applications so that developers can flexibly utilize the advantages of SmartWeave.</p><p>More importantly, you do not have to write smart contracts in JavaScript or use SmartWeave. As far as I am concerned, SmartWeave is just one of the examples of the storage-based consensus paradigm.</p><p>With its perpetually trustable storage supporting consensus computation, Arweave becomes a tape of a Turing machine so that you can build any Turing-complete application. And you can go even further by replacing SmartWeave with your own back-end program, which will have the outstanding properties of a blockchain.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/016728b5c8b3578f66c3e12db96aee6bcdb4cb7751c48f75edae44796b03bd1f.png" alt="Off-chain Dapp" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Off-chain Dapp</figcaption></figure><p>Given that SmartWeave can’t prevent DDoS attacks, we have transformed its model by using a high-performance back-end server instead to receive users’ transactions. Despite its resistance to DDoS attacks, the improved model has a disadvantage because the independent back-end server can filter and censor users’ transactions.</p><p>However, the back-end server is unable to change the objective states because all the transactions included into the chain are signed by users themselves. The improved model can resist DDoS attacks that SmartWeave is vulnerable to, while offering the same development mode as Web2.</p><ul><li><p>Infinite TPS</p></li></ul><p>Besides, the TPS of applications is infinite because the server can roll up a batch of 10,000 or 100,000 transactions in a single block and then include it into Arweave. In this process, a temporary state will be waiting in line.</p><p>A batch of transaction data is rolled up into Arweave every 5 to 10 minutes so that the corresponding state will be finalized. No matter what server your program runs on, you can easily build a trustful Web3 application by using Arweave as perpetual storage.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ae2fd78924142cba87452a63d382842e259913057f51020abb4d0f0d9f02e91b.png" alt="Trusted Computing" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Trusted Computing</figcaption></figure><p>To make this model more abstract, you can build a Web3 application by combining a storage blockchain with AWS or Google Cloud. With Arweave guaranteeing the immutability and traceability of input data, a deterministic business program can ensure the uniqueness and finality of output data.</p><p>How can we apply this model to DeFi? The API of a Trusted APP offers real-time data verification and inclusion into the chain. Multi-party ledger verification is required in the DeFi field. When integrating a token or a lending protocol like Compound, a DEX needs to download their business programs and historical data from Arweave.</p><p>For example, it can integrate the JavaScript code of SmartWeave for calculation and data verification. You can write your own program in any programming language like Golang or Rust to convert the deterministic rules of other applications into the language that you use. And you can integrate these applications into your own one simply by using their SDKs.</p><p><strong>3) The Web3 Era of Infinite Scaling</strong></p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/74ef446f7ba505018fbcbe2600f5afac7dda7194bd88283120853bf6d2a14733.png" alt="Scaling" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">Scaling</figcaption></figure><p><strong>The storage-based consensus paradigm is expected to create a Web3 era of infinite scaling.</strong> As shown in the figure above, on the left is the token payment and settlement protocol everPay, on the right is an AMM program, and at the bottom is SNX.</p><p>All these applications store their business data on a storage blockchain with their consensus data computed by detectors. They communicate with each other via HTTP in real time, and the communication results can be verified and reversed afterwards. Since everPay can obtain all the data of the AMM and check the AMM’s consensus with a specialized program, it can compute the final state of the AMM. As long as the latest data of the AMM is rolled up into the storage blockchain, the three applications will obtain the same result when computing the AMM’s state.</p><p>everPay can tell if other applications are deterministic and fraudulent. The applications interact with each other via traditional Web2 APIs in real time. Once the data is included into the chain, the entire state will be finalized.</p><p>Hence, the temporary state generated during interaction will also be finalized. Besides, the storage-based consensus paradigm does not require each of the applications to use the same storage blockchain.</p><p>To be specific, an application that uses Arweave can still compose with another application that uses a different storage mode. For example, an AMM uses a storage blockchain different from everPay. If everPay wants to verify the AMM, it can read its data directly from the storage blockchain used by the AMM for computation and verification. That is how composability is realized.</p><h3 id="h-3-everpay" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">3. everpay</h3><p>everPay is a dApp of both Ethereum and Arweave. When using everPay, we can directly connect to it via the Ethereum wallet MetaMask, or the Arweave wallet ArConnect. In the future, everPay will add support for more blockchains such as Solana and Near. The flexibility of off-chain computation allows us to build various cryptographic implementations with Golang. For now, everPay is more like a Layer 2 application that offers real-time token transfer and a bridge between Arweave and Ethereum.</p><p>Before using everPay for the first time, you need to make a deposit. In everPay, all the assets are managed by a DAO, whose members have a multisig contract on Ethereum and Arweave respectively.</p><p>When you make a deposit to an address managed by the DAO, the transaction will be sent to everPay, which will check if the transaction is confirmed by 15 blocks on Arweave. If the transaction is validated, the deposit will be mapped 1:1 to everPay. It means that the deposit address will hold the same amount of newly-created tokens, which can be controlled by the original wallet.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/04a2dac597b69ef27567da61b09ef07505507756256e68a141a86a3a2b3d8290.png" alt="everPay UI" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">everPay UI</figcaption></figure><p>When you transfer, for example, 1 USDC token, the receiver address can be an ETH or AR address. Any ETH or AR address is considered a valid everPay account. When making a transfer, you need to sign the transaction via MetaMask.</p><p>In the figure above, you can see the transfer amount and the fee of the transaction, which will be directly sent to the server. If you switch to the receiver wallet on Arweave and connect it to everPay, you will find its address is totally different from the ETH address. And you will see the transfer transaction in the transaction history of your everPay account.</p><p>By performing computations off-chain, everPay offers extremely high performance. Similar to PayPal and Stripe, everPay can utilize various back-end programs to build high-performance applications. However, all the everPay transaction data will be rolled up into Arweave so that the everPay ledger has the same characteristics as a blockchain.</p><p><strong>everPay Architecture</strong></p><p>The entire architecture of everPay is shown in the following figure. It contains three roles:</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ec9cae69bef9b21a18eea8c8d7b7bfd92e95ea4056942aa0dcb65527996e7c0d.png" alt="How we work" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">How we work</figcaption></figure><p><strong>Coordinator</strong>:</p><p>The coordinator is analogous to the sequencer in a zkRollup. All the users’ transactions are sent to the coordinator for real-time computation on a first-come, first executed basis, so as to get finalized.</p><p>Since users’ transactions are confirmed as soon as they are received by the coordinator, there is no such thing as a pending transaction in everPay. If a transaction is sent successfully, it will be added to a transaction pool and wait for being included into the chain; if not, it will return an error to the front end and will not be added into the pool. The transactions in the pool are included into Arweave by batches every 5 to 10 minutes.</p><p>The business program run by the coordinator is consistent with those run by watchmen and detectors. Each role loads data alone from Arweave for independent computation and verification.</p><p><strong>Detector</strong>:</p><p>Similar to Infra, a detector offers all the transfer and balance information after it is deployed. Users can obtain the ultimate state of the ledger from detectors.</p><p><strong>Watchman</strong>:</p><p>A watchman takes charge of multisig governance in cross-chain interactions. It can be considered as a detector in control of a private key. When a watchman detects any withdrawal data on Arweave, it will create a withdrawal proposal. If you want to withdraw tokens native to Ethereum, watchmen will verify your transaction and sign a withdrawal proposal. Your transaction will be executed on Ethereum or Arweave only when it is signed by over 51% watchmen.</p><p>The ledger synchronization among watchmen, detectors and the coordinator completely depends on Arweave instead of P2P communication. All the roles will verify the entire ledger on their own. After verification, watchmen need to sign a proposal.</p><p>Building applications on top of the SCP with Arweave as storage infrastructure will become a real trend in the Web3 era. everPay is a typical Web3 application that offers nearly the same TPS as a traditional Web2 application and operates as a DAO.</p><p>Take mirror.xyz as an example. We published the everPay lightpaper on Mirror. Although Mirror runs on a centralized server, all the file data is stored in Arweave, while the corresponding NFTs are minted on Ethereum, which is completely in conformity with the SCP model.</p><p>Perpetual storage is the key to the SCP. By using a blockchain like Ethereum as the back end, your applications do not need to run completely on-chain or in a fully decentralized way. In fact, decentralized storage allows users to store their files permanently via a centralized service instead of sending a transaction on their own.</p><p>Furthermore, asset transfer might also benefit from the SCP model. By expanding the value flow, everPay does not require users to send transactions on their own. It allows asset mapping cross-chain, making blockchains on longer difficult to use.</p><p>everPay currently supports Arweave and Ethereum, and will be able to integrate any blockchain in the future. everPay offers real-time transfers and almost the same user experience as traditional transfers.</p><p>It will add support for smart contract accounts, which are costly on-chain, but are much cheaper off-chain. everPay’s smart contract accounts will provide decentralized security and an optimal user experience at a relatively low cost in consensus building.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/5b2649b6d6fcd02134c3f8387c58d4b0155810737dfffce9d763652dd9b3ea46.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Introducing Arweave’s Tech Ecosystem (Part 1)]]></title>
            <link>https://paragraph.com/@outprog-2/introducing-arweave-s-tech-ecosystem-part-1</link>
            <guid>1mJs1fFxaNvnO87CbHzg</guid>
            <pubDate>Wed, 17 Nov 2021 07:40:10 GMT</pubDate>
            <description><![CDATA[This post is based on the speech that outprog, the everFinance’s founder who proposes the SCP (Storage-based Consensus Paradigm) theory, gave on BeWater Live. It is intended to give you the whole picture of Arweave’s tech ecosystem by delving into Arweave, SmartWeave and SCP, as well as the two-layer model that integrates PoW and PoS. This post is divided into three parts, each of which centers on the following content: 1. How Arweave Works - Why is perpetual storage economically viable - How...]]></description>
            <content:encoded><![CDATA[<p>This post is based on the speech that outprog, the everFinance’s founder who proposes the SCP (Storage-based Consensus Paradigm) theory, gave on BeWater Live. It is intended to give you the whole picture of Arweave’s tech ecosystem by delving into Arweave, SmartWeave and SCP, as well as the two-layer model that integrates PoW and PoS.</p><p>This post is divided into three parts, each of which centers on the following content:</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/WSBB2wO5WjqEL7YKQxrJ875Ej2MHvLaC_84AU220-nI"><strong>1. How Arweave Works</strong></a></p><p>- Why is perpetual storage economically viable</p><p>- How does Arweave ensure miners store all the data</p><p>- Blockweave technology</p><p>- Implicit incentive mechanism</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/5pujoWWTTETlCrInwhsceEhMOkpJmjYNfFXhkLGlBJA"><strong>2. SmartWeave and SCP</strong></a></p><p>- SmartWeave</p><p>- Storage-based Consensus Paradigm</p><p>- The Web3 Era of Infinite Scaling</p><p>- everPay Architecture</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://mirror.xyz/0xDc19464589c1cfdD10AEdcC1d09336622b282652/LMg1GUOF-TUThVaqEi_HWTgFzlsc2DpCC23Y57tcCc4"><strong>3. The Two-layer model that integrates Permanent Storage and PoS</strong></a></p><p>- The Design of KYVE</p><p>- The Design of Koii that Integrates Permanent Storage and Pos</p><p>- Conclusion</p><h2 id="h-part1-how-arweave-works" class="text-3xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Part1: How Arweave Works</h2><p>This is the first part of &quot;Introducing Arweave&apos;s Tech Ecosystem&quot;.</p><p>Hello, everyone! I dove into the blockchain industry in 2018 as a developer at imToken to work on the DEX Tokenlon and its iterations. During this period, I had been studying DeFi, I became an early user and researcher of the popular Uniswap as well as Compound.</p><p>When developing for imToken and interacting with DeFi apps, I encountered numerous problems. For example, managing seed phrases and paying miner fees is hard for users to comprehend. Over the past few years, I have been trying to recommend some friends of mine working at Alibaba and banking to use decentralized light wallets. However, it turns out that decentralized wallets are still desperately unpopular for their high user threshold. Fortunately, I saw a new direction for lowering the user threshold when I learned about SmartWeave, which is Arweave’s smart contract protocol, from UncleMeow, and the perpetual storage blockchain Arweave from ZengMi at a seminar held by SparkPool last July.</p><p>Since the established public chains like Ethereum are inherently unable to provide a premium experience for ordinary users at the infrastructure level, even the most elaborately devised products cannot remove obstacles to the use of blockchains. However, Arweave has the potential to become the basis of a new paradigm, making the blockchain world truly open to ordinary users.</p><p>When you perpetually store a file in Arweave, the file data will be stored by hundreds of nodes and can be accessed by Arweave gateway or any of the Arweave nodes.</p><p>Before being part of the blockchain industry, I studied IPFS and learned how to use distributed hash tables to retrieve data across the network in a decentralized way. However, IPFS has its own flaws for lack of an incentive layer for file data storage. For example, when your server shuts down, your file might disappear if it is not synchronized by the network.</p><p>Arweave builds a new mechanism for perpetual storage. What makes it different from Filecoin is that it charges a one-time, up-front fee for perpetual storage, which is made possible by its unique theoretical model.</p><h3 id="h-1-why-is-perpetual-storage-economically-viable" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">1 Why is perpetual storage economically viable?</h3><p>To answer this question, we need to understand the fact that the storage cost is decreasing over time, which conforms to Moore&apos;s law. According to official statistics, the storage cost reduces by nearly 30% every year. This makes it possible for us to calculate the total cost of perpetual storage, which converges to a constant as the storage cost keeps going down. In Arweave, the constant is weighted to determine the fee charged for storing data permanently.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/9b114546e2666a69b448e3809e31984c9e37d33ebae5a5558328bed5e1ee92ad.png" alt="storage cost" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">storage cost</figcaption></figure><h3 id="h-2-how-does-arweave-ensure-miners-store-all-the-data" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">2 How does Arweave ensure miners store all the data?</h3><p>So how does Arweave prevent the loss of files stored in it? Behind it is data staking at play.</p><p>On Arweave, data is deemed valid after it is included into the chain. Miners can stake any amount of valid data, for example, 10 MB or even 20 TB (i.e. the entire data size of the network). For miners, the more data they store, the more AR tokens they can obtain. This makes it so that miners are incentivized to store data in Arweave.</p><h3 id="h-3-blockweave-technology" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">3 Blockweave technology</h3><p>The core technology that powers Arweave is the blockweave. How does the blockweave work?</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ea322c07ae96fc1631d445bdacd1e1a33598edd214bb72acf7a484b545bec682.png" alt="blockweave" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">blockweave</figcaption></figure><p>Simply put, it requires a random historical block to create a new block. It means that the miner who stores the largest number of historical blocks is the most likely to mine a new block. If a miner does not store the required historical data, the hashrate that he needs to mine a new block will increase exponentially.</p><p>That being said, storing more data is the optimal and most profitable option for miners.</p><h3 id="h-4-implicit-incentive-mechanism" class="text-2xl font-header !mt-6 !mb-4 first:!mt-0 first:!mb-0">4 Implicit Incentive Mechanism</h3><p>Besides, there is an implicit incentive mechanism on Arweave that protects users against file loss. When a chunk of scarce file data is required in a new block, the miners that happen to store it have advantages over other miners, who have to consume more computing power to solve the PoW puzzle.</p><p>Obviously, storing scarce data makes it faster for miners to mine a new block. In order to increase their competitiveness in mining, miners are incentivized to synchronize scarce data, which will become no longer scarce.</p><figure float="none" data-type="figure" class="img-center" style="max-width: null;"><img src="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/e7a1ece74e3d05f2a77b39de805c2b2acc6db75a984c3934229eefdb8d92ecd3.png" alt="safety of data" blurdataurl="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACwAAAAAAQABAAACAkQBADs=" nextheight="600" nextwidth="800" class="image-node embed"><figcaption HTMLAttributes="[object Object]" class="">safety of data</figcaption></figure><p>As a consequence, the files you store in Arweave will be spread all over the network in a distributed way to avoid being lost to the greatest extent.</p>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/ea88cd751f346d2142dba9aa788d59b9e52736d7ff844648e4759d984abf6627.png" length="0" type="image/png"/>
        </item>
        <item>
            <title><![CDATA[Storage-based Consensus Paradigm]]></title>
            <link>https://paragraph.com/@outprog-2/storage-based-consensus-paradigm</link>
            <guid>23UNOit5Ry5rP3Hnxhvj</guid>
            <pubDate>Mon, 11 Oct 2021 15:48:11 GMT</pubDate>
            <description><![CDATA[The storage-based consensus paradigm (Abbreviated as SCP. Former name: storage-based computation paradigm) is the next-generation paradigm for blockchain application development proposed by everFinance. The SCP is a development practice that anyone can use to build decentralized applications. A typical application is everpay.io, and other applications such as koii.network, kyve.network are also essentially an implementation of the SCP. Although the idea of SCP originated from SmartWeave, Smar...]]></description>
            <content:encoded><![CDATA[<p>The storage-based consensus paradigm (Abbreviated as SCP. Former name: storage-based computation paradigm) is the next-generation paradigm for blockchain application development proposed by everFinance. The SCP is a development practice that anyone can use to build decentralized applications. A typical application is <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://everpay.io/">everpay.io</a>, and other applications such as <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://koii.network/">koii.network</a>, <a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://www.kyve.network/">kyve.network</a> are also essentially an implementation of the SCP. Although the idea of SCP originated from SmartWeave, SmartWeave can also be considered as an implementation of SCP.</p><h1 id="h-what-is-a-scp" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">What is a SCP？</h1><p>In Ethereum’s model, computations are executed by all the full nodes, which then generates and stores the global state for query. Different from it, the SCP manages to separate computation from storage. To be more specific, the blockchain is merely used for data storage, while the off-chain clients/servers are responsible for executing all the computations and storing all the states generated.</p><p>The SCP uses off-chain smart contracts, which can be written in any programming language, with all the inputs coming from a storage-based blockchain. In this paradigm, the blockchain is very much like a hard drive and the off-chain smart contracts can be run on any device with computing capabilities. Using a blockchain as a hard drive ensures the immutability and traceability of the stored data, which is thus guaranteed to be trusted. As a result, off-chain smart contracts can ensure the ultimate consistency of state by performing computations on trustable data. </p><p>The applications built on top of the SCP feature both the transparency and trustworthiness of blockchains as well as the high performance and availability of traditional internet applications. The SCP has the following advantages:</p><ol><li><p>Composability: Business operations between traditional financial services requires account checking, which is complex and error-prone. Using a SCP can include all the financial transaction records in the blockchain, thereby converting the traditional financial services into blockchain applications. This facilitates not only automated account checking, but also rapid coordination and efficient combination of applications.</p></li><li><p>Low Development Barriers: Smart contracts are required to be written in Solidity using an EVM, while off-chain computation programs can be written in any programming language. That Makes it so developers can convert traditional applications into blockchain applications.</p></li><li><p>No Performance Limitation: Off-chain computation delivers superior performances similar to traditional applications because the off-chain servers can process massive transactions. In this way, the TPS merely depends on the machine performance of servers and the technical architecture of applications.</p></li><li><p>Low Consensus Cost: It merely costs 1 dollar to process a million transactions.</p></li></ol><h1 id="h-improving-smartweave-in-practice" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Improving SmartWeave in practice</h1><p>The SCP is designed by the inspirations of Arweave’s smart contract SmartWeave and Ethereum’s L2 scaling solution Rollup, which improves their availability.</p><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://github.com/ArweaveTeam/SmartWeave">SmartWeave</a> is a smart contracting platform built on top of the Arweave network. It allows users and developers to build programs whose execution is trustable and decentralized. One of the unique features of SmartWeave is the process of lazy evaluation, which removes the burden of processing smart contracts from the nodes and moves it to the users. This means that, instead of running every piece of code on every machine in the network, contract states are computed locally on the machines that request them.</p><p>SmartWeave is a decentralized contract platform that is open to all. The off-chain computation enabled by SmartWeave delivers higher scalability at the expense of introducing a new problem. The problem lies in that SmartWeave is prone to DDoS attacks, which means a large amount of invalid data is transmitted to all the computing nodes via Arweave, leading to latency in consensus and unavailability. When DDoS attackers maliciously send massive false transactions to the blockchain, node clients have to download them before verifying, therefore taking up a large part of bandwidth. In this case, valid transactions are submerged in the flood of false transactions, lowering the accuracy rate of data. To some extent, DDoS attacks may even lead to latency in client state computation.</p><p>To prevent DDoS attacks and ensure the availability of applications, everFinance has introduced a coordinator to compute and verify all the data of applications for the first time, and then includes batches of data into the chain. The coordinator acts like a rollup built on top of Ethereum by packaging transactions in batches, then including them into the chain. All the data packaged can be verified, SmartWeave’s “lazy evaluation” ensures verifiability, and Rollups guarantee the data accuracy which helps avoid DDoS attacks.</p><h1 id="h-reference" class="text-4xl font-header !mt-8 !mb-4 first:!mt-0 first:!mb-0">Reference</h1><ul><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://arwiki.wiki/#/en/smartweave">SmartWeave: Arweave smart contracts</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/a-storage-based-computation-paradigm-enabled-by-arweave-de799ae8c424">A Storage-based Computation Paradigm Enabled by Arweave</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/a-speech-on-ipfsnewss-blockchain-forum-a-storage-application-paradigm-ac9f25bd335c">A Speech on IPFSNEWS’s Blockchain Forum: A Storage Application Paradigm</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/ama-recap-with-chris-by-snapfingers-69982bc14819">AMA recap with Chris by SnapFingers about Arweave, storage and more</a></p></li><li><p><a target="_blank" rel="noopener noreferrer nofollow ugc" class="dont-break-out" href="https://medium.com/everfinance/evolution-of-the-blockchain-application-model-along-with-changing-consensus-755e4ae407a7">Evolution of the Blockchain Application Model along with Changing Consensus</a></p></li></ul>]]></content:encoded>
            <author>outprog-2@newsletter.paragraph.com (outprog)</author>
            <enclosure url="https://img.paragraph.com/cdn-cgi/image/format=auto/https://storage.googleapis.com/papyrus_images/03459e13f445bf1be2a5cf001ae3325f7f66b03d29d1ca695e4c9a9d3609c36f.png" length="0" type="image/png"/>
        </item>
    </channel>
</rss>