<?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 The Laurel Project on Medium]]></title>
        <description><![CDATA[Stories by The Laurel Project on Medium]]></description>
        <link>https://medium.com/@provable.laurel?source=rss-ab5ce11c2fc5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*deKvIEhSDYgPQPT7</url>
            <title>Stories by The Laurel Project on Medium</title>
            <link>https://medium.com/@provable.laurel?source=rss-ab5ce11c2fc5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 20 Nov 2026 14:07:00 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@provable.laurel/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[Almost All Solidity Contracts Have This Security Issue]]></title>
            <link>https://medium.com/@provable.laurel/almost-all-solidity-contracts-have-this-security-issue-e694cfdc5a0d?source=rss-ab5ce11c2fc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/e694cfdc5a0d</guid>
            <category><![CDATA[crypto]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[security]]></category>
            <dc:creator><![CDATA[The Laurel Project]]></dc:creator>
            <pubDate>Sat, 18 Dec 2021 13:33:46 GMT</pubDate>
            <atom:updated>2021-12-18T13:33:46.521Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6YP5tedXAbqfDR3U.png" /></figure><p><em>Read on GitHub: </em><a href="https://github.com/loredanacirstea/articles/blob/master/articles/EthSecurity-Collisions.md"><em>https://github.com/loredanacirstea/articles/blob/master/articles/EthSecurity-Collisions.md</em></a><em>.</em></p><p>Almost all Solidity contracts have this security issue, and some have it more gravely than others. This problem is inherent to the Solidity compiler. Consider the implementation of mapping in Solidity:</p><pre>mapping(uint256 =&gt; bytes32) mapping1;</pre><p>The resulting storage address is always in the range 0 -- 2**256-1. There is no mathematical guarantee of lack of collision. In fact, it is easy to demonstrate the existence of collisions in that range.</p><h3>Pseudo-Demonstration</h3><p>Consider the keccak256 function k defined on the range N1: natural numbers from 0 to 2**256-1. Its output in EVM is also in N1. Moreover: the existence of output is guaranteed for any element in N1 and the output is not trivial (otherwise it would not meet the cryptographic requirements); therefore k is not the identity function. Also: the output is as close to being injective as possible. Therefore it is as close to being bijective as possible (but demonstrating bijectivity should be impossible without breaking cryptographic properties). (I would call it pseudo-bijective.)</p><p>Such pseudo-bijective functions that are almost all the time different than the identity function are guaranteed to have at least one collision per argument value (exception being the cases when the function gives the same output as the identity function). And, for any other cases for which they have no collision, they have to have the same number of cases with more than one collision). In other words: pseudo-bijective functions that are not permutations have an average of 1 collision per input value with high chances for more than 1. The k function has a chance of 1/(2**256-1) collisions with another input.</p><h3>Gravity</h3><p>Some contracts are less exposed than others.</p><p>For example, arrays have a much smaller chance of collisions, than mappings. In mappings, the input value has a wider range of possible values, often given by or determined by a user. While the array’s indexes, used in the keccak256 function usually have a smaller range and are less controlled by the user - they are more deterministic.</p><p>Those contracts that use mapping and keccak256 have a non-zero exposure. And those are by far the most common. But even those are not equally exposed.</p><pre>mapping(uint256 =&gt; bytes32) mapping1;<br>mapping(address =&gt; bytes32) mapping2;<br>mapping(uint128 =&gt; bytes32) mapping3;</pre><p>The chance of collision raises with:</p><ul><li>user control of the input value</li><li>the number of variables defined</li><li>the range of the input of mappings</li><li>the amount of data that you have in such a mapping (the contract use)</li></ul><h3>Mitigation</h3><p>Most would argue that the chance for a collision to happen is low. And that is true, but since we have solutions to make it 0, we should make the additional effort (if no additional gas is needed). And all exploits are unimportant and unlikely if it is not your assets that get stolen or your contracts that become compromised. So rather than praying for bad things to not happen to your contracts, we could enact some solutions for this particular issue:</p><ul><li>use salt as part of the storage key to offset the input range NI to obtain an output range NO (this may lead to other collisions, but the author may decide on the colliding sets)</li><li>make asset management independent of the collision-ridden variables</li><li>use assembly rather than the standard Solidity solution</li></ul><h3>The Secure Solution</h3><p>Use the identity function i instead of the keccak256 function k. Since the identity guarantees a lack of collisions on any range. It is the trivial permutation: the identity permutation. In the next article, we will explore the EVM solution to close this security hole.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e694cfdc5a0d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Crypto Exchanges: Is there possible an ethical profit?]]></title>
            <link>https://medium.com/@provable.laurel/crypto-exchanges-is-there-possible-an-ethical-profit-3debf5e5a8e2?source=rss-ab5ce11c2fc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/3debf5e5a8e2</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[volunteering]]></category>
            <category><![CDATA[finance]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[The Laurel Project]]></dc:creator>
            <pubDate>Fri, 05 Nov 2021 15:07:13 GMT</pubDate>
            <atom:updated>2021-11-06T09:34:52.756Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HUQ_ipSXqQRa2PIQpSkQ7g.png" /></figure><p>At a first glance: no. Some people have gained and in order for some to gain, some others have to lose. So those who gained do that at the expense of those how lost. Unethical. Right?</p><p>As volunteers for The Laurel Project, we pondered deeper on this state of affairs and we have stumbled upon a solution that seems both profitable and moral. We programmed the mechanism into a new type of cryptocurrency that we named <strong>Guaranteed Growth for the Good</strong> (GGG or <strong>3Good</strong>) coin. In the following, I will explain how this name describes the clauses of the smart contract.</p><h3>Guaranteed Growth</h3><p>We have programmed a series of contracts: one of them is for investing pure Ether and the rest of the series is for investing any ERC20 compatible token. These contracts are only partially compatible with the ERC20 standards: they are unable to send money. These contracts act like a bullion safe of the bank and for this reason we named the coin names with the “Bullion” postfix or with a “B” at the end of the symbol name (the name and symbol that are included in the ERC20 standard).</p><p>We named this new standard ERC20B. It includes the exchange in each contract with the intent of fully automatically controlling the behavior of the exchange. <strong>In the case of Ether as the investment coin: the exchange will let the EtherBullion be bought at the present rate of exchange and never at lower rates.</strong></p><p>When the demand for EtherBullion increases, the rate will also (very slightly) increase. <strong>When people want to sell their EtherBullion for Ether the rate will remain the same and, if no buyers are fulfilling the order, the order will be queued until somebody buys it at the present rate (never lower).</strong> That guarantees the growth of the value of EtherBullion. But it does so at the expense of the ability to sell at lower prices or sell for emergency use.</p><h3>For The Good</h3><p>Some would say: this is obviously a Multi-Level Marketing (MLM) scheme! And we would answer: sure! it can be understood that way if you must. But not every MLM in human history was evil. Some gave rise to the (civilized) civilizations and spread them across the corners of the world. (And it is true that some others left many with broken hopes and empty pockets.)</p><p>The question is: is this particular MLM for the good or not? The value of the 3Good coin will never decrease — that is for the good, but what will happen to the stored-value funds?</p><p><strong>The funds collected in the invested coin will be donated to charities in a transparent, provable manner. </strong>The transfer will use <a href="https://ethereum.org/">Ethereum</a> as a witness and the accreditation of the participant charities will be done in the most transparent, public, verifiable manner. More on this below.</p><p>Isn’t this for the greater Good?</p><h3>Deployment on Rinkeby</h3><p>The Laurel Project already has this contract deployed on Rinkeby and a dApp created with The Marks Factory IDE that is deployed on IPFS and Web2. We invite every inquisitive mind to try it and feel the possibility of ethical profit.</p><p>After this will be well-trialed on this and other testnets, it will be deployed on the mainnet.</p><p>The version deployed on the main will have mechanisms for donating the eventual stored value to a list of proven charities. More on that at the end.</p><h3>Demo</h3><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fyx0Y9O8UHBk%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dyx0Y9O8UHBk&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fyx0Y9O8UHBk%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/38d65d1a06208bf20a73c335dc4db61a/href">https://medium.com/media/38d65d1a06208bf20a73c335dc4db61a/href</a></iframe><h3>Invitation to Charities</h3><p>We welcome provable charities to register themselves publicly using this form: <a href="https://forms.gle/nr5AH34oH79Kv3dn6">https://forms.gle/nr5AH34oH79Kv3dn6</a>.</p><p>The volunteers at The Laurel Project will add the Ethereum addresses of the participating charities to the donation queue of the contract. The donations will happen when enough funds get stored by the use of the 3Good/Bullion coin.</p><h3>Conclusion for Tentative Investors</h3><p>The mainnet will provide the needed transparency of where the money is going. <strong>The volunteers will not be paid for their selfless service.</strong> <strong>The investors will be able to make a profit while their initial investment will do a lot of charity work.</strong></p><p>Is this ethical enough for you? If so (and for your ROI): spread widely the 3Good word!</p><p><strong>Share this article.</strong></p><h3>Conclusion for Tentative Volunteers</h3><p>We need more people to help with registering and verifying participant charities, testing the 3Good technology before being released on the Ethereum Mainnet.</p><p><strong>Apply at </strong><a href="https://forms.gle/WmSaSbxhHiiA2qZV7"><strong>https://forms.gle/WmSaSbxhHiiA2qZV7</strong></a><strong>.</strong></p><p><strong>Follow </strong><a href="https://twitter.com/ethbullion"><strong>https://twitter.com/ethbullion</strong></a><strong>.</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3debf5e5a8e2" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Laurel Project]]></title>
            <link>https://medium.com/@provable.laurel/the-laurel-project-313a974efe6f?source=rss-ab5ce11c2fc5------2</link>
            <guid isPermaLink="false">https://medium.com/p/313a974efe6f</guid>
            <category><![CDATA[generosity]]></category>
            <category><![CDATA[nonprofit]]></category>
            <category><![CDATA[volunteering]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[The Laurel Project]]></dc:creator>
            <pubDate>Fri, 05 Nov 2021 14:38:59 GMT</pubDate>
            <atom:updated>2021-11-05T14:38:59.838Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EX33B7EK-68_ddrfVVxRWw.png" /></figure><p>You are welcome to join the revolution: The Laurel project, a project built to prove and reward generosity. Build for and by volunteers.</p><p>Register for the alpha version: <a href="https://forms.gle/WmSaSbxhHiiA2qZV7">https://forms.gle/WmSaSbxhHiiA2qZV7</a>.</p><p>What is the Laurel? See <a href="https://youtu.be/J7-gIa6jiP0">https://youtu.be/J7-gIa6jiP0</a></p><p>Check out our Reddit community:</p><ul><li><a href="https://www.reddit.com/r/provable_laurel/">https://www.reddit.com/r/provable_laurel/</a></li><li><a href="https://www.reddit.com/r/provable_laurel/comments/pt3opa/the_laurel_project_and_protocol_qa/">The Laurel Project and Protocol — Q&amp;A</a></li><li><a href="https://www.reddit.com/r/provable_laurel/comments/pt3vus/at_first_sight_no1/">At First Sight №1</a></li></ul><p>Follow the project:</p><ul><li><a href="https://twitter.com/provable_laurel">https://twitter.com/provable_laurel</a></li><li><a href="https://www.linkedin.com/company/80100124">https://www.linkedin.com/company/80100124</a></li></ul><p>Follow our volunteer efforts at:</p><ul><li><a href="https://twitter.com/thelaurel_bot">https://twitter.com/thelaurel_bot</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=313a974efe6f" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>