<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Realtakahashi Work on Medium]]></title>
        <description><![CDATA[Stories by Realtakahashi Work on Medium]]></description>
        <link>https://medium.com/@realtakahashi-work?source=rss-fb7e6197ea3------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*TaoIVTWoCUSJauclglSo9A.jpeg</url>
            <title>Stories by Realtakahashi Work on Medium</title>
            <link>https://medium.com/@realtakahashi-work?source=rss-fb7e6197ea3------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 14:07:45 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@realtakahashi-work/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Go back to the basics of Web3 (2)]]></title>
            <link>https://realtakahashi-work.medium.com/go-back-to-the-basics-of-web3-2-245bd4e9371e?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/245bd4e9371e</guid>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Wed, 13 May 2026 11:01:32 GMT</pubDate>
            <atom:updated>2026-05-13T11:01:32.615Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yAXeCHJ6dsRDg1v8grtoYg.png" /></figure><h3>Introduction</h3><p>I wrote the following article about a year ago.</p><p><a href="https://realtakahashi-work.medium.com/go-back-to-the-basics-of-web3-a52e3e0006e5">Go back to the basics of Web3</a></p><p>Unfortunately, it seems to me that Web3 has significantly scaled down its original ideals from what was once envisioned. Many projects have been shut down, and many developers appear to have left the Web3 space.</p><p>At present, it looks as though most of the remaining projects are limited to DeFi and stablecoins. Of course, these two use cases represent only a small part of what Web3 is supposed to be.</p><p>However, public perception is quite different. In fact, many people point to the visibility of transaction results and contents as a flaw. I believe these misunderstandings stem from a lack of knowledge and a lack of understanding of the underlying philosophy.</p><p>Now that we are in a kind of “winter” where the term “Web3” no longer excites people, I strongly believe that this is precisely the time to go back to the basics of Web3.</p><h3>Being visible” is not a defect</h3><p>In the country where I live, stablecoins are currently experiencing something of a boom. People who have no knowledge of blockchain technology have even started experimenting with using stablecoins denominated in the local currency on Ethereum. As a result, I’ve heard comments like the following:</p><p>“This is a payment system where all purchase histories are visible.”</p><p>For those unfamiliar with blockchain technology, this may be a perfectly valid criticism. On the other hand, for those who understand blockchain and resonate with its philosophy, I believe they would say something like this:</p><p>“It’s not that the data is exposed — it’s that we are choosing to make it visible.”</p><p>Blockchain is not a system where data has become visible as a flaw in its design. Some people compare the state of blockchain to the HTTP protocol, but I believe that comparison itself is mistaken. From the outset, we have not necessarily expected blockchain to implement mechanisms equivalent to HTTPS (though perhaps some people genuinely do).</p><p>It is not that “visibility is a flaw”; rather, I believe that “making things visible is the value.”</p><h3>“The value of what is invisible” and “the value of what is visible”</h3><p>I will begin by attempting to explain “the value of what is invisible.” This refers to a world in which value is created through information asymmetry. Much of this can be seen in business contexts.</p><p>For example, consider financial trading. Professional investors generally do not want to reveal their investment strategies to others. The reason is that if their methods become visible, the competitive advantage of those strategies may be diminished.</p><p>As another example, consider someone responsible for procurement. In this case as well, it is only natural that they would not want competing companies to see the transactions they are handling. If all of their transaction history were visible to competitors, it could effectively expose the competitive advantages of the company they belong to.</p><p>If I were to continue listing examples, there would be countless instances in business where “the value of invisibility” plays a role.</p><p>For this reason, I believe Web3 is not suited to existing business practices. Most current businesses attempt to create advantageous positions by leveraging information asymmetry. This is a fundamental source of corporate profit.</p><p>Therefore, when someone evaluates the adoption of Web3 for their company’s existing business and concludes, “This technology cannot be applied to our business as it is,” that is, in a sense, a natural conclusion. To reiterate, Web3 should not be adopted as a tool for existing business models.</p><p>Next, I will attempt to explain “the value of visibility.” This is actually somewhat difficult to explain. The reason is that, as seen in the earlier example of stablecoins, many people are conditioned to believe that “invisibility is more valuable.” However, I believe that this assumption itself is incorrect.</p><p>Before that, I would like to establish a shared understanding of a fundamental premise of blockchain. When using blockchain, unlike traditional banking systems, there is generally no need to provide personal information to any party. Identification on a blockchain is done through alphanumeric strings called addresses, which do not inherently contain any information that can identify an individual.</p><p>To say something is “visible” means that information symmetry is ensured. Anyone can access and view the same information. In contrast, in current business systems, personal data is stored as corporate value under the assumption that it is “invisible.” Only financial institutions and payment providers can access information about who conducted which financial transactions. Similarly, only individual retailers know who purchased what in their stores. In other words, the value of personal data has become a source of corporate revenue. Put more strongly, individuals cannot retain the value of data that should inherently belong to them; instead, that value is monopolized by corporations.</p><p>Now, let us consider what happens when things become “visible.” Again, please remember the premise that using blockchain does not require the disclosure of personal information.</p><p>Personal transaction and purchasing data can be made publicly available to the world without revealing personal identity. This means that corporations can no longer monopolize information or create asymmetry against others. What happens then? Companies lose the incentive to store such data and may stop doing so altogether. While this may sound counterintuitive, in this state, the value of personal data begins to return to individuals.</p><p>For example, to make purchasing data valuable, additional personal attributes are needed — such as age, family composition, income, address, and so on. If companies want access to valuable purchasing data, they would need to request and purchase it directly from individuals. They would no longer be able to collect valuable personal information for free, as they do today.</p><p>Therefore, the “value of visibility” lies in neutralizing those who have gained power through information asymmetry and restoring that value to its rightful owners.</p><h3>Demand services that are designed with visibility as a premise</h3><p>Next, I would like to explore various services by focusing on the “value of visibility” in Web3.</p><p>As a simple example, let us consider purchasing a product using a payment system based on blockchain.</p><p>A buyer selects a product they like (let’s use coffee as an example) and pays for it using crypto or a stablecoin stored in their wallet. By doing so, the buyer can complete the transaction without providing their personal information or handing over valuable data to any party.</p><p>Moreover, all data is shared globally with symmetry, and only the individual possesses the means to prove the validity of their own data (although I have not explained this in detail, such proofs can be easily achieved using blockchain). As a result, the user can demonstrate to service providers how frequently they purchase products or how strongly they prefer specific items.</p><p>These facts have the power to significantly transform the existing structure, where service providers have traditionally held the advantage. In other words, users gain the ability to negotiate with service providers based on their own purchasing history.</p><p>For example:</p><ul><li>“If you want to link my purchasing data with my personal information, I will require compensation for disclosing that information.”</li><li>“As a heavy user of a specific product, I would like to request access to test samples of new products.”</li></ul><p>In many such scenarios, users and service providers can engage with each other on much more equal footing.</p><p>As a result, the relationship between providers and users fundamentally changes. Furthermore, because anonymized data is openly available, it becomes possible to create innovative services in Web3 that could not be realized in the Web2 world.</p><p>This, I believe, is the true innovation and essence of Web3.</p><h3>Web3 is a technology for the people</h3><p>As we have seen so far, Web3 is not inherently a valuable technology for companies operating under current value systems. Therefore, it is only natural for corporate decision-makers to conclude that Web3, in its current state, cannot be applied to existing business models. Likewise, it is understandable that they would want to bring Web3 into a more private, controlled environment — similar to how Web2 technologies are used today.</p><p>However, when viewed from the perspective of individuals, it cannot be definitively said that making Web3 more private is always desirable. As discussed above, there is indeed value in “visibility.” Going forward, I believe individuals should shift their mindset and learn to harness “visibility” as a source of power.</p><p>That said, not everything needs to be Web3. Companies that wish to maintain information asymmetry can continue to use Web2 applications. Likewise, individuals who want to keep certain transactions private can continue using Web2 services. On the other hand, for everyday small payments — such as routine transactions or tax payments that are deeply embedded in daily life — I strongly believe Web3, as a technology where “visibility creates value,” should be used as the underlying infrastructure. This would allow individuals to reclaim ownership and value of their data and to negotiate with service providers on equal terms.</p><p>That said, I want to be clear: I am neither an anarchist nor a terrorist. I believe that regulations and rules from governments and international institutions are necessary. One of the biggest problems in current discussions around Web3 is that everything is lumped together — high-value transactions and small everyday transactions are discussed under the same framework. This is neither productive nor meaningful.</p><p>If we focus on the characteristics of Web3, it should be positioned as a technology for individuals — particularly as a foundation for everyday, small-scale transactions where its strengths can be fully realized. Concretely, I believe it would be beneficial to introduce protocol-level controls that limit transactions to small amounts. In exchange, regulations could be lighter, allowing anyone to use it freely. In this way, Web3 could serve as a cradle for innovation and contribute to building a better society.</p><p>For high-value transactions, where various risks are a concern, I believe it is perfectly reasonable to continue relying on the existing financial infrastructure.</p><h3>Conclusion</h3><p>Blockchain, which underpins Web3 applications, allows anyone in the world to become a validator. Moreover, it cannot be stopped by the decision of any single nation or by the power of any authority. In this sense, it is truly fitting to describe it as a technology for individuals.</p><p>As mentioned above, I hope that by moving beyond outdated value systems, focusing on “the value created by visibility,” and by more people understanding and believing in the proper use of Web3, it will help contribute to building a better society unlike anything we have seen before.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=245bd4e9371e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PolkaVM with Ink!]]></title>
            <link>https://blog.blockmagnates.com/polkavm-with-ink-6b6aacbb48e1?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/6b6aacbb48e1</guid>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Mon, 04 Aug 2025 11:17:32 GMT</pubDate>
            <atom:updated>2025-08-11T09:28:55.137Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RVdiLgpQ489KdnXFT-tkvw.png" /></figure><h3>Motivation</h3><p>I believe that for simple programs — such as samples, demo applications, or those used in proof-of-concept deployments on testnets — Solidity is sufficient. However, when it comes to implementing applications intended for production use, to be honest, Solidity is not a language I would prefer to choose.</p><p>For simple logic, Solidity gets the job done. But when the goal is to implement slightly more complex processes, I find Solidity lacking. I believe this is due to the limited number of robust libraries, insufficient knowledge bases, and ultimately the relatively small size of its developer community.</p><p>In my view, this situation is reminiscent of the context in which TypeScript emerged from JavaScript. As codebases grow in scale and complexity, and as requirements for maintainability and correctness increase, a more suitable programming language becomes essential.</p><p>From that perspective, I believe the ability to use Rust for smart contract development offers an extremely powerful toolset for developers building applications intended for production environments.</p><h3>Rust in Smart Contract</h3><p>As of now, if you want to implement smart contracts in Rust instead of Solidity, you cannot do so on Ethereum. More precisely, it is not possible on the EVM.<br>That is why I chose WASM contracts on Polkadot as one of the alternatives to implement my own application. This is where Ink!, which I will introduce below, comes into play.<br>(I’m not fully familiar with the current state of other blockchains, but as far as I know, Rust can also be used to implement smart contracts on platforms such as NEAR, Solana, and Sui.)</p><p>However, when implementing a WASM contract on Polkadot, the key limitation — unless you use cross-chain bridges — is that there is no native way to communicate with Ethereum smart contracts. Polkadot did have a virtual machine called <a href="https://github.com/polkadot-evm/frontier">Frontier EVM</a>, but unfortunately, it did not support the latest EIPs, and as a result, the wide range of applications developed by the Ethereum community could not be implemented on Polkadot.<br>At that time, Polkadot chains often ran two separate virtual machines — one for EVM and another for WASM smart contracts — on the same chain, but sharing data between the two was technically difficult.<br>(There was a solution known as XVM, an inter-VM communication technology developed by the Astar team.)</p><h3>What is Ink! ?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hL8mP1y4PRSRL6GcahxJfg.png" /><figcaption><a href="https://use.ink/docs/v6/">https://use.ink/docs/v6/</a></figcaption></figure><p>The above is an excerpt from the official Ink! website. In short, I understand it as a smart contract development environment that allows implementation in Rust.<br>Ink! is not a newly released product. It has existed for quite some time and was originally implemented as a smart contract framework designed to run on Polkadot parachains.<br>For more detailed information, please refer to the official Ink! homepage.</p><p><a href="https://use.ink/">Home | ink!</a></p><h3>What’s Different This Time?</h3><p>So, what’s new this time? It’s PolkaVM. PolkaVM is a virtual machine based on the RISC-V architecture. For more details, please refer to the following.</p><p><a href="https://docs.polkadot.com/polkadot-protocol/smart-contract-basics/polkavm-design/">PolkaVM Design | Polkadot Developer Docs</a></p><p>As shown in the diagram below, PolkaVM supports Ethereum’s JSON-RPC interface. This means that although it is a different virtual machine, it can be used as if it were an EVM for interacting with smart contracts. Of course, it is not identical to the EVM, so there are some differences, but many smart contracts written in Solidity are expected to run on it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jl9VhGiZE3N_nh5Q3hXnHQ.png" /><figcaption><a href="https://docs.polkadot.com/polkadot-protocol/smart-contract-basics/polkavm-design/">https://docs.polkadot.com/polkadot-protocol/smart-contract-basics/polkavm-design/</a></figcaption></figure><p><a href="https://docs.polkadot.com/polkadot-protocol/smart-contract-basics/evm-vs-polkavm/">EVM vs PolkaVM | Polkadot Developer Docs</a></p><p>What I want to highlight the most this time is the fact that smart contracts written in ink! (version 6), that is, contracts implemented in Rust, can run on PolkaVM.<br>I would like to explain how this works in the form of a simple step-by-step guide.</p><h3>Step Guide For Developing Smart Contract on PolkaVM by using Ink!</h3><p>The procedure can be broadly divided into the following three steps:</p><ul><li>(1) Install ink! version 6, implement the sample flipper contract, and compile it.</li><li>(2) Create a viem project to interact with PolkaVM.</li><li>(3) Test.</li></ul><h4>Prerequisites</h4><p>This time, we will use PassetHub as the testnet. Please refer to the website below and obtain testnet tokens from the faucet.</p><p><a href="https://docs.polkadot.com/polkadot-protocol/smart-contract-basics/networks/#passet-hub">Networks for Polkadot Hub Smart Contracts | Polkadot Developer Docs</a></p><h4>(1) Install ink! version 6, implement the sample flipper contract, and compile it.</h4><p>If you do not have an ink! version 6 environment set up, please refer to the following and complete the environment setup.</p><p><a href="https://use.ink/docs/v6/getting-started/setup">Setup | Documentation | ink!</a></p><p>Note: This time, we don’t use “ink-node”.</p><p>Next, create and compile the sample contract.<br>By running the following command, a sample contract will be prepared inside the flipper_v6 directory.</p><pre>cargo contract new flipper_v6</pre><p>Before compiling, modify the Cargo.toml file as shown below.<br>By default, ink! is configured to output its own ABI format.<br>We need to change this setting so that a Solidity-compatible ABI is generated instead.</p><pre>[package.metadata.ink-lang]<br>abi = &quot;sol&quot;</pre><p>All other parts of the file can remain unchanged. Compile the contract using the following command:</p><pre>cd flipper_v6<br>cargo contract build</pre><p>If it looks like the following, the compilation was successful.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-G3Q7y2hpCYxKkVXslv3bA.png" /></figure><h4>(2) Create a viem project to interact with PolkaVM.</h4><p>Please follow the tutorial below to create a project that interacts with the contract.</p><p><a href="https://docs.polkadot.com/develop/smart-contracts/libraries/viem/">viem for Polkadot Hub Smart Contracts | Polkadot Developer Docs</a></p><p>You can run a sample using storage.sol, so first confirm that you can deploy the contract to PolkaVM using storage.sol, and verify that values can be correctly updated and retrieved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a8afYxS05Z-z_zT7kyCeeg.png" /></figure><p>Next, prepare to deploy the flipper_v6 contract and run tests.</p><ul><li>First, rename the “flipper_v6.abi” file you compiled earlier to “flipper_v6.json” and copy it into the “viem-project/artifacts” directory.</li><li>Along with that, also copy “flipper_v6.polkavm” to the same directory.</li></ul><p>Next, prepare the deployment and test scripts. Please refer to the sample below.</p><ul><li><a href="https://github.com/realtakahashi/polkavm_ink/blob/main/viem-project/src/deployInk.ts">polkavm_ink/viem-project/src/deployInk.ts at main · realtakahashi/polkavm_ink</a></li><li><a href="https://github.com/realtakahashi/polkavm_ink/blob/main/viem-project/src/interactInk.ts">polkavm_ink/viem-project/src/interactInk.ts at main · realtakahashi/polkavm_ink</a></li></ul><p>Once you have added the scripts, add the following two lines to the “scripts” section in your package.json file.</p><pre>    &quot;deployInk&quot;: &quot;ts-node src/deployInk.ts&quot;,<br>    &quot;interactInk&quot;: &quot;ts-node src/interactInk.ts&quot;,</pre><h4>(3) Test</h4><p>Using the files prepared as described above, proceed to run the tests.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*UHDjs-IUq0ToJuPRfXYntg.png" /></figure><p>The complete set of code described above is stored in the following GitHub repository of mine.</p><p><a href="https://github.com/realtakahashi/polkavm_ink/tree/main">GitHub - realtakahashi/polkavm_ink</a></p><h3>Next Step</h3><p>I have great expectations for Polkadot as the next-generation blockchain, and I support it wholeheartedly. PolkaVM is currently implemented on Kusama, Polkadot’s Canary Network, and is undergoing testing. I firmly believe in the future technological advancements of Polkadot and the growth of its community.</p><p>Right now, I feel that societal expectations for web3 are diminishing. There are various factors behind this, but I believe the biggest reason is the lack of solid use cases.</p><p>I strongly believe that web3 technology can help build a better society. I want to propose as many meaningful web3 use cases as possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6b6aacbb48e1" width="1" height="1" alt=""><hr><p><a href="https://blog.blockmagnates.com/polkavm-with-ink-6b6aacbb48e1">PolkaVM with Ink!</a> was originally published in <a href="https://blog.blockmagnates.com/">Block Magnates</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Go back to the basics of Web3]]></title>
            <link>https://realtakahashi-work.medium.com/go-back-to-the-basics-of-web3-a52e3e0006e5?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a52e3e0006e5</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[web3]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Sun, 27 Jul 2025 02:09:07 GMT</pubDate>
            <atom:updated>2025-07-27T02:09:07.680Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NoroDR5fLblNJwAagGA1eg.png" /></figure><h3>Motivation</h3><p>My personal passion for Web3 stems from the belief that applications built upon this remarkable concept can permeate society and ultimately make the world a better place. I am not interested in personal financial gain.</p><p>In recent years, I’ve come to recognize a rapid decline in societal expectations toward Web3. When I read reports from global events, I no longer sense the excitement that once surrounded the space. Even here in Japan, the number of meetups and hackathons has noticeably decreased. Many companies that once showed keen interest in the concept of Web3 now appear to be losing that enthusiasm just as quickly. I constantly ask myself: <em>Where should we look to find the root cause of this decline?</em></p><p>I believe there are several contributing factors. One major shift is the rise of machine learning technologies during what could be called a “third wave,” which coincided with the rise of Web3. In my view, machine learning offers companies a clearer and more quantifiable return on investment compared to Web3. This leads me to hypothesize that many corporate investments have been redirected from Web3 toward machine learning initiatives. Consequently, I suspect that many Web3 startups gave up on their projects in tandem with this shift.</p><p>However, the core problems that machine learning aims to solve are fundamentally different from those that Web3 seeks to address. For those of us who believe in the intrinsic value of Web3 — myself included — now is precisely the time to return to its core principles. I want to assert that we must refocus on realizing the social implementation of this technology in order to build a better, fairer society.</p><h3>What is the basics of web3</h3><p>When I reflect on the fundamental components of web3, I believe they can be distilled into the following key elements:</p><ul><li><strong>(1) The decentralized nature of application execution environments (commonly known as nodes) based on peer-to-peer (P2P) networks, and the mechanisms that maintain this decentralization.</strong></li><li><strong>(2) Unrestricted access to this execution environment — anyone should be able to participate.</strong></li><li><strong>(3) All application outputs are made transparently available to the entire world, allowing anyone to verify them.</strong></li><li><strong>(4) Based on cryptographic principles, each individual retains exclusive control over their own data — and the system is designed to uphold this assumption.</strong></li></ul><p>We know that <em>Bitcoin</em> was the world’s first use case where these advantages were made manifest. I recall reading somewhere — though I cannot find the exact reference — a person stating: <em>“We should pay more attention to the value Bitcoin created (not in the monetary sense).”</em> I couldn’t agree more.</p><p>There is no doubt in my mind about the significance and achievements of <em>Ethereum</em>. The concept of a “world computer” was an extraordinary innovation, and I hold deep respect for those who made it a reality. However, in the years since, I feel that no use case on Ethereum has achieved the same paradigmatic impact as Bitcoin.</p><p>Now more than ever, I believe we must turn our attention back to these foundational qualities of web3 — and focus on building use cases that genuinely resonate with broader society, ones that people <em>want</em> to use. That, I believe, is the path forward.</p><h3>Proposal</h3><p>I believe that <strong>“a truly valuable application retains its value even on a testnet.”</strong><br> Take DeFi protocols or NFTs as assets, for example — can we say they are valuable even when used on a testnet? To some extent, yes. There <em>is</em> value in simulation, testing, and learning. However, when the <em>core essence</em> of an application is centered around <strong>monetary gain</strong>, then its value is inherently tied to the <strong>mainnet environment</strong>, where real assets are at stake. In such cases, deploying to mainnet is not an optional stage — it’s a fundamental part of the application’s value proposition.</p><p>In contrast, I believe the <strong>next frontier</strong> we must explore is the development of <strong>applications that hold meaningful value even when used on a testnet.</strong></p><p>This, to me, is the <strong>true pursuit of web3’s intrinsic value</strong> — not speculative tokens or financial games, but software whose worth lies in what it enables, regardless of whether real money is involved.</p><p>Such applications don’t need to be complex, nor do they need to be intellectually sophisticated. They only need to be <strong>genuinely useful to real people</strong>. That alone is enough.</p><p>As one example, I recently built a simple prototype. As we progress through different stages of life, we move through various organizations — schools, companies, clubs, and communities. Today, people use social networks or LinkedIn to reflect this, but I believe we can build something <strong>lightweight and decentralized on web3</strong>, allowing people to represent their affiliations across time and share them easily, on their own terms.</p><p><a href="https://github.com/realtakahashi/Web3NameCard/tree/main">GitHub - realtakahashi/Web3NameCard</a></p><p>Let me reiterate — I truly believe that <strong>simplicity is enough</strong>.<br> I sincerely hope to see <strong>more and more of these kinds of applications built on web3</strong>, and I’m committed to developing them myself as well.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a52e3e0006e5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction of PolkaVM(3) with hardhat]]></title>
            <link>https://coinsbench.com/introduction-of-polkavm-3-with-hardhat-116f68fa4140?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/116f68fa4140</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[polkadot]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Sun, 11 May 2025 00:49:36 GMT</pubDate>
            <atom:updated>2025-05-14T13:36:49.530Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ziCQ_kXP_Lmqfzeg9ulhGg.png" /></figure><h3>Background</h3><p>This is the series articles for introducing PolkaVM. I have written as following articles before and today I introduce how to use hardhat on PolkaVM.</p><ul><li><a href="https://medium.com/@realtakahashi-work/introduction-of-using-polkavm-8eeece159681">How to use remix on PolkaVM</a></li><li><a href="https://medium.com/block-magnates/introduction-of-using-polkavm-2-9cfa2d625652">How to develop a smart contract with rust on PolkaVM</a></li></ul><h3>Table of content</h3><ol><li>Create local environment</li><li>Set up the local node</li><li>Prepare compiler</li><li>Set up the hardhat</li><li>Compile</li><li>Test on the local node</li></ol><h3>1. Create local environment</h3><p>You should install several software. Please check this site and install softwares.</p><p><a href="https://papermoonio.github.io/polkadot-mkdocs/develop/smart-contracts/dev-environments/hardhat/#prerequisites">Use Hardhat with Asset Hub | Polkadot Developer Docs</a></p><h3>2. Set up the local node</h3><p>In hardhat we use the local node. By default of hardhat we have EVM node but off course we doesn’t have the node of PolkaVM. So we should prepare the local node of PolkaVM. We set up the local node by following the site.</p><p><a href="https://contracts.polkadot.io/work-with-a-local-node">Work with a Local Node | Contracts</a></p><p>First, we should set up the rust environment because the local node is implemented by rust.</p><p><a href="https://docs.polkadot.com/develop/parachains/install-polkadot-sdk/">Install Polkadot SDK Dependencies | Polkadot Developer Docs</a></p><p>Next, cloning the Polkadot-SDK repository.</p><pre>git clone https://github.com/paritytech/polkadot-sdk<br>cd polkadot-sdk</pre><p>Final step is building source code &amp; test.<br>We need to build 2 types of binaries. One is “substrate node”. This is the node binary of Polkadot including PolkaVM. Another is “eth-rpc”. This is the interface of EVM which bridge to “substrate node”.</p><p>Following command is for building “substrate node”. And as the result we can find the following binary.</p><pre> % cargo build --release</pre><p>And following command is for building “eth-rpc”.</p><pre>% cargo build --release -p pallet-revive-eth-rpc</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OYObYDGOAeWMEA5Zxrq2Sg.png" /></figure><h3>3. Prepare compiler</h3><p>When we use PolkaVM, we need specific compiler to build the source code of solidity. This is the “RESOLC” binary. We have 2 steps to prepare this compiler.</p><ol><li>Install SOLC</li><li>Install RESOLC</li></ol><p>To install SOLC, please check this official documentation &amp; install it.</p><p><a href="https://docs.soliditylang.org/en/latest/installing-solidity.html">Installing the Solidity Compiler - Solidity 0.8.31 documentation</a></p><p>To install RESOLC, download the specific binary which fit your environment.</p><p><a href="https://github.com/paritytech/revive/releases">Releases · paritytech/revive</a></p><p>After installing, check the binary.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1L5pRvD9G1W6PznOrGbfdw.png" /></figure><h3>4. Set up the hardhat</h3><p>To set up the hardhat, we follow the official site of Polakdot.</p><p><a href="https://papermoonio.github.io/polkadot-mkdocs/tutorials/smart-contracts/launch-your-first-project/test-and-deploy-with-hardhat/">Test and Deploy with Hardhat | Polkadot Developer Docs</a></p><p><em>The following contents is the same of official document. It’s mean that coping &amp; pasting from the official document.</em></p><pre>// Create work directory<br>mkdir storage-hardhat<br>cd storage-hardhat<br><br>// Initialize project &amp; install needed packages<br>npm init -y<br>npm install --save-dev hardhat @nomicfoundation/hardhat-toolbox<br>npm install --save-dev hardhat-resolc@0.0.7 hardhat-revive-node@0.0.6 dotenv<br><br>// Initialize hardhat project<br>// * You have to select the option &quot;Create an empty hardhat.config.js&quot;<br>npx hardhat init</pre><p>So, you can check the file which name is “hardhat.config.js” And as following is the example(in my case)</p><pre>require(&#39;@nomicfoundation/hardhat-toolbox&#39;);<br><br>require(&#39;hardhat-resolc&#39;);<br>require(&#39;hardhat-revive-node&#39;);<br><br>require(&#39;dotenv&#39;).config();<br><br>/** @type import(&#39;hardhat/config&#39;).HardhatUserConfig */<br>module.exports = {<br>  solidity: &#39;0.8.28&#39;,<br>  resolc: {<br>    compilerSource: &#39;binary&#39;,<br>    settings: {<br>      optimizer: {<br>        enabled: true,<br>        runs: 400,<br>      },<br>      evmVersion: &#39;istanbul&#39;,<br>      compilerPath: &#39;/Users/shin.takahashi/develop/polkavm/resolc-universal-apple-darwin&#39;,<br>      standardJson: true,<br>    },<br>  },<br>  networks: {<br>    hardhat: {<br>      polkavm: true,<br>      nodeConfig: {<br>        nodeBinaryPath: &#39;/Users/shin.takahashi/develop/polkavm/polkadot-sdk/target/release/substrate-node&#39;,<br>        rpcPort: 8000,<br>        dev: true,<br>      },<br>      adapterConfig: {<br>        adapterBinaryPath: &#39;/Users/shin.takahashi/develop/polkavm/polkadot-sdk/target/release/eth-rpc&#39;,<br>        dev: true,<br>      },<br>    },<br>    localNode: {<br>      polkavm: true,<br>      url: `http://127.0.0.1:8545`,<br>    },<br>    westendAssetHub: {<br>      polkavm: true,<br>      url: &#39;https://westend-asset-hub-eth-rpc.polkadot.io&#39;,<br>      accounts: [process.env.PRIVATE_KEY],<br>    },<br>  },<br>};</pre><p>You have to change 3 values.</p><ul><li>compilerPath</li><li>nodeBinaryPath</li><li>adapterBinaryPath</li></ul><p>“compilerPath” is where you install “RESOLC” binary.<br>“nodeBinaryPath” is where your binary which you compiled “substrate node”.<br>“adapterBinaryPath” is where your binary which you compiled “eth-rpc”.</p><p>One moe thing. We have to need to create the “.env” file which has private-key like following in the hardhat project current directory.</p><pre>% cat .env <br>PRIVATE_KEY=&quot;7777777xxxxxxxx9999999999uuuuuuuuuiiiiiiii&quot;</pre><h3>5. Compile</h3><p>We have to prepare example contract.</p><p>Create the directory “contracts” &amp; create the file “Storage.sol”.</p><pre>// SPDX-License-Identifier: MIT<br>pragma solidity ^0.8.28;<br><br>contract Storage {<br>    // State variable to store our number<br>    uint256 private number;<br><br>    // Event to notify when the number changes<br>    event NumberChanged(uint256 newNumber);<br><br>    // Function to store a new number<br>    function store(uint256 newNumber) public {<br>        number = newNumber;<br>        emit NumberChanged(newNumber);<br>    }<br><br>    // Function to retrieve the stored number<br>    function retrieve() public view returns (uint256) {<br>        return number;<br>    }<br>}</pre><p>You can compile usual command of hardhat.</p><pre>% npx hardhat compile</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d5qaVcf4SI9CHlJYQdfS2Q.png" /></figure><h3>6. Test on the local node</h3><p>Everything goes well so we can test on the local node of PolkaVM.</p><p>Prepare the example test file in the test directory.</p><pre><br>const { expect } = require(&#39;chai&#39;);<br>const { ethers } = require(&#39;hardhat&#39;);<br><br>describe(&#39;Storage&#39;, function () {<br>  let storage;<br>  let owner;<br>  let addr1;<br><br>  beforeEach(async function () {<br>    // Get signers<br>    [owner, addr1] = await ethers.getSigners();<br><br>    // Deploy the Storage contract<br>    const Storage = await ethers.getContractFactory(&#39;Storage&#39;);<br>    storage = await Storage.deploy();<br>    await storage.waitForDeployment();<br>  });<br><br>  describe(&#39;Basic functionality&#39;, function () {<br>    it(&#39;Should return 0 initially&#39;, async function () {<br>      expect(await storage.retrieve()).to.equal(0);<br>    });<br><br>    it(&#39;Should update when store is called&#39;, async function () {<br>      const testValue = 42;<br>      // Store a value<br>      await storage.store(testValue);<br>      // Check if the value was updated<br>      expect(await storage.retrieve()).to.equal(testValue);<br>    });<br><br>    it(&#39;Should emit an event when storing a value&#39;, async function () {<br>      const testValue = 100;<br>      // Check if the NumberChanged event is emitted with the correct value<br>      await expect(storage.store(testValue))<br>        .to.emit(storage, &#39;NumberChanged&#39;)<br>        .withArgs(testValue);<br>    });<br><br>    it(&#39;Should allow storing sequentially increasing values&#39;, async function () {<br>      const values = [10, 20, 30, 40];<br><br>      for (const value of values) {<br>        await storage.store(value);<br>        expect(await storage.retrieve()).to.equal(value);<br>      }<br>    });<br>  });<br>});</pre><p>Run the local node.</p><pre>npx hardhat node</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OvzdsPhvCqxKLj3WxkEVDQ.png" /></figure><pre>npx hardhat test</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FEBWZL6UQhCbngvzCT8gCg.png" /></figure><h3>Next Step</h3><p>I love polkadot so I will continue support Polkadot ecosystem. Pop-cli has just up the version for ink6 so I will check the latest version of Pop-cli.</p><p><a href="https://pop.r0gue.io/cli/">Pop</a></p><p>And I will develop another dApp which can be shown the value of web3 &amp; my protocol.</p><p><a href="https://realtakahashi-work.medium.com/color-the-internet-20b3ae6f966f">Color The Internet</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=116f68fa4140" width="1" height="1" alt=""><hr><p><a href="https://coinsbench.com/introduction-of-polkavm-3-with-hardhat-116f68fa4140">Introduction of PolkaVM(3) with hardhat</a> was originally published in <a href="https://coinsbench.com/">CoinsBench</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduce Pop-cli for ink!]]></title>
            <link>https://realtakahashi-work.medium.com/introduce-pop-cli-for-ink-ee87b7bb31bf?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/ee87b7bb31bf</guid>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[ink]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Tue, 06 May 2025 10:00:35 GMT</pubDate>
            <atom:updated>2025-05-06T10:00:35.599Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7fesuMhU64V7_fLc2GuBSQ.png" /></figure><h3>Motivation</h3><p>Have you ever implemented smart contract with solidity? If yes, you might think this computer language is not good for operating string &amp; handling errors. That’s why I’m focusing the smart contract with rust.</p><h3>Polkadot</h3><p>Polkadot is the popular blockchain which aims to create the next generation computer. In detail please check the official site.</p><p><a href="https://polkadot.com/">https://polkadot.com/</a></p><h3>Smart contract in Polkadot</h3><p>Polkadot has the smart contract engine called “PolkaVM”. In PolkaVM, 2 types of smart contract are supported.</p><p><a href="https://docs.polkadot.com/develop/smart-contracts/overview/">Smart Contracts Overview | Polkadot Developer Docs</a></p><ul><li>EVM compatible(solidity etc.)</li><li>ink!</li></ul><p>In my understanding, basically we have to use the high-level language like rust for implementing better source code but at the same time easier language is needed by many people to be on boarding the blockchain. Solidity is easy to implement because the syntax is similar with javascript. On the other hands, rust is difficult for many people to implement but this language is efficient, has better compiler, error handling &amp; etc. That’s why this language is more suitable for emterprise use cases to implement.</p><h3>ink! with Pop-cli</h3><p>Today, I want to introduce ink! with pop-cli. Pop-cli is the all in one tool.</p><p><a href="https://onpop.io/cli/">Pop</a></p><h4>Creating your environment</h4><p>For developing the smart contract with ink! &amp; pop-cli, you have to install some softwares in your computer. Please follow the site.</p><p><a href="https://learn.onpop.io/cli/installing-pop-cli">Installing Pop CLI | Docs</a></p><p>When installation is completed, please check the version.</p><pre> % pop --version<br>pop-cli 0.7.0</pre><h4>Create new contract</h4><p>You can create the new contract as following command. And please note that we have 3 types of templates now.</p><pre>% pop new contract</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KYLb445fc3dTvt4QGC2LzQ.png" /><figcaption><a href="https://learn.onpop.io/contracts/guides/create-a-new-contract">https://learn.onpop.io/contracts/guides/create-a-new-contract</a></figcaption></figure><p>In this time, I selected “Examples” — “flipper”. Because this is most basic contract in ink!. If this contract does not work well, another contract will not work well.</p><p>When you check “Cargo.toml”, you can understand that pop selected the version 5.1 of ink!.</p><pre>% cat Cargo.toml <br>[package]<br>name = &quot;my_contract&quot;<br>version = &quot;0.1.0&quot;<br>authors = [&quot;[your_name] &lt;[your_email]&gt;&quot;]<br>edition = &quot;2021&quot;<br><br>[dependencies]<br>ink = { version = &quot;5.1.0&quot;, default-features = false }<br><br>[dev-dependencies]<br>ink_e2e = { version = &quot;5.1.0&quot; }<br><br>[lib]<br>path = &quot;lib.rs&quot;<br><br>[features]<br>default = [&quot;std&quot;]<br>std = [<br>    &quot;ink/std&quot;,<br>]<br>ink-as-dependency = []<br>e2e-tests = []</pre><h4>Build the contract</h4><p>You move to the contract directory and build it as following command.</p><pre>% cd my_contract<br>% pop build</pre><p>When the command is completed without error, the build was succeed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HWkLa2v_E10t_KrrZqIqjQ.png" /></figure><p>And you can find some files in the target directory.</p><pre>% ls -l target/ink/<br>total 96<br>-rw-r--r--   1 shin.takahashi  staff    177  5  6 17:44 CACHEDIR.TAG<br>-rw-r--r--   1 shin.takahashi  staff  23672  5  6 17:46 my_contract.contract<br>-rw-r--r--   1 shin.takahashi  staff   8095  5  6 17:46 my_contract.json<br>-rw-r--r--   1 shin.takahashi  staff   9973  5  6 17:45 my_contract.wasm<br>drwxr-xr-x  10 shin.takahashi  staff    320  5  6 17:46 release<br>drwxr-xr-x@  4 shin.takahashi  staff    128  5  6 17:44 wasm32-unknown-unknown</pre><h4>Start local node &amp; deploy the contract</h4><p>You can start local node &amp; deploy as following commands.</p><pre>% pop up --constructor new --args false --suri //Alice</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Bgz2ga6zzS-PrwvS2opr2Q.png" /></figure><h4>Call the contract</h4><p>You can interact your contract as following command.</p><pre>% pop call contract   </pre><p>This is the example. I executed following secnario.</p><ol><li>Call “get” function -&gt; false</li><li>Execute “flip” function</li><li>Call “get” function -&gt; true</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RzMOZx8qNCA3Jmzl7nyGhw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*65RBd_tZoEPddgpTDs0CHw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_2Ex1JmvzFvV11Lcdg3Nyw.png" /></figure><h4>Terminate your local node</h4><p>Your local node use the “9944” port, so you can find the PID of your local node as following command.</p><pre>% lsof -i :9944                                       <br>COMMAND     PID           USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME<br>substrate 51842 shin.takahashi   32u  IPv6 0x241d69b99316679a      0t0  TCP localhost:9944 (LISTEN)<br>substrate 51842 shin.takahashi   33u  IPv4 0x3cc170d983e5dd06      0t0  TCP localhost:9944 (LISTEN)</pre><pre>% kill 51842<br>% lsof -i :9944<br>% </pre><h3>Next step</h3><p>Today, we check most basic use case of developing the contract. But if you want to develop your own dApp, the contract will be more complex. And you want to debug your contract. So next time, I will introduce more complex use case with pop.<br>I have been support Polkadot ecosystem, especially smart contract for 5 years. And I will continue to support Polkadot ecosystem.</p><p>And this is my latest dApp.<br><a href="https://realtakahashi-work.medium.com/color-the-internet-20b3ae6f966f">https://realtakahashi-work.medium.com/color-the-internet-20b3ae6f966f</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ee87b7bb31bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Color The Internet]]></title>
            <link>https://realtakahashi-work.medium.com/color-the-internet-20b3ae6f966f?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/20b3ae6f966f</guid>
            <category><![CDATA[ink]]></category>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Sat, 26 Apr 2025 07:57:12 GMT</pubDate>
            <atom:updated>2025-04-26T07:57:12.529Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ndF9-8-hdgiPSSrbUZWMeA.png" /></figure><h3>Motivation</h3><p>Can you find the information which you really want by using present search engine or Apps? Maybe the answer is no. Because informations in the internet are mixed. Commercial information, non-commercial information, malicious information, serious information &amp; etc exist in the internet. And as of now almost search engine &amp; Apps are managed by commercial mechanism, the site which the site owner paid much money for the company of search engine and platform is listed on the top of the search engine and Apps. The amount of commercial site is higher &amp; higher, it will be more &amp; more difficult for us to find the information which we want to get.</p><p>Is such the figure of internet for what we wanted? The answer is no, at least for me. This is my motivation for developing this dApp which I named “Color The Internet”.</p><h3>Example of the problem</h3><p>“How can I find the restaurant which provide good &amp; affordable foods in the area of near Tokyo station?”<br>There are many many restaurant &amp; bar in the area. It is quite hard to find such a restaurant by foot only. So we might use the internet, search engine &amp; Apps. But maybe we can not find such restaurant by using search engine &amp; Apps.</p><h3>Shall we color the internet?</h3><p>In the internet space, I believe the real informations certainly exit. I want to search the information which I really want. Real informations means informations which people output seriously. These informations are NOT for commercial, NOT for malicious, NOT idiotic but also have integrity.</p><p>In fact some blogger &amp; some media provide the valuable informations for various areas. But more they want to publish authentic information for users, it is hard to list on the top of search engine or Apps. Because in the present mechanism people who get the informations never pay money, so if the owner of the blog &amp; media earn much money, they must follow the requirement of the people who pay money for their information. So the real informations is hard to find by using present search engine or Apps.</p><p>I really want to shine light on these real informations.</p><p>So I came into my mind to categorize the contents in the internet. I want to color the contents by classification.</p><h3>Basic Mechanism</h3><p>How can we categorize the contents? Can we develop the engine which categorize the contents automatically? Maybe yes, but this application will be needed several amount for money to develop and it may hard to find the people who fund this application.</p><p>So I decide to use the wisdom of the crowd by using web3. I design my dApp as following steps.</p><ul><li>(1) To make working the wisdom of the crowd, we need the group which has the moderate tension for each other.</li><li>(2) To work for categorizing the contents, we need the incentive which like wage for working.</li><li>(3) To avoid the free riders or malicious users, we need the system which people want to do correct things.</li><li>(4) To make working this dApp, we need the democratic management system for this dApp</li></ul><h4>For (1) -&gt; “XXX”</h4><p>“XXX” is the group which has 3 members. When the group has many members, some people will behave not responsible and if the group has only 2 members, the group doesn’t have moderate tension. Moderate tension is quite important for people to work.</p><h4>For (2) -&gt; Governance token</h4><p>In this dApp, when people do some actions, they can get the governance tokens. But off course this tokens are not valuable. When this dApp works &amp; many people recognize the value of this dApp, I believe this token can be listed on the crypto exchange.</p><h4>For (3) -&gt; Deleting functions &amp; Incentive for thinking future value</h4><p>This dApp has deleting functions which can delete malicious “XXX” &amp; free riders. For many dApp, the right of deleting is quite strong. So in this dApp we manage the right by DAO(DAO Oriented Protocol).<br>This dApp aims to list the governance token to crypto exchange. If the people behave malicious, the governance token never is listed. But if people behave correctly, I believe the governance token will be listed. And to be bigger the amount of governance token which people contributed for listing the token, when the token is listed, the function of creating “XXX” will be stopped.</p><h4>For(4) -&gt; Using “DAO Oriented Protocol”</h4><p>This dApp has some strong right functions which manage this dApp. And if only owner has the right to use, the value of dApp will be lower. That’s why I decide to introduce DAO mechanism to manage this dApp.</p><p><a href="https://realtakahashi-work.medium.com/dao-oriented-protocol-aiming-to-make-all-apps-sustainable-47501a4b8d04">“DAO Oriented Protocol”-&gt;Aiming to make all apps sustainable</a></p><h3>Functions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tl8yiws0_n8MMTE9.png" /></figure><h4>Basic functions</h4><ul><li>Create “XXX”<br>This is the function which create the group with trusted members. This group members should have the same preference. For example hobby, business, technologies &amp; etc. People who see the “XXX” checks the members, and if the members have same preference, people will not suspect the “XXX”, but if the members do not have same preference, people will suspect the “XXX” as a malicious one.</li><li>Propose the site<br>When you find the good site. you can propose the site for other members.</li><li>Approve the site<br>When a member propose the site, all other members can approve the site.<br>When all other members approve this site, coloring the site is finished by the “XXX”. And then people can vote the site.</li><li>Vote the site<br>All people can vote the site which they think it is good.</li></ul><h4>Admin functions</h4><ul><li>Deleting the “XXX”<br>When you find the malicious “XXX” like a free rider, you can propose to delete the “XXX” for DAO members which manage this dApp. And through voting of DAO members, the malicious “XXX” can be deleted.</li><li>Stop creating “XXX” function<br>When the governance token is decided to list on the crypto exchange, we can stop creating “XXX” function. This function exists for early adopters of this dApp. Governance tokens are minted by acting in the “XXX” but after using this function, as the chance of new users only exist when the users vote. So former uses of this function get the right which can be get more governance tokens. The goal of this function is to promote more constructive user behavior.</li></ul><h3>Source code</h3><ul><li><a href="https://github.com/realtakahashi/color_the_internet">GitHub - realtakahashi/color_the_internet</a></li><li><a href="https://github.com/realtakahashi/dao_oriented_protocol">GitHub - realtakahashi/dao_oriented_protocol</a></li></ul><h3>Example screen shot of the frontend of this dApp</h3><p>Honestly speaking I’m not good at implementing frontend apps. But if the frontend app does not exist, it is hard to understand for people what is this dApp. So I developed it but the design is quite low level …</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/984/1*5ONkQoJoMwJq52qaZ0rpiw.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=20b3ae6f966f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Re: DAO oriented protocol]]></title>
            <link>https://blog.blockmagnates.com/re-dao-oriented-protocol-a8e9bc0b42f3?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/a8e9bc0b42f3</guid>
            <category><![CDATA[ink]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[polkadot]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Mon, 21 Apr 2025 23:24:09 GMT</pubDate>
            <atom:updated>2025-04-30T11:24:12.895Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dqwdPh_r-yk2DQoHjPpHHQ.png" /></figure><h3>Make all application be sustainable again</h3><p>There are many applications which we want them to be sustainable. For example games, in Japan we have many great video games which is develop between 1980 to 1990. About some games we can not play them now. If we never play such games, it is quite bad tragedy.</p><p>Another example, we have many useful internet media, blog but maybe you know these contents are saved in the server which the media company have. And if the media company go bankrupt, it seems that these contents will be gone to the dark &amp; we may not read them again forever.</p><p>I really want to avoid these tragedy.</p><p>I have found this idea in 2023 but I could not spread this idea in the world. And as of now, the situation is not changed.<br>But I strongly believe this idea &amp; I will continue to explain how this idea is useful for human beings.</p><h3>DAO Oriented Protocol</h3><p>If you are interested in this idea, I want you to read my blog about this protocol.</p><p><a href="https://realtakahashi-work.medium.com/dao-oriented-protocol-aiming-to-make-all-apps-sustainable-47501a4b8d04">“DAO Oriented Protocol”-&gt;Aiming to make all apps sustainable</a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-EU5g3f02U3dPH8e4t22Pg.png" /></figure><p>This is the basic structure of this protocol. <br>DAO layer provide the management functions. If you use this protocol, all contracts are managed DAO layer. And if you want to add the new contract, you can propose to add new contract. Application Core provide the installation function.<br>If you want to check more detail, please check above blog &amp; my github repository.</p><p><a href="https://github.com/realtakahashi/dao_oriented_protocol/tree/migrateTo5_0">GitHub - realtakahashi/dao_oriented_protocol at migrateTo5_0</a></p><p>I have solidity version of this protocol. So this protocol can be deployed on PolkaVM.<br><a href="https://github.com/realtakahashi/DaoOrientedProtocolSolidity">https://github.com/realtakahashi/DaoOrientedProtocolSolidit</a>y</p><h3>In the polkadot ecosystem</h3><p>I think polkadot is the most great project of blockchain in the world. And actually polkadot has some great functions.</p><p><a href="https://polkadot.com/">https://polkadot.com/</a></p><p>For example…</p><ul><li>forkless runtime upgrade</li><li>modular structure</li><li>Polka VM(new generation virtual machine)</li><li>XCM</li></ul><p>I believe in the future many L1 chain will be released &amp; these L1 chain are not generic smart contract platform but also these chain have specific functions. That’s why we need to messaging layer &amp; messaging protocol. This is polkadot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4DrVz-qWdtZZUY-oPFknVQ.png" /></figure><p>In the polkadot, I think dApp will collaborate with other chains which provide the specific functions.</p><h3>Still Tough Road Ahead</h3><p>I strongly believe the power of web3, polkadot &amp; my protocol. But maybe some people say “This protocol is not useful”, “polkadot is not great project” &amp; etc. I think these come from lack of use case. So I think we should stop to explain the value of them, and we should develop the valuable use case &amp; valuable dApp which show the value of web3.</p><h3>Proposal of use case</h3><p>Transparency &amp; token economics are one of the great value of web3. So I integrate these functions &amp; I propose new dApp, the name is “Color the internet”.<br>This dApp aims to categorize the contents of the internet.<br>Do you know the initial stage of the internet? Maybe it was early 1990s. At that time, we had no commercial site, fake news, malicious site &amp; etc but also good real contents which early adopters of internet created. I want to reconstruct the internet.</p><h3>“Color The Internet”</h3><h4>Normal version</h4><p><a href="https://github.com/realtakahashi/color_the_internet">GitHub - realtakahashi/color_the_internet</a></p><h4>DAO oriented protocol version</h4><p><a href="https://github.com/realtakahashi/dao_oriented_protocol/tree/migrateTo5_0/example/color_the_internet">dao_oriented_protocol/example/color_the_internet at migrateTo5_0 · realtakahashi/dao_oriented_protocol</a></p><p>Could you join to color the internet?<br>For example, In Japan, if you visit Tokyo station to eat Japanese food &amp; you want to visit a restaurant or bar which kindness master exist &amp; they provide the good &amp; affordable Japanese food &amp; Sake, it is impossible for you to find such a restaurant by using present internet search engine. Maybe you know almost popular search engine or popular site are managed by the mechanism of commerce or money. So the restaurant which pay most are listed on the top of the site. That’s why it is quite difficult to find the restaurant which we really want by using present internet mechanism. <br>I want to change this situation by using power of web3.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HGytVsNw1S5p72cQOyEr4A.png" /></figure><h4>Basic mechanism</h4><ul><li>Create “XXX”<br>First step is to create “XXX”. <br>For example if you like to drink Sake in Tokyo &amp; you have some drinking members, you can create “XXX” which you introduce great restaurant for Sake.</li><li>Propose the site<br>When you find the good site for introducing great Sake restaurant, you can propose the site to list for other members in the “XXX”.</li><li>Approve the site<br>When a member propose the site, all other members can approve the site.<br>When all other members approve this site, people can vote the site.</li><li>Vote the site<br>All people can vote the site which they think it is good.</li></ul><h4>Governance token</h4><p>This dApp has governance token(PSP20(it is equal to ERC20)). This governance token aims to be listed &amp; valued.<br>When this system works &amp; our society recognize the value of this system, I believe this token will be listed &amp; valued. It is the incentive for joining this system.</p><h4>Remarks</h4><ul><li>This dApp is managed by DAO with “<a href="https://realtakahashi-work.medium.com/dao-oriented-protocol-aiming-to-make-all-apps-sustainable-47501a4b8d04">DAO Oriented Protocol</a>”<br>This dApp has a few functions with strong right which I show as following. If only I have this right, this mechanism will not work for society. That’s why I decided to introduce DAO system for this dApp.<br>Every functions with strong right can be executed through proposing &amp; voting by DAO members.</li><li>Stop to create “XXX”<br>When this governance token is decided to list, this dApp will stop to create new “XXX”. So only early adopters can get huge amount of this governance tokens.<br>This mechanism aims to create good behavior for this system.</li><li>Delete malicious “XXX”<br>When a malicious “XXX” is found, DAO can delete the “XXX”. I believe this function will work for keep from free riders &amp; bad behavior in this dApp.</li></ul><h3>Next step</h3><p>I strongly believe the power of internet, power of web3. And as of now I think Polkadot is the one of great project to create the future of web3. So I will continue to support Polkadot ecosystem.<br>And I think we need more &amp; more use case which can be shown the value of web3. So I will continue to develop dApp for finding another valuable use case of web3.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a8e9bc0b42f3" width="1" height="1" alt=""><hr><p><a href="https://blog.blockmagnates.com/re-dao-oriented-protocol-a8e9bc0b42f3">Re: DAO oriented protocol</a> was originally published in <a href="https://blog.blockmagnates.com/">Block Magnates</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The challenge for making the application sustainable]]></title>
            <link>https://realtakahashi-work.medium.com/the-challenge-for-making-the-application-sustainable-4613caea5a41?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/4613caea5a41</guid>
            <category><![CDATA[dao]]></category>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <category><![CDATA[evm]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Sat, 01 Mar 2025 13:57:21 GMT</pubDate>
            <atom:updated>2025-03-01T13:57:21.170Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YAOJ05blGcCNeJpP-zxdTg.png" /></figure><h3>Motivation</h3><p>First, I strongly believe that web3 has the power which solve a lot of problems which has been occurring around the world. I guess they will be happened the figure of next generation application, so called dApp. Recently we can see may try for implementing dApp. Honestly speaking I do not have enough knowledge about dApps, so that I may misunderstand for dApp. But I think almost dApp is no sustainable. Because some dApps are not upgradable, no one can not update the dApp even though it has vulnerabilities. On the other hands, some dApps are upgradable, they are implemented upgradable function but this function can be controlled by limited administrator, and the power of the administrator is quite strong like a king of medieval. But off course I know some developers try to improve this challenges, and I do not have any intention which I criticize these actions. My action is one of these actions which we try to solve the issues which applications are not sustainable.</p><p>If I am not afraid the misunderstanding against me, I do not like money &amp; over capitalism &amp; past socialism which was made biggest mistake for the world. And I want our society will be more fair, more flat. I mean less poverty, solving the problem of so called global south, and any other same problem of our world, our society.<br>And I believe that web3 &amp; dApp will achieve some parts for solving these social problems. And I believe the developers who has same mind with me are trying to develop the great dApp to make our society fairer.<br>My motivation is make me a part of these actions against social problems in the world.</p><h3>In the beginning</h3><p>I think we already have some precious applications. For example, media, blog &amp; some internet contents. These already have great functions which can change the world, which can solve the social problems by many people discuss each other. <br>Next examples are delivery service, co-op, bus and other mandatory service for our living. <br>Another example are donation, tip, crowdfunding &amp; other financial solutions, these might solve the issues of unfair.<br>These examples are basically essential for our living. Originally these services were fair for almost people but recently we have terrible separation for thinking, As the result the original philosophy of these services are hurting, these services not being unfair and the services are changing that almost people do not want. So I want to repair these services by using web3 technologies, to recover the original philosophy of these services by using web3 philosophy.<br>And I think these applications are not sustainable, do not have enough transparency. I want to solve these challenges.</p><p>Off course I know that these applications are not enough to solve all issues which our society, our world faces. Especially global level issues, for example so called global south, unbalance of value &amp; etc.<br>So that we should do more &amp; more effort to solve these big issues for our society.</p><h3>Proposal</h3><h4>-All valuable applications should be aimed to be sustainable. -</h4><p>If we have some valuable media in the world, but I think these are not sustainable, because almost media is managed by the company &amp; almost media company has several businesses, so if some businesses are damaged, the media will be closed &amp; the valuable data will be gone. I understand that not all companies may be operated in such a way, because I do not know all the companies in the world.</p><p>But I think, I believe that all valuable application should be managed by the group which think about only the value of the application &amp; the sustainability of the application. And I believe that the group should not manage several application but also should manage only one application. So I want to propose the solution which can be sustainable for applications.</p><h4>DAO Oriented Protocol</h4><p>To solve the sustainability issues which I mentioned above, I am implementing the protocol which make applications could be sustainable. I have named this protocol to “DAO Oriented Protocol”. This protocol can make the application managed by DAO and I believe that only real DAO which aim to improve the application &amp; to be sustainable works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6BrVzuzCfhOYx7vr3bOTMw.png" /></figure><p>This is the basic structure of this protocol. This protocol has 3 core components &amp; these are pre-installed. Member manager provide the functions which manage the member of theDAO &amp; only the member can create proposals &amp; can vote for proposals. Proposal manger provide the functions which manage proposals. If the member want to something in this application, the member have to create the proposal and should get the majority number of vote. Vote manager manage functions of vote.</p><p>If you want to add other functions, you have to implement the contract which have specific interface of DAO Oriented Protocol. This interface provide the function which can be communicate with other contract in DAO Oriented Protocol. And then you deploy the contract, you should create the install proposal and you should get the majority number of vote.</p><p>This protocol has 2 versions. One is solidity version which can be deployed EVM. Another version is rust version which can be deployed “pallet-contract” which is the verrual machine of substrate.</p><ul><li><a href="https://github.com/realtakahashi/DaoOrientedProtocolSolidity">GitHub - realtakahashi/DaoOrientedProtocolSolidity</a></li><li><a href="https://github.com/realtakahashi/dao_oriented_protocol">GitHub - realtakahashi/dao_oriented_protocol</a></li></ul><h3>Next step</h3><p>My motivation is not to earn money but also to create better society by using web3. So that I want to implement applications which can be solve social problems. And I hope that these applications are sustainable.<br>I will use this protocol and I will continue to think about such applications and I will continue to implement applications which can be solve social problems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4613caea5a41" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction of using PolkaVM(2)]]></title>
            <link>https://blog.blockmagnates.com/introduction-of-using-polkavm-2-9cfa2d625652?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/9cfa2d625652</guid>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Wed, 15 Jan 2025 12:38:23 GMT</pubDate>
            <atom:updated>2025-02-05T17:23:49.947Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RZ8yrhfMr9wmxMw-l4BZAg.png" /></figure><h3>Motivation</h3><p>Off course many people who are in web3 space know that most popular application environment of web3 is EVM. At the same time they know present EVM has some issues. For example the performance, some problem of solidity &amp; etc. But even though EVM has some issues, the popularity of EVM goes on. Honestly speaking I don’t know the reason.</p><p>From a few years past, Some networks are appeared. Polkadot, Near, Solana, Sui &amp; etc. These networks aim to improve EVM by using another architecture, like WASM. But any network could not get much developers than EVM even though these networks have better technology or architecture. I think it is the power the community of Ethreum. So I think as far as the power of the community goes on, EVM will be the 1st position of the development environment of web3.</p><p>That&#39;s why I am very interested in PolkaVM.<br>PolkaVM has the compatibility with EVM but has better architecture than present EVM. And <a href="https://substrate.io/">Substrate</a> which is the blockchain framework of polkadot is very powerful &amp; useful functions to build the blockchain network, like a <a href="https://docs.substrate.io/tutorials/build-a-blockchain/upgrade-a-running-network/">fork less upgrade</a>. This is one of great advantage of PolkaVM.</p><p>Last month, I introduced “t<a href="https://realtakahashi-work.medium.com/introduction-of-using-polkavm-8eeece159681">he first step of using PolkaVM</a>”. Today I want to introduce next step. These are “creating the local environment” &amp; “implementing smart contract by using Rust”.</p><h3>Creating the local environment</h3><p>I want to introduce <a href="https://contracts.polkadot.io/work-with-a-local-node">this tutorial</a>.<br>As many web3 developers know, we definitely need local environment, for example running local node &amp; IDE because if we can use local node, we can get quick response than testnet &amp; mainnet , as the result, we don’t need any tokens which I have to get from faucet &amp; from crypto exchange.<br><em>Note: As of now PolkaVM has only Remix as an IDE, but it doesn’t have other greater IDE, like hardhat.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MpNS4THd1mSounOuo8Wlbw.png" /></figure><p>This diagram is the structure of local node. PolkaVM works in “substrate-node” &amp; “eth-rpc” translate the difference of the protocol.</p><ul><li>Run the substrate node.</li><li>Run the eth-rpc node.</li></ul><p>Please pull the source-code of polkadot SDK like the tutorial. Please note that the source code of latest version does not work for this tutorial. So you make sure that you check out the properly commit version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*H3NA3Uc38oTmlg_TVPvV3w.png" /><figcaption><a href="https://contracts.polkadot.io/work-with-a-local-node">https://contracts.polkadot.io/work-with-a-local-node</a></figcaption></figure><p>Next is running the substrate node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JmSY8WhNIH_nH_au0-QT7Q.png" /><figcaption><a href="https://contracts.polkadot.io/work-with-a-local-node#build-and-run-the-kitchensink-node">https://contracts.polkadot.io/work-with-a-local-node#build-and-run-the-kitchensink-node</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eb01ixr7eoRjA79hJay96A.png" /></figure><p>If you succeed to run the substrate node, next is running the eth-rpc node.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JloerR-NqH6fmpw69OZUkA.png" /><figcaption><a href="https://contracts.polkadot.io/work-with-a-local-node#build-and-run-eth-rpc-proxy">https://contracts.polkadot.io/work-with-a-local-node#build-and-run-eth-rpc-proxy</a></figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXM42oo5DGZaPcqnIvmvsA.png" /></figure><p>Now, you can connect the local node by using URL(“http://localhost:8545).</p><h3>Implementing smart contract by using Rust</h3><p>As the official tutorial said…</p><blockquote>One of the benefits of using PolkaVM vs EVM is that you can write contracts in any language that compile down to RISC-V.</blockquote><p>Ok. So I introduce how to use Rust for PolkaVM smart contract by following <a href="https://contracts.polkadot.io/tutorial/rust">official tutorial</a>. The steps are as following…</p><ul><li>Download the contract template which is implemented by Rust.</li><li>Compile the contract template.</li><li>Deploy the contract.</li><li>Deploy the caller contract.</li></ul><h4>Download the contract template…</h4><p>First, download the contract template.</p><pre>git clone https://github.com/paritytech/rust-contract-template.git</pre><h4>Compile the contract template</h4><p>To compile this template, we use the “build.sh” which is included in this project. Please check the current directory.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0eOWtfQnVFzMJtToVRcibg.png" /></figure><pre>./build.sh</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TyWm2Bi-eLgipixWCHcGtg.png" /></figure><p>When compile is finished, you can find “contract.polkavm” file in your directory.</p><h4>Deploy the contract</h4><p>I use the local node to deploy contract.<br>Please create the another directory &amp; create the node project in this directory.</p><pre>npm init</pre><p>Next creating the new file, for example “deploy.js” &amp; paste the following source code.<br>Note: You have to copy &amp; paste “contract.polkavm” to the current directory.</p><pre>import { readFileSync } from &#39;fs&#39;<br>import { ethers } from &quot;ethers&quot;;<br><br>/// We specify the abi manually since the Rust compiler won&#39;t generate one for us<br>const abi = [&quot;constructor()&quot;, &quot;function fibonacci(uint) view returns(uint)&quot;];<br>const bytecode = readFileSync(&#39;contract.polkavm&#39;);<br><br>const privateKey = &quot;YOUR PRIVATE KEY&quot;;<br>const rpcUrl = &quot;http://localhost:8545&quot;;<br><br>const provider = new ethers.JsonRpcProvider(rpcUrl);<br>const wallet = new ethers.Wallet(privateKey, provider);<br>// Instantiate a contract factory.<br>const contractFactory = new ethers.ContractFactory(abi, bytecode, wallet)<br><br>try {<br>  const contract = await contractFactory.deploy();<br>  await contract.waitForDeployment()<br><br>  // Get the contract&#39;s address.<br>  const address = await contract.getAddress()<br>  console.log(`Contract deployed: ${address}`)<br>} catch (e) {<br>  console.error(&#39;Failed to deploy contract&#39;, e)<br>}</pre><p>Now the preparation of deploying the contract is ready.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d9am2a7mQbeqIIRAtFh3nA.png" /></figure><h4>Deploy the caller contract</h4><p>We need to deploy the caller contract. We use this contract for interacting Rust contract.</p><p>By using the remix, you have to create the caller contract file &amp; compile.<br>You can get the caller contract from <a href="https://github.com/paritytech/rust-contract-template/blob/master/call_from_sol.sol">here</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dHk2HVldshKL3Y8xiw1z0g.png" /></figure><p>You can call the Rust contract like as following. You need to set “contract address” which you deployed by using “deploy.js” to “rustLib”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lOquLjcFUwa5VBsa21Qi6g.png" /></figure><p>As of now, when I checked the Rust template, it seems we need to implement type conversion logic like as following. But maybe other templates or development tool will solve these things. At that time, we can implement the Rust contract easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gpacMNRvamgPO77J_QRuUg.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9cfa2d625652" width="1" height="1" alt=""><hr><p><a href="https://blog.blockmagnates.com/introduction-of-using-polkavm-2-9cfa2d625652">Introduction of using PolkaVM(2)</a> was originally published in <a href="https://blog.blockmagnates.com/">Block Magnates</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction of using PolkaVM]]></title>
            <link>https://realtakahashi-work.medium.com/introduction-of-using-polkavm-8eeece159681?source=rss-fb7e6197ea3------2</link>
            <guid isPermaLink="false">https://medium.com/p/8eeece159681</guid>
            <category><![CDATA[polkadot]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Realtakahashi Work]]></dc:creator>
            <pubDate>Mon, 23 Dec 2024 11:07:26 GMT</pubDate>
            <atom:updated>2025-01-05T09:17:45.517Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*96zArLIGFgwFzPVu1Rju6A.png" /></figure><h3>What is “PolkaVM”?</h3><p>According to official github, The explanation of PolkaVM is as following…</p><blockquote>PolkaVM is a general purpose user-level RISC-V based virtual machine.</blockquote><p>If taken literally, this virtual machine is a RISC-V-based virtual machine. However, to be honest, I am not particularly well-versed in this field, making it difficult for me to explain. Therefore, I asked ChatGPT, and I received the following explanation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZpU7gNlJkGcavCjS4h-qFg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Joc6yFQmBSVIL-tmGgrXIw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I_kOa-VBrboMslgR7XNBCw.png" /></figure><p>There are threads by developers on the Polkadot Forum, so anyone who wants to learn more about PolkaVM should refer to those.</p><p><a href="https://forum.polkadot.network/t/announcing-polkavm-a-new-risc-v-based-vm-for-smart-contracts-and-possibly-more/3811">Announcing PolkaVM - a new RISC-V based VM for smart contracts (and possibly more!)</a></p><p>Official github is here.<br><a href="https://github.com/paritytech/polkavm">https://github.com/paritytech/polkavm</a></p><p>What is more important to me is not the detailed specifications of this next-generation Ethereum-compatible VM, but the fact that it is already available for use. Following the published documentation, I will attempt to deploy smart contract using this VM.</p><h3>Using PolkaVM</h3><p>The other day, while browsing X, I noticed the following post from the official Parity Technologies account. From the link posted there, it seems that an environment where PolkaVM can be used has been made available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9t2A4d_3jbut_Eu-30pkzQ.png" /></figure><p>This is the site of PolkaVM.</p><p><a href="https://contracts.polkadot.io/">Intro | Contracts</a></p><p>In this case, I will present the results of testing the following two items from the above-mentioned documentation.</p><ul><li>Deploy Your First Contract</li><li>Work with a Local Node</li></ul><h4>Deploy Your First Contract</h4><p>This tutorial can be easily followed by anyone who has implemented EVM smart contracts using Remix, as the Parity team has provided a Remix environment specifically for PolkaVM.</p><p>The tutorial will proceed with the following steps:</p><ol><li>Add the Westend Asset Hub configuration to MetaMask.</li><li>Obtain testnet tokens from the Westend Asset Hub Faucet.</li><li>Access the dedicated Remix environment and deploy the Storage.sol contract to the PolkaVM on Westend Asset Hub.</li><li>Run the deployed contract.</li></ol><ul><li><a href="https://contracts.polkadot.io/connect-to-asset-hub">Connect to Asset Hub | Contracts</a></li><li><a href="https://contracts.polkadot.io/deploy-your-first-contract">Deploy Your First Contract | Contracts</a></li></ul><p>When I tried deploying a smart contract using the dedicated Remix, I was indeed able to deploy the contract to the PolkaVM on Westend Asset Hub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EOUEd1FoUPuVyjMMT99ehQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pt4N4IhF-qN7oMEEiyOeUw.png" /></figure><h4>Work with a Local Node</h4><p>Next, I will follow this tutorial to run the same node operating as the Westend Asset Hub in my own local environment. I will then attempt to connect to it from Remix and deploy a smart contract.</p><p><a href="https://contracts.polkadot.io/work-with-a-local-node">Work with a Local Node | Contracts</a></p><p>To state the result first, this does not work properly. It is likely that the branch or tag I used is incorrect, or there might be some other reason, but I have not investigated further. The following error was output in the node console:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*z9AyqJhZhDmt5376vMGElQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pko4GMmMr2TWoxXvoNMFpA.png" /></figure><p>When configuring localhost in MetaMask, the balance is recognized.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rKDL7NlANv6sTYAyKZeegw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iT0xNSw0kH_omv_OB0__Wg.png" /></figure><p><strong>2025/01/05 added.<br></strong>Now this tutorial woks well.Please use the specified commit version.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aBECM0EeXBkehhVpVOd0dA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iT0xNSw0kH_omv_OB0__Wg.png" /></figure><h3>Next Step</h3><p>As mentioned on this page, one of the major advantages of PolkaVM is the following:</p><blockquote>One of the benefits of using PolkaVM vs EVM is that you can write contracts in any language that compile down to RISC-V.</blockquote><p><a href="https://contracts.polkadot.io/tutorial/rust">Writing and Calling a Rust Contract | Contracts</a></p><p>As noted, the limitations encountered when implementing in Solidity could be resolved by using a higher-level language like Rust, making this a significant advantage. Next, I plan to use these tutorials to see if smart contracts I’ve previously implemented with ink! can also be implemented on PolkaVM.</p><p><a href="https://use.ink/how-it-works/">How it Works - Substrate | ink! documentation</a></p><p>As mentioned in the official GitHub comments, PolkaVM is still under development. However, I believe the potential of this virtual machine is immense. Not only does it enhance Polkadot’s interoperability, but as an EVM-compatible solution that addresses the weaknesses of the EVM, PolkaVM holds great promise, and I can’t help but have high expectations for it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8eeece159681" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>