<?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 Chung on Medium]]></title>
        <description><![CDATA[Stories by Chung on Medium]]></description>
        <link>https://medium.com/@nnkken?source=rss-c92a372ebafc------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*u87mWRnlMxzIULHWeU8B-Q.jpeg</url>
            <title>Stories by Chung on Medium</title>
            <link>https://medium.com/@nnkken?source=rss-c92a372ebafc------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 23:12:34 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@nnkken/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[LikeChain technical introduction]]></title>
            <link>https://medium.com/likecoin/likechain-technical-introduction-2728fbca649a?source=rss-c92a372ebafc------2</link>
            <guid isPermaLink="false">https://medium.com/p/2728fbca649a</guid>
            <category><![CDATA[likechain]]></category>
            <category><![CDATA[tendermint]]></category>
            <category><![CDATA[likecoin]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[english]]></category>
            <dc:creator><![CDATA[Chung]]></dc:creator>
            <pubDate>Fri, 15 Mar 2019 03:33:39 GMT</pubDate>
            <atom:updated>2025-03-06T11:00:19.119Z</atom:updated>
            <content:encoded><![CDATA[<h3>LikeCoin chain KaiTak Technical Intro</h3><h4>The development of the first version of LikeCoin chain, codenamed <em>KaiTak</em>, is almost done. This article will introduce the technical components and principles behind LikeCoin chain.</h4><h3>Features</h3><p>LikeCoin chain <em>KaiTak </em>will be a consortium chain run by a few cooperating organizations, including but not limited to <a href="https://blocksq.com/"><strong>BlockSquare</strong></a>, <a href="https://www.forbole.com/"><strong>Forbole</strong></a>, <a href="https://matters.news/"><strong>Matters</strong></a>, <a href="https://gianthouse.io/"><strong>Gianthouse</strong></a>, and <a href="https://like.co/"><strong>LikeCoin Foundation</strong></a>. In the future, we may further develop it into a public chain, but for now we would like to focus on the product features.</p><p>LikeCoin chain <em>KaiTak </em>will support basic token features, including:</p><ul><li>LikeCoin deposit from Ethereum to LikeCoin chain</li><li>LikeCoin withdrawal from LikeCoin chain to Ethereum</li><li>Transferring LikeCoin within LikeCoin chain</li><li>Querying LikeCoin chain account info</li><li>Atomic swap, which is used for accelerating withdrawals</li></ul><h3>Architecture</h3><p>A LikeCoin chain node is constructed by a few components:</p><ul><li><strong>Tendermint</strong> blockchain engine</li><li><strong>Application BlockChain Interface Proxy</strong> (ABCI proxy) which processes actual application logic</li><li><strong>IAVL tree</strong> as storage engine</li><li>Auxiliary services processing deposit and withdrawal</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hH6sJkEmV7crkTKlvSacbg.jpeg" /></figure><h4>Tendermint</h4><p><a href="https://tendermint.com/">Tendermint</a> is a blockchain engine, providing <a href="https://en.wikipedia.org/wiki/Byzantine_fault"><strong>Byzantine fault tolerance</strong> </a>consensus. It collects transactions into blocks, then the blockchain validators can vote to agree on the content of the block. In this way, an append-only ordered set of transactions is generated.</p><h4>Application BlockChain Interface (ABCI) Proxy</h4><p>To map the ordered set of transactions into actual state (e.g. account balances), a component which understands the application logic of the blockchain is needed.</p><p>In Tendermint, this is done by ABCI Proxy. After confirming transactions, the Tendermint engine calls the ABCI Proxy with transactions and block metadata, and the ABCI Proxy is responsible for aggregating the transactions into application state.</p><p>Since the state is completely defined by the ABCI Proxy, the ABCI Proxy is also responsible for verifying transactions based on the state before it actually enters the block for voting (e.g. checking the account balance for a Transfer transaction) and querying application state (e.g. querying account balance).</p><h4>IAVL Tree</h4><p>In order to verify that all nodes have consensus on exactly the same application state, the Tendermint engine needs to gain the application hash as a summary of the current state from ABCI Proxy. The author of the ABCI Proxy can generate the application hash by any method according to the application&#39;s own logic and storage organization.</p><p>In LikeCoin chain, we use the <a href="https://github.com/tendermint/iavl/">IAVL tree</a> library provided by the Tendermint team as the storage engine. IAVL tree is a <a href="https://en.wikipedia.org/wiki/Merkle_tree">Merklized</a> <a href="https://en.wikipedia.org/wiki/AVL_tree">AVL tree</a> with snapshot function. IAVL tree can efficiently add, update and remove tree nodes, compute the root hash of the whole tree, generate proof of existence of tree nodes, and retrieve previous tree snapshots. In LikeCoin chain, the root hash is used as application hash, while the proof generation and snapshot features are useful in LikeCoin chain-Ethereum interaction.</p><h4>Services</h4><p>In order to enable interaction between LikeCoin chain and Ethereum (i.e. to transfer LikeCoin between two chains), some components outside the chain are needed to pass messages between the chains.</p><p>There are two major services:</p><ul><li>Deposit service, which monitors Ethereum and passes relevant messages (deposit events) onto LikeCoin chain by LikeCoin chain Deposit transactions</li><li>Withdraw service, which submits application hash onto Ethereum periodically through Ethereum smart contract calls</li></ul><h3>LikeCoin chain-Ethereum interaction</h3><p>We want users to be able to transfer LikeCoin between LikeCoin chain and Ethereum. While doing so, we must ensure that the total number of LikeCoin usable in the two chains remains constant.</p><p>This is done by locking LikeCoin in a special smart contract (Relay) on Ethereum and mint LikeCoin from LikeCoin chain. The Relay ensures that the LikeCoin on Ethereum are locked, until there is a message from LikeCoin chain indicating that certain amount of LikeCoin are burnt on LikeCoin chain. When such a message comes, the Relay releases the same amount of LikeCoin from Ethereum, making the total number of LikeCoin usable constant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ANtoGPTJKSdGJq9D0GQ-WQ.png" /></figure><h4>LikeCoin from Ethereum to LikeCoin chain (deposit)</h4><p>When LikeCoin are transferred into the Relay contract, there will be ERC-20 Transfer events emitted from the LikeCoin ERC-20 token contract on Ethereum.</p><p>On LikeCoin chain, there will be a group called deposit approvers, who are responsible for oraclizing LikeCoin chain the LikeCoin Transfer events to the Relay contract on Ethereum. The deposit approvers will run the deposit service, which captures the LikeCoin Transfer events and aggregates them into Deposit transactions on LikeCoin chain. When enough number of deposit approvers approved the same deposit events, LikeCoin will be minted and given to the addresses accordingly on LikeCoin chain.</p><h4>LikeCoin from LikeCoin chain to Ethereum (withdraw)</h4><p>When users on LikeCoin chain want to withdraw their LikeCoin onto Ethereum, they do so by sending a Withdraw transaction on LikeCoin chain, which burns the LikeCoin on LikeCoin chain and leaves a withdraw record in the IAVL tree. The withdraw record will be reflected in the Merkle root of the IAVL tree, which is the application hash in the block metadata.</p><p>Then, when the withdraw service is waken (or anyone does this manually), the application hash with the block height will be committed on the Relay contract. The Relay contract will check that the information committed is indeed signed by enough number of LikeCoin chain validators. Then it will accept the application hash as the application state summary of LikeCoin chain on the given block height.</p><p>After that, the withdraw service will query the Merkle proofs of the withdraw records in the IAVL tree and submits them onto the Relay contract. The Relay contract will verify that the withdraw are not yet executed on the contract, and the proof are responsible to the previously committed application hash.</p><p>After verification, the Relay contract will unlock the LikeCoin and give it to the address according to the submitted withdraw record.</p><h4>Atomic swap</h4><p>Committing application hash onto the Relay contract requires one to collect all signatures of a block, and the Relay contract needs to verify all committed signatures. This is costly, therefore is done infrequently (e.g. once per day), making withdrawals slow.</p><p>To solve this problem, LikeCoin chain supports another form of withdraw through <a href="https://en.bitcoin.it/wiki/Atomic_swap">atomic swap</a> and <a href="https://en.bitcoin.it/wiki/Hash_Time_Locked_Contracts">HTLC contract</a> on Ethereum.</p><p>The HTLC contract is a smart contract which can lock LikeCoin within a certain period of time. When LikeCoin is transferred into the contract, the sender can set a receiver of the LikeCoin transferred, a commitment which is a 32-bytes hash, and a expiry time of this transfer.</p><p>To get the LikeCoin, the receiver must submit the pre-image of the commitment hash before the expiry time, i.e. find out secret such that SHA256(secret) == commitment. Since SHA-256 is (currently) a secure cryptographic hash function, only the original sender can tell the receiver what the secret is.</p><p>To get the secret from the sender, the receiver submits a HashedTransfer transaction onto LikeCoin chain, with the same claiming condition to the HTLC contract on Ethereum. To get the LikeCoin on LikeCoin chain, the original sender needs to submit the secret for the commitment on LikeCoin chain. When the original sender does so, the secret will be publicly known by anyone who are monitoring ClaimHashedTransfer transactions on LikeCoin chain. Hence the original receiver can get the secret of the commitment and unlock the LikeCoin in the HTLC contract on Ethereum.</p><h3>Future plans</h3><p>As you can see, LikeCoin chain <em>KaiTak </em>only supports very basic token features. It is currently used as a scalability solution of the LikeCoin token.</p><p>In the future versions, codenamed <em>Sheungwan</em> and <em>Fotan</em>, we will improve the current functionality of LikeCoin chain, and also add new features.</p><h4>Improvements</h4><p>This includes better processing on transaction fees, introducing the concept of gas, and making the chain more public.</p><h4>New features</h4><p>This includes features listed in the <a href="https://like.co/in/whitepaper">whitepaper</a>, mainly the recording of content metadata on chain, which enables utilizing LikeCoin chain to reward contents through LikeCoin.</p><pre>Releated links: <a href="https://medium.com/likecoin/introduction-to-likechain-731e388b0079">Intro to LikeCoin chain</a> | <a href="https://medium.com/likecoin/likecoin-transfer-delegation-df585d37b43a">Transfer Delegation</a></pre><pre>Civic Liker is a movement to reward open contents. For the cost of a cup of coffee, you become a Civic Liker. Whatever you Like will then be turned into a tangible reward to creators.</pre><h3>Don’t miss out. Stay informed on LikeCoin</h3><ul><li>Website <a href="https://like.co/">like.co</a></li><li>Medium <a href="https://www.youtube.com/redirect?q=https%3A%2F%2Fmedium.com%2Flikecoin%2Fen%2Fhome&amp;redir_token=0aDDYK7ufBWhHkyY-UczOpE2aAR8MTUyOTY0OTc4MEAxNTI5NTYzMzgw&amp;v=nu0ejonIMCw&amp;event=video_description">medium.com/likecoin</a></li><li>Telegram <a href="https://www.youtube.com/redirect?q=https%3A%2F%2Ft.me%2Flikecoin&amp;redir_token=0aDDYK7ufBWhHkyY-UczOpE2aAR8MTUyOTY0OTc4MEAxNTI5NTYzMzgw&amp;v=nu0ejonIMCw&amp;event=video_description">t.me/likecoin</a></li><li>Facebook <a href="https://www.facebook.com/Liker.Land/">fb.com/LikeCoin.Foundation</a></li><li>Twitter <a href="https://x.com/likecoin">twitter.com/likecoin</a></li><li>YouTube <a href="https://www.youtube.com/c/LikeCoin">youtube.com/c/LikeCoin</a></li><li>Github <a href="https://www.github.com/likecoin">github.com/likecoin</a></li><li>Meetup <a href="https://meetup.com/likecoin">meetup.com/likecoin</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fchungwu%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fchungwu&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Flikecoin-foundation.appspot.com%2Flikecoin_store_user_chungwu_main%3FGoogleAccessId%3Dfirebase-adminsdk-eyzut%40likecoin-foundation.iam.gserviceaccount.com%26Expires%3D2430432000%26Signature%3DhTNiynWAu7t5XFx3yoyYQrepnveEYOXZ7tRSsnuucqKI1jaAHWlmkrfnw1XuMvkHCL7hzxIW7hXBttITp0FbOGbdL%252BeoerKn4DusjCvwCu56xJPQ3cJWkTJYN2ew2zsAxPwlnD43CCHP1KIRfqKq7tdw3T2iNMUdwxtGJUJqbExUxDszOZfZVZt%252BvLwyM5%252FJyoejilosxJPtq1ViZ%252F%252FkNfoSdriRrghiQvkpD7r%252Ffi5QBkluwmgH8uqNT6spsnKs%252FtLNEmxDZ0XSArC9MqnlpRLTGgCTPMnKS9POY7fsGZlXOc8STYG5ntfMcwd43VDQXbEiufirTHTZe7rImEWK8A%253D%253D&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/e80a2bd8f1bc953d1ac8fac759228c88/href">https://medium.com/media/e80a2bd8f1bc953d1ac8fac759228c88/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2728fbca649a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/likecoin/likechain-technical-introduction-2728fbca649a">LikeChain technical introduction</a> was originally published in <a href="https://medium.com/likecoin">LikeCoin — the DeBook protocol</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[為甚麼新的區塊鏈項目都傾向選擇 PoS 多於 PoW 呢？]]></title>
            <link>https://medium.com/likecoin/%E7%82%BA%E7%94%9A%E9%BA%BC%E6%96%B0%E7%9A%84%E5%8D%80%E5%A1%8A%E9%8F%88%E9%A0%85%E7%9B%AE%E9%83%BD%E5%82%BE%E5%90%91%E9%81%B8%E6%93%87-pos-%E5%A4%9A%E6%96%BC-pow-%E5%91%A2-ded0d660b8f2?source=rss-c92a372ebafc------2</link>
            <guid isPermaLink="false">https://medium.com/p/ded0d660b8f2</guid>
            <category><![CDATA[中文]]></category>
            <category><![CDATA[proof-of-work]]></category>
            <category><![CDATA[likecoin]]></category>
            <category><![CDATA[proof-of-stake]]></category>
            <category><![CDATA[chinese]]></category>
            <dc:creator><![CDATA[Chung]]></dc:creator>
            <pubDate>Wed, 05 Sep 2018 04:22:47 GMT</pubDate>
            <atom:updated>2025-03-06T11:33:59.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wuGAtek3Om7hYbbC24IHrg.jpeg" /><figcaption>由 Christopher Burns 拍攝放於Unsplash</figcaption></figure><p>如果你有留意區塊鏈項目的趨勢，你應會發現大部份新的公共區塊鏈項目，都是採用權益證明（PoS，Proof of Stake）為它們的共識機制: 如 Cosmos、Cardano、Dfinity、Algorand等。更重要的是，以太坊正計劃由工作量證明（PoW，Proof of Work）轉換成 PoS。PoS 究竟比 PoW 有甚麼優勝之處呢？</p><h4>能源效益</h4><p>最明顯的好處是能源效益。<br>PoW 極耗費能源。事實上，這是 PoW 天生的特性: 為了增加挖礦成功的機會，礦工們會不斷增加算力去互相競爭，導致整個區塊鏈網絡的能源消耗隨時間不斷增加。<br>看看<a href="https://digiconomist.net/bitcoin-energy-consumption">最近的統計</a>，作者執筆時比特幣每年消耗 73.04 TWh，這是全球用電量的 0.33%。每宗比特幣的交易平均消耗 916 KWh，這足夠 30.95 個美國家庭整天的用電量。<br>（仔細想想，相比起用電量，比特幣的交易費其實是非常便宜的。我們可以這樣說，比特幣的 “交易費對電費比” 比VISA低得多，雖然這說法沒有甚麼意義。）</p><h4>對新項目有較好的安全性</h4><p>PoW 假設了惡意用家的計算機能力不及整個網絡的計算機能力。在成熟的項目如比特幣，這假設可成立，但在新項目卻不能成立。<br>在不久之前，比特幣的分叉比特幣黃金，就<a href="http://fortune.com/2018/05/29/bitcoin-gold-hack/">受到了 51% 攻擊</a>，導致了交易所損失了最少一千八百萬美元。<br><a href="https://www.crypto51.app/">這個網站</a>展示了不同的區塊鏈受到 51% 攻擊的成本與機會。只要數百（甚至十多）美元便可租用算力去攻擊某些區塊鏈網絡一小時。在一些新開始的項目，幾乎沒人在採礦，要攻擊它何其容易呢？<br>一些倚靠 PoW 保護的項目設有附加機制去防止攻擊。例如 IOTA，它是沒有區塊，也沒有鏈的區塊鏈，它使用了交易（不是區塊）去確認其它交易，這是要令到交易量大增時，網絡有擴展性，免去區塊容量大小的限制。但是由於交易確認與整個網絡的安全都是倚靠於 PoW，攻擊者有可能用大量的算力去進行雙重花費（即同一個幣，使用兩次）。所以 IOTA 現在有一個協調者的職責，由 IOTA 基金會負責執行，設立檢查站以防止雙重花費，詳細內容請參閱 <a href="https://www.iota.org/get-started/faqs">IOTA FAQ</a>。</p><p><strong>由此可見，靠 PoW 保護的區塊鏈項目的初期是很容易受到攻擊的。那麼 PoS 又如何呢?</strong></p><p>PoS 的共識機制倚靠權益，而不是算力。不同於算力，權益的一個重要特性是它已內存於區塊鏈，這使到設計一個防止「雙花」的機制變得容易。例如，項目團隊能夠控制幣的分配，使到攻擊者很難得到大多數的權益，即很難執行 51% 攻擊。<br>此外，PoS 比 PoW 提供更加多的進階特性去抑制攻擊，例如「完結性」的特性令「雙花」不可能發生，因為其它網絡上的節點知道，當一個區塊完結了，是不能回復的。就算攻擊者能夠持有大部份權益，並能控制整個網絡，他/她的攻擊最多只能夠過濾交易或關閉網絡，但不能夠做到不一致的狀態如雙重花費。</p><h4>去中心化</h4><p>PoW 利用運算力來決定哪個區塊是有效的這種做法，很受規模效益所影響；即是你擁有越多算力，每一單位的算力便越便宜。<br>當你的礦池夠大，你便可以選擇把礦池搬近發電站，使供電傳輸成本降低。你也能夠選擇電力比較便宜的發電站，如水力發電站。你甚至能設計 ASIC 晶片，專門去挖某一隻幣。大規模的礦池能夠負擔得起設計晶片的成本。<br>規模經濟鼓勵人們建立或投資於礦池，而不是運行自己的採礦節點，這會大大損害了區塊鏈去中心化的特性。<br>反之，PoS 對算力的要求大大降低了。相對於算力，更重要的是權益，於是對規模效益需求的誘因大大降低了。購買大量的權益可能會得益，但相對於電力和算力，得益絶對比較少。</p><h4>新特性</h4><p>PoS 令區塊鏈項目有新的特性。<br>例如，因為 PoW 的或然性的不見了，區塊鏈現可提供完結性: 當區塊一旦被驗證者確認，便不能回復。這容許外來者很容易地驗證資料，使到以下技術可行: sharding（分片）、跨鏈通訊、和更輕量級的客戶端。<br>另一個方向是容讓區塊鏈自己去決定下一個區塊產生者。跟算力不同，權益是區塊鏈內在的特性，即區塊鏈已知道權益分布並可據此作出決定。Algorand便是一個利用此特性的區塊鏈項目，加上其它技術如可驗證隨機函數，利用自己本身設定的區塊鏈邏輯，去抽樣選出下一組檢驗者。PoS 是一個令人興奮的實驗場地，它能夠為區塊鏈技術帶來很多新的特性。</p><h4>總結</h4><p>PoS 有更高的安全性，去中心化特性，以及能帶來更多區塊鏈技術的新特性。當 PoS 項目變得更成熟，區塊鏈技術會變得更實用，最後變成人類生活必需的一部份。</p><pre><strong>相關鏈結：</strong> <a href="https://medium.com/likecoin/introduction-to-likechain-731e388b0079">LikeChain 介紹（英）</a>｜<a href="https://medium.com/likecoin/monthly-hightlights-201807-c7b34a2493fd">7月工作重點</a>｜<a href="https://medium.com/likecoin/%E8%BD%89%E5%8C%96-%E9%BB%9E%E8%AE%9A-%E7%82%BA%E6%94%B6%E5%85%A5%E7%9A%84wordpress-%E5%A4%96%E6%8E%9B-95c3111296d4">WordPress 外掛簡介</a></pre><pre><strong>有關 LikeCoin</strong><br>LikeCoin 為一區塊鏈協議，透過重新演繹的 LikeButton 和獨有的 LikeRank 算法，追蹤內容足跡，從而回饋協作創作中的所有參與者。這個機制稱為創造力證明（Proof of Creativity）。</pre><h3>緊貼 LikeCoin 消息，加入我們的社群</h3><ul><li>website <a href="https://like.co/">like.co</a></li><li>Medium <a href="https://medium.com/likecoin/zh/">medium.com/likecoin/zh/</a></li><li>Facebook <a href="https://www.facebook.com/Liker.Land/">fb.com/LikeCoin.Foundation</a> , <a href="https://www.facebook.com/groups/likecoin">fb.com/groups/likecoin</a></li><li>Telegram <a href="https://t.me/likecoin">t.me/likecoin</a></li><li>Twitter <a href="https://x.com/likecoin">twitter.com/likecoin</a></li><li>Youtube <a href="https://youtube.com/c/LikeCoin">youtube.com/c/LikeCoin</a></li><li>Github <a href="http://github.com/likecoin">github.com/likecoin</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fchungwu%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fchungwu&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Flikecoin-foundation.appspot.com%2Flikecoin_store_user_chungwu_main%3FGoogleAccessId%3Dfirebase-adminsdk-eyzut%40likecoin-foundation.iam.gserviceaccount.com%26Expires%3D2430432000%26Signature%3DhTNiynWAu7t5XFx3yoyYQrepnveEYOXZ7tRSsnuucqKI1jaAHWlmkrfnw1XuMvkHCL7hzxIW7hXBttITp0FbOGbdL%252BeoerKn4DusjCvwCu56xJPQ3cJWkTJYN2ew2zsAxPwlnD43CCHP1KIRfqKq7tdw3T2iNMUdwxtGJUJqbExUxDszOZfZVZt%252BvLwyM5%252FJyoejilosxJPtq1ViZ%252F%252FkNfoSdriRrghiQvkpD7r%252Ffi5QBkluwmgH8uqNT6spsnKs%252FtLNEmxDZ0XSArC9MqnlpRLTGgCTPMnKS9POY7fsGZlXOc8STYG5ntfMcwd43VDQXbEiufirTHTZe7rImEWK8A%253D%253D&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/e80a2bd8f1bc953d1ac8fac759228c88/href">https://medium.com/media/e80a2bd8f1bc953d1ac8fac759228c88/href</a></iframe><p>翻譯：kelvincchou</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Flike.co%2Fin%2Fembed%2Fkelvincchou%2F&amp;url=https%3A%2F%2Fwidget.like.co%2Fkelvincchou&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Flikecoin-foundation.appspot.com%2Flikecoin_store_user_kelvincchou_main%3FGoogleAccessId%3Dfirebase-adminsdk-eyzut%2540likecoin-foundation.iam.gserviceaccount.com%26Expires%3D2430432000%26Signature%3DedW4QgKGFRm036QxqoK807nsUR1ziDSXPNib4N6riFEOXv2onYrBmzqRFSAynKXYfV2HdzlzVhksgODHGpti3DAJ9Wym08w8XC0lXFu9ZCUikEvv1YrLAyqokJNw7TLtNtkqfXL0r22YmkhRxcgVVm%252BJDs9fwGdHgGAvUuv7SK%252FszlcJ3aJTlNkBrpQ%252BCL8OZS5IRLUueofekTWczvrJGEcItryPbewrJ0JmDkbyHnqqZkkUnn4boVf9ntTkqJAfhWwiEFCSJYFcnOgMaJVKJkuZ5WFmYkwj86lY5pmjnxGFigpNoidwZ%252F2WMTpBhB9Pp6msvf9a20zHaF%252FuJbgGmQ%253D%253D&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="200" frameborder="0" scrolling="no"><a href="https://medium.com/media/a24a843b8e04d2c707e44eb30c9904e4/href">https://medium.com/media/a24a843b8e04d2c707e44eb30c9904e4/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ded0d660b8f2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/likecoin/%E7%82%BA%E7%94%9A%E9%BA%BC%E6%96%B0%E7%9A%84%E5%8D%80%E5%A1%8A%E9%8F%88%E9%A0%85%E7%9B%AE%E9%83%BD%E5%82%BE%E5%90%91%E9%81%B8%E6%93%87-pos-%E5%A4%9A%E6%96%BC-pow-%E5%91%A2-ded0d660b8f2">為甚麼新的區塊鏈項目都傾向選擇 PoS 多於 PoW 呢？</a> was originally published in <a href="https://medium.com/likecoin">LikeCoin — the DeBook protocol</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why do new blockchain projects prefer PoS over PoW?]]></title>
            <link>https://medium.com/likecoin/why-do-new-blockchain-projects-prefer-pos-over-pow-249fb594cdd8?source=rss-c92a372ebafc------2</link>
            <guid isPermaLink="false">https://medium.com/p/249fb594cdd8</guid>
            <category><![CDATA[english]]></category>
            <category><![CDATA[depub]]></category>
            <category><![CDATA[cosmos]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[likecoin]]></category>
            <dc:creator><![CDATA[Chung]]></dc:creator>
            <pubDate>Mon, 03 Sep 2018 09:50:57 GMT</pubDate>
            <atom:updated>2025-03-06T11:34:44.251Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mr9sOXJCU1ALf-Op7BJhvQ.jpeg" /><figcaption>Photo by Christopher Burns on Unsplash</figcaption></figure><p>If you have been following the trend of blockchain technology, you will notice that most of the new public blockchain projects are using PoS as their consensus mechanism: Cosmos, Cardano, Dfinity, Algorand, etc. Not to mention that Ethereum is turning from PoW to PoS.</p><p>So what is the advantage of using PoS over PoW?</p><h4>Energy efficiency</h4><p>The most obvious reason is energy efficiency.</p><p>PoW is extremely energy inefficient. In fact, this is built inside the nature of PoW: it provides incentives for miners to increase their computation power to compete with others, therefore the energy consumption of the whole network must rise over time.</p><p>Take a look at <a href="https://digiconomist.net/bitcoin-energy-consumption">some statistics</a>. At the time of writing, Bitcoin is consuming 73.04 TWh per year, which is 0.33% of the world’s electricity consumption. Each Bitcoin transaction on average consumes <br>916 KWh, which could power 30.95 U.S. households for a whole day!</p><p>(If we think about this fact, the transaction fee is actually quite cheap compared to the energy consumed. We can claim that the “actual cost per energy consumption” for Bitcoin transactions is much lower than for Visa, though this measure is quite meaningless)</p><h4>Better security for projects in beginning stage</h4><p>PoW relies on the assumption that the computation power of a malicious user cannot compete with the computation power of the rest of the network. This assumption makes sense for matured projects like Bitcoin, but not quite true for new projects.</p><p>A while ago, Bitcoin Gold, which is a fork of Bitcoin, was <a href="http://fortune.com/2018/05/29/bitcoin-gold-hack/">being 51%-attacked</a>, which caused exchanges losing at least 18 million USD.</p><p>There is <a href="https://www.crypto51.app/">a website</a> showing the cost and chance of 51%-attacking different blockchains. For some blockchains, it only costs as cheap as a few hundred (or even dozen) USD for renting computation powers to attack the network for an hour. For a newly started project, which almost nobody is mining on, how vulnerable will it be?</p><p>To prevent attacks, some projects relying on PoW protects the chain by extra mechanism. For example, IOTA, the “blockchain without blocks or chains”, is a project which utilizes the transactions (not blocks) confirming other transactions, to make the network scalable when the number of transactions increases. However, since the confirmation (and therefore the security of the whole network) relies on transactions doing PoW, it is possible for attackers with huge computation power to perform double spending. Hence, IOTA is currently operating with a role called Coordinators which are run by the IOTA foundation to set up checkpoints and prevent double spending. See the <a href="https://www.iota.org/get-started/faqs">IOTA FAQ</a> for more details.</p><p><strong>As you can see, blockchain projects relying on PoW are vulnerable in their starting stage. What about PoS?</strong></p><p>PoS relies on stake instead of computation power for consensus judgement. An important property about stake is that unlike computation power, stake is something “inside” the blockchain. This means it is easier to design mechanisms to lower the risk of double spending attack. For instance, the project team can control the distribution of the coins, making it difficult for attackers to get a large number of stake.</p><p>Also, in PoS, the blockchain can introduce more advanced features than in PoW, and utilize these features to disincentivize attacks. For instance, the finality feature makes double spending impossible, since the other nodes on the network knows that once a block is final, it won’t be reverted. Even if the attacker owns a huge amount of stake and takes control of the network, he / she could only attack the network by filtering transactions or shutting down the network, but not making inconsistent state like double spending.</p><h4>Decentralization</h4><p>Computation power, which PoW uses to determine which block is valid, has a great degree of economy of scale. That means the more computation power you own, the cheaper each unit of computation power will be.</p><p>If your mining farm is large, you can build it near power stations to reduce the cost of electric power transmission. You can choose a power station with lower power cost, say a hydroelectric power plant. You can even design an ASIC chip specifically for the coin you mine. The cost of designing the chip will be spread among the large scale of the mining farm.</p><p>The economy of scale encourages people to build or invest into mining farms instead of running mining node themselves. This hurts decentralization.</p><p>In PoS, the need for computation power is greatly decreased. The main resource needed is stake, which has much less effects of economy of scale compared to computation power. You may get some advantage for buying a larger amount of stake, but definitely much less than the advantage in the case of electric power and computation power.</p><h4>New features</h4><p>PoS allows blockchain projects to have new features.</p><p>For example, since the probabilistic PoW is gone, the blockchain can now offer finality, i.e. once the block is confirmed by validators, it will never be reverted. This allows outsiders to validate blockchain data easily, which brings possibilities for features like sharding, cross-chain communication and more light-weight clients.</p><p>Another direction is to allow the blockchain itself to determine the next block producers. Unlike computation power, stake is an attribute inside the blockchain, which means that the blockchain knows about it and can make decisions according to it. Algorand is a blockchain project which utilizes this property, together with techniques like verifiable random functions, to sample the next validator set right inside the blockchain logic. These show that PoS is an exciting experiment field which could bring many new features into blockchain technology.</p><h4>Conclusion</h4><p>PoS is bringing higher level of security, decentralization and more features to blockchain technology. As PoS projects becoming more mature, blockchain technology will be more usable, finally turns into an essential part in human life.</p><pre><strong>Related links：</strong><a href="https://medium.com/likecoin/introduction-to-likechain-731e388b0079">Introduction to LikeChain</a> |<strong> </strong><a href="https://medium.com/likecoin/likecoin-transfer-delegation-df585d37b43a">LikeCoin transfer delegation</a><strong> </strong>| <a href="https://medium.com/likecoin/how-to-write-a-dapp-352d3316b6cf">How to write a DApp</a></pre><pre><strong>About LikeCoin</strong><br>LikeCoin is a protocol on blockchain. With a reinvented Like button and our unique LikeRank algorithm, we trace content footprint and reward content creators by Proof of Creativity mechanism.</pre><h3>Don’t be missed out. Stay informed on LikeCoin.</h3><ul><li>Website <a href="https://like.co/">like.co</a></li><li>Medium <a href="https://www.youtube.com/redirect?q=https%3A%2F%2Fmedium.com%2Flikecoin%2Fen%2Fhome&amp;redir_token=0aDDYK7ufBWhHkyY-UczOpE2aAR8MTUyOTY0OTc4MEAxNTI5NTYzMzgw&amp;v=nu0ejonIMCw&amp;event=video_description">medium.com/likecoin</a></li><li>Telegram <a href="https://www.youtube.com/redirect?q=https%3A%2F%2Ft.me%2Flikecoin&amp;redir_token=0aDDYK7ufBWhHkyY-UczOpE2aAR8MTUyOTY0OTc4MEAxNTI5NTYzMzgw&amp;v=nu0ejonIMCw&amp;event=video_description">t.me/likecoin</a></li><li>Facebook <a href="https://www.facebook.com/Liker.Land/">fb.com/LikeCoin.Foundation</a></li><li>Twitter <a href="https://x.com/likecoin">twitter.com/likecoin</a></li><li>YouTube <a href="https://www.youtube.com/c/LikeCoin">youtube.com/c/LikeCoin</a></li><li>Github <a href="https://www.github.com/likecoin">github.com/likecoin</a></li></ul><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fbutton.like.co%2Fin%2Fembed%2Fchungwu%2Fbutton%2F&amp;url=https%3A%2F%2Fbutton.like.co%2Fchungwu&amp;image=https%3A%2F%2Fstorage.googleapis.com%2Flikecoin-foundation.appspot.com%2Flikecoin_store_user_chungwu_main%3FGoogleAccessId%3Dfirebase-adminsdk-eyzut%40likecoin-foundation.iam.gserviceaccount.com%26Expires%3D2430432000%26Signature%3DhTNiynWAu7t5XFx3yoyYQrepnveEYOXZ7tRSsnuucqKI1jaAHWlmkrfnw1XuMvkHCL7hzxIW7hXBttITp0FbOGbdL%252BeoerKn4DusjCvwCu56xJPQ3cJWkTJYN2ew2zsAxPwlnD43CCHP1KIRfqKq7tdw3T2iNMUdwxtGJUJqbExUxDszOZfZVZt%252BvLwyM5%252FJyoejilosxJPtq1ViZ%252F%252FkNfoSdriRrghiQvkpD7r%252Ffi5QBkluwmgH8uqNT6spsnKs%252FtLNEmxDZ0XSArC9MqnlpRLTGgCTPMnKS9POY7fsGZlXOc8STYG5ntfMcwd43VDQXbEiufirTHTZe7rImEWK8A%253D%253D&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=like" width="485" height="212" frameborder="0" scrolling="no"><a href="https://medium.com/media/e80a2bd8f1bc953d1ac8fac759228c88/href">https://medium.com/media/e80a2bd8f1bc953d1ac8fac759228c88/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=249fb594cdd8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/likecoin/why-do-new-blockchain-projects-prefer-pos-over-pow-249fb594cdd8">Why do new blockchain projects prefer PoS over PoW?</a> was originally published in <a href="https://medium.com/likecoin">LikeCoin — the DeBook protocol</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to write a DApp]]></title>
            <link>https://medium.com/likecoin/how-to-write-a-dapp-352d3316b6cf?source=rss-c92a372ebafc------2</link>
            <guid isPermaLink="false">https://medium.com/p/352d3316b6cf</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[likecoin]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[english]]></category>
            <dc:creator><![CDATA[Chung]]></dc:creator>
            <pubDate>Thu, 28 Jun 2018 10:12:42 GMT</pubDate>
            <atom:updated>2025-03-06T12:26:28.805Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KH6AV9zwPBj2iK18jW_vQ.jpeg" /></figure><h4>Sharing at HKOSCon 2018 by LikeCoin Foundation</h4><p>DApp, or decentralized application, is a new form of application. In this talk, I introduced what DApp is, how it works and the brief development flow of a DApp on Ethereum, with a simple voting application as example.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWmPNapXj1Ig%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWmPNapXj1Ig&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWmPNapXj1Ig%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f43465b94eb231533a1014c7cc8e6fe5/href">https://medium.com/media/f43465b94eb231533a1014c7cc8e6fe5/href</a></iframe><h4>Slides</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2F10c4YjSXjcPxAC&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fkinko2%2Fhkos-2018&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fhkos2018-180627082757-thumbnail-4.jpg%3Fcb%3D1530088194&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4858c5542c163b9db398de261d08c26/href">https://medium.com/media/c4858c5542c163b9db398de261d08c26/href</a></iframe><h4>Demo code repo</h4><ul><li><a href="https://github.com/likecoin/hkos2018-dapp-web">https://github.com/likecoin/hkos2018-dapp-web</a></li></ul><h4>Reference</h4><ul><li><a href="http://web3js.readthedocs.io/en/1.0/index.html">http://web3js.readthedocs.io/en/1.0/index.html</a></li><li><a href="http://solidity.readthedocs.io/en/v0.4.24/">http://solidity.readthedocs.io/en/v0.4.24/</a></li></ul><h4>Don’t be missed out. Stay informed on LikeCoin —</h4><ul><li>Website <a href="https://like.co/">like.co</a></li><li>Medium <a href="https://www.youtube.com/redirect?q=https%3A%2F%2Fmedium.com%2Flikecoin%2Fen%2Fhome&amp;redir_token=0aDDYK7ufBWhHkyY-UczOpE2aAR8MTUyOTY0OTc4MEAxNTI5NTYzMzgw&amp;v=nu0ejonIMCw&amp;event=video_description">medium.com/likecoin</a></li><li>Telegram <a href="https://www.youtube.com/redirect?q=https%3A%2F%2Ft.me%2Flikecoin&amp;redir_token=0aDDYK7ufBWhHkyY-UczOpE2aAR8MTUyOTY0OTc4MEAxNTI5NTYzMzgw&amp;v=nu0ejonIMCw&amp;event=video_description">t.me/likecoin</a></li><li>Facebook <a href="https://www.facebook.com/Liker.Land/">fb.com/LikeCoin.Foundation</a></li><li>Twitter <a href="https://x.com/likecoin">twitter.com/likecoin</a></li><li>YouTube <a href="https://www.youtube.com/c/LikeCoin">youtube.com/c/LikeCoin</a></li><li>Github <a href="https://www.github.com/likecoin">github.com/likecoin</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=352d3316b6cf" width="1" height="1" alt=""><hr><p><a href="https://medium.com/likecoin/how-to-write-a-dapp-352d3316b6cf">How to write a DApp</a> was originally published in <a href="https://medium.com/likecoin">LikeCoin — the DeBook protocol</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[如何編寫 DApp]]></title>
            <link>https://medium.com/likecoin/how-to-write-a-dapp-1d4a58c57efa?source=rss-c92a372ebafc------2</link>
            <guid isPermaLink="false">https://medium.com/p/1d4a58c57efa</guid>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[likecoin]]></category>
            <category><![CDATA[chinese]]></category>
            <category><![CDATA[smart-contracts]]></category>
            <dc:creator><![CDATA[Chung]]></dc:creator>
            <pubDate>Wed, 27 Jun 2018 09:26:24 GMT</pubDate>
            <atom:updated>2025-03-06T12:26:07.754Z</atom:updated>
            <cc:license>https://creativecommons.org/licenses/by-sa/4.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5KH6AV9zwPBj2iK18jW_vQ.jpeg" /></figure><h4>LikeCoin Foundation 於2018香港開源年會的分享</h4><p>DApp（去中心化應用）是一種新形式的應用。在這場講座中，我介紹了甚麼是 DApp，DApp 如何運作，並以一個簡單的投票應用作為例子，解說了 DApp 的開發流程概要。</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FWmPNapXj1Ig%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DWmPNapXj1Ig&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FWmPNapXj1Ig%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f43465b94eb231533a1014c7cc8e6fe5/href">https://medium.com/media/f43465b94eb231533a1014c7cc8e6fe5/href</a></iframe><h4>簡報</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.slideshare.net%2Fslideshow%2Fembed_code%2Fkey%2F10c4YjSXjcPxAC&amp;url=https%3A%2F%2Fwww.slideshare.net%2Fkinko2%2Fhkos-2018&amp;image=https%3A%2F%2Fcdn.slidesharecdn.com%2Fss_thumbnails%2Fhkos2018-180627082757-thumbnail-4.jpg%3Fcb%3D1530088194&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=slideshare" width="600" height="500" frameborder="0" scrolling="no"><a href="https://medium.com/media/c4858c5542c163b9db398de261d08c26/href">https://medium.com/media/c4858c5542c163b9db398de261d08c26/href</a></iframe><h4>演示代碼</h4><ul><li><a href="https://github.com/likecoin/hkos2018-dapp-web">https://github.com/likecoin/hkos2018-dapp-web</a></li></ul><h4>參考資料</h4><ul><li><a href="http://web3js.readthedocs.io/en/1.0/index.html">http://web3js.readthedocs.io/en/1.0/index.html</a></li><li><a href="http://solidity.readthedocs.io/en/v0.4.24/">http://solidity.readthedocs.io/en/v0.4.24/</a></li></ul><p><strong>緊貼 LikeCoin 的消息，加入我們的社群 －</strong></p><ul><li>website <a href="https://like.co/">like.co</a></li><li>Medium <a href="https://medium.com/likecoin/zh/">medium.com/likecoin/zh/</a></li><li>Facebook <a href="https://www.facebook.com/Liker.Land/">fb.com/LikeCoin.Foundation</a> , <a href="https://www.facebook.com/groups/likecoin">fb.com/groups/likecoin</a></li><li>Telegram <a href="https://t.me/likecoin">t.me/likecoin</a></li><li>Twitter <a href="https://x.com/likecoin">twitter.com/likecoin</a></li><li>Youtube <a href="https://youtube.com/c/LikeCoin">youtube.com/c/LikeCoin</a></li><li>Github <a href="http://github.com/likecoin">github.com/likecoin</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1d4a58c57efa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/likecoin/how-to-write-a-dapp-1d4a58c57efa">如何編寫 DApp</a> was originally published in <a href="https://medium.com/likecoin">LikeCoin — the DeBook protocol</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>