<?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 DappPub on Medium]]></title>
        <description><![CDATA[Stories by DappPub on Medium]]></description>
        <link>https://medium.com/@DappPub?source=rss-ad48519608d2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*U1uO5jgNnaXki1_A_2aTpw.png</url>
            <title>Stories by DappPub on Medium</title>
            <link>https://medium.com/@DappPub?source=rss-ad48519608d2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 09:07:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@DappPub/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[TokenPocket wallet issues the utility token (TPT) based on DappPub’s Bancor-based utility token…]]></title>
            <link>https://medium.com/dapppub/tokenpocket-released-tpt-a094663c7f39?source=rss-ad48519608d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/a094663c7f39</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[eos]]></category>
            <dc:creator><![CDATA[DappPub]]></dc:creator>
            <pubDate>Wed, 19 Sep 2018 11:57:12 GMT</pubDate>
            <atom:updated>2018-09-19T16:54:59.291Z</atom:updated>
            <content:encoded><![CDATA[<h3>TokenPocket wallet issues the utility token (TPT) based on DappPub’s Bancor-based utility token protocol</h3><p>TokenPocket is one of the most widely used mobile EOS wallets and it has released its Bancor-based wallet token: <a href="https://steemit.com/tokenpocket/@tokenpocket/making-eos-much-better-together"><strong>TPT</strong></a>, using DappPub’s Bancor-based <a href="https://medium.com/dapppub/tokendapppub-1-b6143c6039e3"><strong>utility token protocol</strong></a>.</p><p>DappPub’s utility token protocol is based on the Bancor protocol and has introduced the token consumption protocol, dividends protocol, option protocol and a dynamic trading fee algorithm to make the utility token in line with the current DApp development trend.</p><p>The TPT/EOS trading pair will be opened at 21:00 on 2018/09/19 (UTC+8):</p><p><a href="https://dapp.pub/tokens/?token=TPT"><strong>https://dapp.pub/tokens/?token=TPT</strong></a></p><pre><strong>@ </strong><a href="https://dapp.pub/"><strong>Official site</strong></a></pre><pre><strong>@ </strong><a href="http://hi.dapp.pub/"><strong>Discord</strong></a></pre><pre><strong>@ </strong><a href="https://t.me/DappPub"><strong>Telegram</strong></a></pre><pre><strong>@ </strong><a href="https://www.reddit.com/user/dapppub"><strong>Reddit</strong></a></pre><pre><strong>@ </strong><a href="https://medium.com/dapppub"><strong>Medium</strong></a></pre><pre><strong>@ </strong><a href="https://github.com/Dappub"><strong>Github</strong></a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYygDZBdBWzm1hm_sajFMA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a094663c7f39" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dapppub/tokenpocket-released-tpt-a094663c7f39">TokenPocket wallet issues the utility token (TPT) based on DappPub’s Bancor-based utility token…</a> was originally published in <a href="https://medium.com/dapppub">DappPub</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 design a blockchain-based provably fair online dice game]]></title>
            <link>https://medium.com/dapppub/fairdicedesign-315a4e253ad6?source=rss-ad48519608d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/315a4e253ad6</guid>
            <category><![CDATA[eos]]></category>
            <category><![CDATA[games]]></category>
            <category><![CDATA[dapps]]></category>
            <category><![CDATA[casino]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[DappPub]]></dc:creator>
            <pubDate>Sat, 15 Sep 2018 06:29:21 GMT</pubDate>
            <atom:updated>2018-09-15T07:10:18.865Z</atom:updated>
            <content:encoded><![CDATA[<p>In the old times, when we play a traditional dice game, the game fairness is usually endorsed by the game owner’s reputation. If an extremely unlucky player loses 10 times in a row, there is no way for him to tell if he is just being unlucky or not.</p><p>With the help of the blockchain technology, now we have a way to design an online provably fair dice game technically. Blockchain is a transparent, tamper-resistant online ledger that every one can audit.</p><p>We are glad to see dozens of online dice games popping up in the EOS community recently. It’s a pity that most of them are not open sourced nor rig resistant, still leaving inapparent potential backdoors for rigged betting, which is risky and can be largely improved. However, these close sourced dice games did help many rookies embrace the blockchain and get to know the beauty of the EOS world. Their efforts should not be forgotten and we appreciate their value added to the EOS ecology.</p><p>Hereby our DappPub team would like to share the design for our open sourced FairDice game and enlighten those who are interested to unleash the power of DApps together.</p><h3>1. Randomness is the key</h3><p>The key point is that the game has to provide a kind of combined randomness that no single party could control alone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*moufw-iQdRVjSZCMFeGHvQ.png" /><figcaption><a href="https://eosio.stackexchange.com/questions/41/how-can-i-generate-random-numbers-inside-a-smart-contract"><strong>“How can I generate random numbers inside a smart contract?”</strong></a></figcaption></figure><p>Just like what BM answered in the above question on StackExchange, for a two-party (player-house) dice game, the key point to provide fairness or rig-resistant randomness requires a 3 step process:</p><ul><li>Both parties ( player &amp; house ) commit hashes of their seeds:hash(player_seed) &amp; hash(house_seed)</li><li>Both parties reveal their hash(player_seed) &amp; hash(house_seed)</li><li>Roll = hash(player_seed + house_seed)</li></ul><p>The final Roll is random and it&#39;s a kind of combined randomness based on both house &amp;&amp; player &#39;s input (house_seed &amp; player_seed)</p><h3>2. Sequence Diagram: a theoretical random dice roll process</h3><p>Based on BM’s answer, we can draw a simple sequence diagram for a theoretical random dice roll process as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rgjZyyE-RcdX2nIlnHxDig.png" /><figcaption><strong>Sequence Diagram: a theoretical random dice roll process</strong></figcaption></figure><p>In step 2, the house creates a new house_seed for each bet and keeps it a secret until step 10.</p><p>In step 3, the house calculates the corresponding house_hash = hash(house_seed).</p><p>In step 4, the house uploads the house_hash to the blockchain. At this moment, the player still has no idea about what the house_seed is, but he is sure that the house_seed will not change during this bet because he can use the house_hash to verify after the bet. Metaphorically speaking, house_hash is like a house&#39;s dark card placed on the table.</p><p>In step 5, the player also creates his player_seed.</p><p>In step 6, the player calculates the corresponding player_hash = hash(player_seed).</p><p>In step 7, the player uploads player_hash to the blockchain. At this moment, the house still has no clue about what player_seed is, but he is sure that the player_seed will not change during this bet because he can use the player_hash to verify later. Metaphorically speaking, player_hash is like a player&#39;s dark card placed on the table.</p><p>In step 8, the player uploads his player_seed to the blockchain.</p><p>In step 9, the open-sourced smart contract deployed on the blockchain verifies the player_seed &amp; player_hash to see if it&#39;s a match.</p><p>In step 10, the house uploads his house_seed to the blockchain.</p><p>In step 11, the smart contract verifies the house_seed &amp; house_hash to see if it&#39;s a match.</p><p>In step 12, the smart contract calculates the hash(player_seed, house_seed) as the final roll number.</p><h3>3. Sequence Diagram: optimized “FairDice” random dice roll process</h3><p>Now we can give it a shot to start building our own blockchain-powered dice game. Compared with other blockchain infrastructure, EOS is preferred here as it’s fast and provides good user experience.</p><p>In fact, to optimize the whole process, it’s unnecssary for player to upload both player_hash &amp; player_seed in two steps.</p><p>In other words, since the house has already placed his dark card (house_hash) on the table and not able to change it during the bet, the player could just place his open card (player_seed) on the table directly, instead of placing his dark card (player_hash) on the table and flipping the card (player_seed) in two steps.</p><p>Therefore, we have optimized the whole process and improved user experience as below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*h_aH2xWjSf14iagbqxiZ4A.png" /><figcaption><strong>Sequence Diagram: optimized “FairDice” random dice roll process</strong></figcaption></figure><p>In step 1, since a “referral bonus” is introduced in the game, the referrer along with theROLL under to win will be sent to the house.</p><p>In step 2, the house creates a new house_seed for each bet and keeps it a secret until step 9.</p><p>In step 3, the house calculates the corresponding house_hash = hash(house_seed).</p><p>In step 4, the house creates house_sign = sign(ROLL_under, hash(house_seed), expiration_time, referrer).</p><p>In step 5, the house sends house_hash, house_sign, ... to the player.</p><p>In step 6, the player creates his player_seed.</p><p>In step 7, the player uploads the house_sign &amp; player_seed to the EOS blockchain.</p><p>In step 8, the smart contract deployed on EOS checks to prevent player from replay attacking the previous house_seed by cheating in the house_sign.</p><p>In step 9, the house uploads the house_seed.</p><p>In step 10, the smart contract verifies the house_seed to see if it matches with the house_hash so as to prevent house from swapping the house_seed sneakingly.</p><p>In step 11, the smart contract calculates the final roll num based on the player_seed &amp; house_seed.</p><h3>4. Talk is cheap, show me the code</h3><p>In this case, since the randomness of the final roll number is dependent on both house side and player side, neither the house nor the player is able to rig the bet alone. In order to be rig resistant and provably fair, undoubtedly, the dice game has to be open sourced:</p><blockquote><a href="https://github.com/Dappub/fairdicegame"><em>https://github.com/Dappub/fairdicegame</em></a></blockquote><p>If you’d like to play our “FairDice” game, here’s the corresponding game page:</p><blockquote><a href="https://dapp.pub/dice"><em>https://dapp.pub/dice</em></a></blockquote><p>You could find more info here:</p><blockquote><a href="https://medium.com/dapppub/fairdicegame-187afaff9e13"><em>https://medium.com/dapppub/fairdicegame-187afaff9e13</em></a></blockquote><h3>5. Contact us</h3><pre><strong>@ </strong><a href="https://dapp.pub/"><strong>Official site</strong></a></pre><pre><strong>@ </strong><a href="http://hi.dapp.pub/"><strong>Discord</strong></a></pre><pre><strong>@ </strong><a href="https://t.me/DappPub"><strong>Telegram</strong></a></pre><pre><strong>@ </strong><a href="https://www.reddit.com/user/dapppub"><strong>Reddit</strong></a></pre><pre><strong>@ </strong><a href="https://medium.com/dapppub"><strong>Medium</strong></a></pre><pre><strong>@ </strong><a href="https://github.com/Dappub"><strong>Github</strong></a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tYygDZBdBWzm1hm_sajFMA.png" /><figcaption><a href="https://dapp.pub/"><strong>DappPub: Unleashing the power of DApps</strong></a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=315a4e253ad6" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dapppub/fairdicedesign-315a4e253ad6">How to design a blockchain-based provably fair online dice game</a> was originally published in <a href="https://medium.com/dapppub">DappPub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[tokendapppub: a Bancor based utility-enhanced token protocol]]></title>
            <link>https://medium.com/dapppub/tokendapppub-1-b6143c6039e3?source=rss-ad48519608d2------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6143c6039e3</guid>
            <category><![CDATA[eos]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[token]]></category>
            <category><![CDATA[bancor]]></category>
            <category><![CDATA[dapps]]></category>
            <dc:creator><![CDATA[DappPub]]></dc:creator>
            <pubDate>Fri, 31 Aug 2018 04:26:21 GMT</pubDate>
            <atom:updated>2018-09-25T08:02:03.301Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>Unleashing the power of DApps</em></strong></p><p>Welcome to <a href="https://dapp.pub/">“<strong>DappPub</strong>”</a>. We are a blockchain startup team working on DApp development and exploring the infinite possibilities that DApps could do.</p><p>Many of you might have directly or indirectly used our first DApp : “<a href="https://medium.com/coinmonks/create-your-own-eos-account-easily-using-the-non-service-fee-dapp-signupeoseos-b15c5347f2fc"><strong>signupeoseos</strong></a>”. It is a frequent used EOS DApp helping users create EOS accounts which has already been integrated in many popular mobile wallets (“Token Pocket”, “Meet.one”) as a widely used underlying EOS smart contract.</p><p>We have been working on an EOS DApp platform that helps third-party DApp development teams raise EOS for their DApps. We are open to the EOS community and welcome any third-party DApp development team and individual EOS user to cooperate together to create a better EOS ecology.</p><p>On our platform, any DApp development team can raise EOS from the public by giving out the use rights of their DApps. On the other hand, individual EOS users could contribute their EOS to support their favorite DApp projects and acquire the DApp use rights.</p><p>To avoid the drastic price fluctuation problems happened on these traditional ERC-20 tokens, we proposed a series of unique utility token protocols to limit the speculation behaviours so as to protect the benefits for these DApp development teams and individual contributors. Based on the bancor protocol, we introduce the token consumption protocol, token dividend protocol, team option protocol and an unfixed trading fee algorithm to limit the short-term speculation behaviours and benefit the long-term value investors.</p><p>Being an DApp development team ourselves, we also follow these protocols to give out the use rights of our DApp in the form of “<strong>PUB</strong>”. When other third-party teams plan to issue their own utility tokens, they need to pay 100 PUB. There is a limitation that the unique token name abbreviation must be 5–7 letters right now except the official “PUB” token. There will be a bidding system opened later for bidding shorter token name abbreviation. The PUB token will be used for bidding these names. Based on our bancor based series of token protocols, early DApp teams and individual contributors will have an advantage in acquiring PUB tokens at a lower cost.</p><h3><strong>PUB token information:</strong></h3><p><strong>Total supply:</strong> 1,000,000 PUB</p><p><strong>Base currency reserve:</strong> 10,000 EOS，only used for price calculation</p><p><strong>Initial offering price:</strong> 0.01EOS/PUB</p><p><strong>Team option:</strong> 200,000 PUB</p><p><strong>Release cycle:</strong> linear release in 365 days</p><p><strong>Trading fee:</strong> Token buying or consuming behaviours does not charge trading fee, but token selling behaviour will charge an unfixed trading fee. The initial sell handling fee starts at 50%, and it will keep decreasing when the option is gradually released and reduced to around 5% finally. Trading fee will be given back to all token holders as dividends. Refer to the “Utility Token Whitepaper” for detailed recursion formulas. Please refer to our whitepaper for more details. Please be rational and mind your own risk while investing in crypto tokens as it is with great risks as well.</p><p><strong>Github:</strong></p><p><a href="https://github.com/Dappub/tokendapppub">https://github.com/Dappub/tokendapppub</a></p><p><strong>Whitepaper: </strong><a href="https://github.com/Dappub/tokendapppub/blob/master/Bancor%20based%20utility-enhanced%20token%20protocol.pdf">https://github.com/Dappub/tokendapppub/blob/master/Bancor%20based%20utility-enhanced%20token%20protocol.pdf</a></p><h3>Contact us</h3><pre><strong>@ </strong><a href="https://dapp.pub/"><strong>Official site</strong></a></pre><pre><strong>@ </strong><a href="http://hi.dapp.pub/"><strong>Discord</strong></a></pre><pre><strong>@ </strong><a href="https://t.me/DappPub"><strong>Telegram</strong></a></pre><pre><strong>@ </strong><a href="https://www.reddit.com/user/dapppub"><strong>Reddit</strong></a></pre><pre><strong>@ </strong><a href="https://medium.com/dapppub"><strong>Medium</strong></a></pre><pre><strong>@ </strong><a href="https://github.com/Dappub"><strong>Github</strong></a></pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/409/1*xGyteuP1PmgVXnKvSojsnQ@2x.png" /><figcaption><strong>DappPub: Unleashing the power of DApps</strong></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6143c6039e3" width="1" height="1" alt=""><hr><p><a href="https://medium.com/dapppub/tokendapppub-1-b6143c6039e3">tokendapppub: a Bancor based utility-enhanced token protocol</a> was originally published in <a href="https://medium.com/dapppub">DappPub</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>