<?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 Federico Ulfo on Medium]]></title>
        <description><![CDATA[Stories by Federico Ulfo on Medium]]></description>
        <link>https://medium.com/@feulf?source=rss-1a23bfd151e6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ngAUFH5OsUMACiBUdzDJuw.png</url>
            <title>Stories by Federico Ulfo on Medium</title>
            <link>https://medium.com/@feulf?source=rss-1a23bfd151e6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 23:01:56 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@feulf/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[ Multisig transactions with Gnosis Safe]]></title>
            <link>https://medium.com/gauntlet-networks/multisig-transactions-with-gnosis-safe-f5dbe67c1c2d?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/f5dbe67c1c2d</guid>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Tue, 04 May 2021 17:35:01 GMT</pubDate>
            <atom:updated>2021-05-04T19:39:23.235Z</atom:updated>
            <content:encoded><![CDATA[<p>In this post, we’ll explore what multisig wallets are and how to use Gnosis Safe to manage your funds and transactions.</p><h3>Type of accounts in Ethereum</h3><p>Let’s start with some basics. Accounts are fundamental Ethereum components that can hold funds and execute transactions, read or write. If you think of Ethereum as a state machine then a write transaction can modify its state. In order to execute a transaction, you need to pay a fee (gas) to the miners who will update the blockchain.</p><p>In Ethereum we have 2 types of accounts:</p><ul><li><strong>Externally Owned Accounts (EOA)</strong> or simply wallets. These wallet are identified by a private/public key pair. They can hold funds and execute transactions, for example they can transfer ETH to another wallet or call a smart contract to create an NFT. MetaMask is the most popular Ethereum software wallet.</li><li><strong>Contract Accounts</strong>, simply called smart contracts, don’t have private keys but they have code that can be executed calling their methods. If you’re new to smart contracts take a break here and go read this https://ethereum.org/en/developers/docs/smart-contracts/.</li></ul><blockquote>⚠️ Lose your private key and you lose access to your wallet for 👏 ever 👏. How can we avoid that? Introducing multisig wallets.</blockquote><h3>Multisig Wallets</h3><p>A clever way to use smart contracts is to create a new type of accounts called <strong>Multi-signature wallets.</strong> These wallets have multiple keys. A typical multisig configuration has 3 owners and it needs 2 keys to move the funds:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/765/1*OymI4OIm23KYTXwrUwJFeA.png" /></figure><p>In our example above each owner has a key, but due their flexibility multisigs can be configured in different ways.</p><p>Multisig wallets are very flexible and are used by companies and individuals in different ways:</p><ul><li><strong>Companies and protocols can hold their funds safely </strong>and require a majority of owners to accept to transfer them. So not one owner can run with the money.</li><li><strong>Companies can execute sensitive transactions</strong> with the consensus of a majority of owners.</li><li><strong>Individuals can use multisig to have keys redundancy</strong>. One property of multisig is that if you lose one key you can recover the wallet with the remaining 2 keys. But lose 2 keys and you’re f****d.</li></ul><p>In this blog post we’ll focus on <strong>Gnosis Safe</strong>, a multisig wallet for Ethereum trusted by several companies. At the moment of writing it secures a whopping <a href="https://gnosis-safe.io/security">22 billion dollars in asset</a>s:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/855/1*zNy7FEg5IuelLtl36wFJJQ.png" /></figure><h3>Gno·sis</h3><p>/ˈnōsəs/</p><blockquote><em>Knowledge of spiritual mysteries</em></blockquote><p>Gnosis is the common Greek noun for knowledge and it’s being used by Hellenistic religions and philosophy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*FYkcYdg1oQwCt4bCfbrg1Q.png" /><figcaption>SVG trace of an image of the Abraxas Stone or Gem from <em>The Gnostics and their remains</em> by Charles W. King, 1887. The letters are “ΙΑΩ” or “Iao” and “ΣΕΜΕΣ ΕΙΛΑΜ”, “Eternal Sun”.</figcaption></figure><p>Gnosis started as a cryptocurrency in 2017 with an ICO attracting 250,000 ETH, $14M at the time, ~$800M today!</p><p>Gnosis was the first decentralized prediction market. It was also the first cryptocurrency to introduce the “utility token” concept for creating a dual token economy — you probably remember these from the 2017 ICO boom.</p><p>Since then the Gnosis tech team started releasing some of their tools open source, of them <strong>Gnosis Safe</strong> received the most traction in the crypto space.</p><h3>🔐 Gnosis Safe</h3><p>You can think of Gnosis Safe as a collection of tools to create and to manage multisig wallets, think of them as lego pieces:</p><ul><li><strong>Safe Contracts</strong>, we’ll see more in the details of the contracts, but for now just know that Safe is the multisig contract that allows for holding and transferring of funds such as ETH, ERC20, NFTs, as well as to execute transactions. A Safe can execute a transaction on-chain and off-chain.</li><li><strong>Safe UI</strong> is a simple React UI, so simple it takes just <a href="https://twitter.com/econoar/status/1194731123340763136?s=20">60 seconds</a> to create a multisig. Currently deployed on <a href="https://gnosis-safe.io/app/#/welcome">Mainnet</a> and <a href="https://rinkeby.gnosis-safe.io/">Rinkeby</a>.</li><li><strong>Safe transaction service</strong> is an API maintained by the Gnosis team and it is used by the Safe UI to store off-chain signatures.</li><li><strong>Safe Apps</strong>, Gnosis allows to extends its functionality by adding custom apps that allow to <a href="https://www.google.com/search?client=safari&amp;rls=en&amp;q=gnosis+safe+dao+app&amp;ie=UTF-8&amp;oe=UTF-8&amp;safe=active">manage governance</a>, <a href="https://blog.gnosis.pm/announcing-gnosis-auction-launch-390124d56248">fair Auctions</a>, and <a href="https://docs.gnosis.io/safe/docs/sdks_safe_apps/#existing-safe-apps">much more</a>.</li></ul><p>In Gnosis Safe there are 2 signature flows: <strong>on-chain</strong> and <strong>off-chain</strong>. Both use <a href="https://eips.ethereum.org/EIPS/eip-712#simple-summary">EIP712</a>, a standard signing method that creates a struct with the transaction arguments, hashes them with keccak256 and then signs them with secp256k1.</p><h3>On-chain signature</h3><p>The owners can sign the transaction and call the method Safe.approveHash. When the threshold is reached the last signer can call the method Safe.executeTransaction. Each transaction costs gas, and so this signing flow is the most expensive.</p><h3>Off-chain signature</h3><p>In the off-chain signing flow the owners sign the transaction and store it somewhere. The last signer can execute the transaction calling the method Safe.executeTransaction passing all the signatures.</p><p>This solution uses much less gas, but it requires some coordination to collect the signatures, and that’s what the <strong>Safe Transaction Service</strong> is for.</p><p>⚠️ <a href="https://github.com/gnosis/safe-react">Safe UI</a> and <a href="https://github.com/gnosis/safe-transaction-service">Safe Transaction Service</a> are deployed on Mainnet and Rinkeby. If you want to test your contracts on Kovan or Goerli, you’ll have to deploy and maintain them and that’s quite a lift.</p><p>⚠️ The Safe Transaction Service is a public API, this means everyone can see all the transactions of a Safe before they’re executed on-chain. Someone can use this info to front-run the transactions.</p><h3>Demo — Create a Safe and exec a multisig transaction</h3><p>In this demo we’ll learn how to create a new Safe on Rinkeby and use it to execute a transaction.</p><p>We’ll deploy a simple contract, let’s call it PokemonTaco because who doesn’t love Pokemon and Tacos. This contract has a simple uint num property that can be updated calling the updateNum method:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/711/1*3J2OpRRj7teWn_mKhhvb3w.png" /></figure><ol><li>Here’s a video showing how to deploy our contract:</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FpJY-MI-nKh8&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DpJY-MI-nKh8&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FpJY-MI-nKh8%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/cbf79af7c700310978b3663ef46c4c6a/href">https://medium.com/media/cbf79af7c700310978b3663ef46c4c6a/href</a></iframe><p>2. We create a Safe with 2 out of 2 owner:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F0z62WV8xJkI&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0z62WV8xJkI&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2F0z62WV8xJkI%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/dd3278f751be9bcd87b0c50a35838fca/href">https://medium.com/media/dd3278f751be9bcd87b0c50a35838fca/href</a></iframe><p>3. Let’s now execute our multisig transaction:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FB1D3TtxhoFA&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DB1D3TtxhoFA&amp;image=http%3A%2F%2Fi.ytimg.com%2Fvi%2FB1D3TtxhoFA%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/384c1dbd124a83e6d958290c970f9866/href">https://medium.com/media/384c1dbd124a83e6d958290c970f9866/href</a></iframe><h3>How we use Gnosis Safe at Gauntlet</h3><p>At Gauntlet we use Gnosis Safe both to manage our funds and to execute transactions created through automation.</p><p>At Gauntlet we run simulations to analyze DeFi protocols, suggesting parameters adjustments to keep them healthy under any market conditions.</p><p>We use Gnosis Safe to update those parameters on-chain:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/681/1*4Qn9XW-cvPTWcGWjmhePuQ.png" /></figure><p>You may ask: <em>“Fed, how the heck does the simulation create a transaction?”</em></p><p>Well, the safe-transaction-service allows the owners to delegate other public keys to become a delegated signer and to create a new transaction, but not to sign it or execute it. This means that the transaction will show up in the Safe UI, and that 2 out of 3 owners are still required to sign it. Everyone’s happy!</p><h3>🌱 Gnosis Safe Contracts</h3><p>Let’s go more into the weeds and look at the main Gnosis Safe contracts <a href="https://github.com/gnosis/safe-contracts">https://github.com/gnosis/safe-contracts</a>:</p><ul><li><strong>GnosisSafe.sol</strong> contains all the core functionality required to set up and execute Gnosis Safe transactions. It contains the logic to use the optional token payment feature.</li><li><strong>OwnerManager.sol </strong>controls owner management of a safe along with setting the signature threshold.</li><li><strong>ModuleManager.sol</strong>, it allows to add modules to the safe, extending its functionality. A module can for example set the number of signature required for a specific amount transfer, or set daily limit allowances and so on.</li><li><strong>GnosisSafeProxy.sol </strong>and<strong> GnosisSafeProxyFactory.sol </strong>are used because deploying a contract is quite expensive. Gnosis Safe implements the <a href="https://blog.openzeppelin.com/proxy-patterns/">proxy pattern</a> to reduce costs and to make the contract upgradable. The ProxyFactory is used to create a new safe that connects to the proxy.</li><li><strong>FallbackManager.sol</strong>, Ethereum fallback functions are executed when a called function signature does not match any defined function. Certain use cases require those fallback functions to contain some logic. For instance, this is required for making the Safe 100% compatible with the ERC-721 token standard. Note: don’t confuse ERC-721 with ERC-712.</li></ul><h3>Deployment</h3><p>The Gnosis Safe smart contract was written with the usage of a proxy contract in mind. Because of that, there is no constructor and calling an initialize function (setup) on the contract is required before it can be used.</p><p>While the easiest way to create a Safe is by using the Safe UI, you may need to create one via code to test your code. Here’s what the EthersJS + Hardhat code to deploy a Safe looks like:</p><pre>const ZERO_ADDRESS = &quot;0x0000000000000000000000000000000000000000&quot;;</pre><pre>const safeContract = await ethers.getContractAt(GnosisSafeSol.abi, GnosisSafeSol.address);</pre><pre>const safeAccounts = [pubKey1, pubKey2, pubKey3]; <br>const DEFAULT_FALLBACK_HANDLER_ADDRESS = &quot;0x...&quot;;<br>const params = [ <br>  safeAddresses, <br>  numConfirmations, <br>  ZERO_ADDRESS, <br>  &quot;0x&quot;, <br>  DEFAULT_FALLBACK_HANDLER_ADDRESS, <br>  ZERO_ADDRESS, <br>  0, <br>  ZERO_ADDRESS <br>];</pre><pre>// proxy deployment<br>const safeAbi = safeContract.interface.encodeFunctionData(<br>  &quot;setup&quot;, params<br>);<br>const ProxyFactoryContract = await ethers.getContractAt(ProxyFactorySol.abi, ProxyFactorySol.address);<br>const signer = ProxyFactoryContract.connect(myWallet);<br>const saltNonce = Date.now();<br>const txResponse = await signer.createProxyWithNonce(<br>  safeContract.address, safeAbi, saltNonce<br>);<br>const txReceipt = await txResponse.wait();</pre><pre>// address of the newly deployed Safe<br>console.log(creationEvent.args!.proxy)</pre><h3>🚀 Executing a transaction</h3><p>The easiest way to execute a multisig transaction is to use the Safe UI. At Gauntlet we need to create automated transactions according to our continuous simulation results. In order to do that we sign the transaction with the delegate signer and submit it to the Safe Transaction Service.</p><p>One way to do that is by using the Contract Proxy Kit, an SDK allowing interaction with the Safe Contract and Safe Transaction Service: <a href="https://docs.gnosis.io/safe/docs/sdks_cpk/">https://docs.gnosis.io/safe/docs/sdks_cpk</a>, but currently, only batch transactions are directly supported by the CPK.</p><p>In Gauntlet’s case we decided to reverse engineer the Safe-React (Safe UI) to extract the off-chain signature code, allowing us to sign with EIP-712 and to call the Safe Transaction Service to create a transaction in the Safe UI. Here’s the code we reverse engineered, if you’re curious: <a href="https://github.com/gnosis/safe-react/blob/5020c0daa31ecc0f26520f206deda5393502ad30/src/logic/safe/store/actions/createTransaction.ts#L53">https://github.com/gnosis/safe-react/blob/5020c0daa31ecc0f26520f206deda5393502ad30/src/logic/safe/store/actions/createTransaction.ts#L53</a>.</p><h3>👏 Conclusion</h3><p>Gnosis Safe is an incredibly powerful tool you should consider to manage your protocol, project, or company funds and any transaction automation — just like we do at Gauntlet. Individuals should also consider it if you participate in DAO governance, yield farming, and much more.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f5dbe67c1c2d" width="1" height="1" alt=""><hr><p><a href="https://medium.com/gauntlet-networks/multisig-transactions-with-gnosis-safe-f5dbe67c1c2d">👛 Multisig transactions with Gnosis Safe</a> was originally published in <a href="https://medium.com/gauntlet-networks">Gauntlet</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This 2 minutes read will give you 1 hour back a day, everyday!]]></title>
            <link>https://feulf.medium.com/this-2-minutes-read-will-give-you-1-hour-back-a-day-everyday-4f59f8c09779?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f59f8c09779</guid>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Sun, 12 Jul 2020 19:09:40 GMT</pubDate>
            <atom:updated>2021-06-28T14:16:21.858Z</atom:updated>
            <content:encoded><![CDATA[<h3>This 1 minute read will give you 1 hour back. Everyday!</h3><h4>…</h4><ol><li>Spend less time on Social media—take a social media diet.</li><li>Read the news once a day or once a week.</li><li>Have a todo list every day, add to your list things you’d do anyway such as “make the bed”, “breakfast” and “drink water”. Checking a few things will make you feel accomplished and will push you to do bigger ones!</li></ol><p>Take breaks and enjoy your summer! Or whatever season you’re reading this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f59f8c09779" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin White Paper — Down Into the Rabbit Hole]]></title>
            <link>https://medium.com/coinmonks/bitcoin-white-paper-down-into-the-rabbit-hole-efbaeba3a83e?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/efbaeba3a83e</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Sun, 27 Oct 2019 12:48:29 GMT</pubDate>
            <atom:updated>2020-08-26T10:51:55.430Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WEnZ5Gwk_X5c9BQ_OP1dwQ.png" /></figure><h3>Bitcoin White Paper — Down Into the Rabbit Hole</h3><p>The Bitcoin White Paper is a freaking rabbit hole. To understand it you need to know about cryptography, networking, game theory, economics, computer science and so on. I’ll try to simplify it for you!</p><p>To understand the paper you’ll have first to understand:</p><ol><li><a href="https://www.youtube.com/watch?v=_MwqAaVweJ8">The Byzantine Generals’ Problem</a> (BGP), watch the video to grasp the concept.</li><li>Double-spending problem: this is the central topic of the paper, how to avoid someone to copy/paste the digital cash in a decentralized system.</li><li><a href="https://medium.com/tech-tales/what-is-hashing-6edba0ebfa67">Hash functions</a>, used for finger-printing transactions and other things.</li><li><a href="https://www.notion.so/learnbitcoin/Asymmetric-Cryptography-0b41effeb061471dad6044b9b127af25">Asymmetric Cryptography</a>, used for digital signatures.</li></ol><h3>Bitcoin: A Peer-to-Peer Electronic Cash System</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/788/1*SUTZ2RfNSVbUD9vA5iN1pg.png" /></figure><p>The paper was published by Satoshi Nakamoto in October 2008 on <a href="https://satoshi.nakamotoinstitute.org/emails/cryptography/1/"><em>The Cryptography Mailing List</em></a>.</p><p>❓<em>Who is Satoshi? Still a mystery.<br></em>⚠️ <em>Satoshi owns ~ 1 million bitcoins!</em></p><h4>Abstract</h4><p>Peer-To-Peer electronic cash can be achieved with <em>digital signatures</em>, but the problem is we avoid <em>double-spending.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hk5mpjsKCBW6-Ge9QHwyIg.png" /></figure><p>The proposed solution is a P2P network that timestamps the transactions by hashing them into an ongoing chain of hash-based proof-of-work — the blockchain.</p><p>⚠️ <em>Satoshi built the code before writing the paper.</em></p><h3>1. Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HkceD_zAMrtvYIDqea1NAQ.png" /><figcaption>Introduction</figcaption></figure><p>Online payments rely completely on financial institutions. Transactions are reversible so fraud is accepted and priced into the system.</p><p>A payment system based on cryptographic proof instead of trust would make transactions irreversible.</p><p>⚠️<em> Bitcoin is censorship-resistant. This important feature is not mentioned in the paper.</em></p><h3>2. Transactions</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xUfdC6FoZHL5WJPuWbwrDA.png" /></figure><p>Bitcoin defines a coin as a chain of digital signatures. Each owner transfers a coin to the next owner by digitally signing the hash of the previous transaction and the public key of the next owner. Sounds good? 👍</p><p>How does the payee know that the payer didn’t double spend?</p><p>To solve this w/o a central authority we need to publish all the transactions, and the participants of the network need to agree on which order they happened.</p><h3>3. Timestamp Server</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CwkWsrz85AnfY6At1gk8Gg.png" /></figure><p>A timestamp server could take a list of items and publish their hash into a newspaper or Usenet. The timestamp proves that that piece of information existed at a certain time.</p><h3>4. Proof-of-Work</h3><p>To implement a peer-to-peer distributed timestamp Satoshi proposed to use a <em>Proof of Work </em>system similar to <em>Adam Back’s Hashcash. </em>Hashcash is a clever way to reduce email spam by using <em>Proof of Work (PoW)</em>. Proof of Work is a mathematical puzzle that requires time to be solved.</p><p>The puzzle goes this way: it takes an input, add a random string to it (nonce), runs it through a hash function, the PoW is found when the output starts with a number of 0s. Finding a PoW with more 0s becomes increasingly difficult. In the following example, we’re searching PoW with difficulty 4 of “Hello World!”:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gqKBWqiUK0goEpXe5iTnbA.png" /><figcaption>PoW with difficulty 4 of “Hello, world!” is the nonce “4250”</figcaption></figure><p>In Bitcoin, we find the PoW of the block including the previous hash. When we change any information in any block we need to re-run PoW in that block and all the next blocks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2L8JhBkTmePDnhIqEGV8bA.png" /><figcaption>Timechain</figcaption></figure><p>⚠️ <em>The network follows the correct chain with the most work (PoW), not the longest chain.</em></p><p>⚠️ <em>The genesis block and other blocks are hardcoded in the Bitcoin code as checkpoints. Attackers can’t revert the chain below those checkpoints. The last checkpoint is in 2014.</em></p><p>⚠️ <em>Bitcoin dynamically adjusts the difficulty every 2016 blocks (2 weeks), so that the network keeps mining block every ~ 10 minutes.</em></p><h3>5. Network</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rIgJ9CAuy_3Woo0NE8_ijw.png" /></figure><p>The network adds all the transactions into a block, then run PoW.</p><p>When PoW is found, the block is broadcasted. When the block is accepted the network starts working on the next block.</p><h3>6. Incentives</h3><p>The first transaction in each new block is the mining reward. This is the incentive that goes to the winning miner in their efforts to support the network. Its function is also to fairly distribute the coins in circulation, via this PoW competition. The steady addition of new coins is analogous to gold mining—hence the term Bitcoin mining 🤯!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wggo6uDg1fpajEnFOLmMBw.png" /></figure><p>Another incentive to mine honestly is to capture the transaction fees.</p><p>When all the coins have been mined by the year 2140, the mining network can transition to profit entirely from transaction fees without the need for a block subsidy.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*piDu1C2tL7KPzF9br8Jx5A.png" /></figure><p>Basically the rewards structure is such as an attacker will find more profitable to play by the rule.</p><p>⚠️ <em>There will be only 21 million bitcoins. That is defined in the code.</em></p><p>⚠️ <em>The last coin may never be mined.</em></p><h3>7. Reclaiming Disk Space and 8. Simplified Payment Verification</h3><p>Satoshi was aware that the blockchain could have grown in space. To solve this problem the transactions are organized into a data structure called <em>Merkle Tree</em>. The tree can be used to verify transactions and can be pruned to save space.</p><p>Simplified Payment Verification nodes, or SPV nodes, keep a pruned version of the blockchain, making the node lighter.</p><p>⚠️<em> SPV nodes are not considered secure. A new better solution called Neutrino is in the work.</em></p><h3>9. Combining and Splitting Value</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bJifexM81y4wzFWfkarEEA.png" /></figure><p>A common misconception is that Bitcoin’s transaction system is based on accounts and balances. It uses a transaction system called the UTXO model.</p><p>Each transaction contains multiple inputs and outputs.</p><p>Normally each transaction has one input and at most two outputs, one for the receiver and one for the sender to take the rest. Think of paying $7 with a $10 bill, we’ll get back $3 in form of changes. Input and output must be the same amount to be a valid transaction.</p><h3>10. Privacy</h3><p>In the traditional privacy model, the central authority knows the identities and transactions. In the Bitcoin privacy model, transactions are public and identities are private.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9RBJCtek6HYDhJ56eFK-eg.png" /><figcaption>Bitcoin privacy is the one in green</figcaption></figure><p>However, if the owner of a key is revealed, linking UTXOs can reveal all the transactions from that identity (Bitcoin address).</p><p>⚠️<em> Today is possible to make it much harder to follow the bread crumbs 🥖🍞 by using coinjoins, lightning network, hierarchical deterministic wallets.</em></p><h3>11.Calculations</h3><p>An attacker can’t create new coins or invalid transactions, he can only reverse one of his transactions to take back the coins he recently spent. The probability an attacker finds the next block decreases as the number of blocks added to the chain increased. This section has a lot of math and statistics. Go read it if you’re into it, it’s quite fascinating.</p><p><em>⚠️The paper only noted the 51% attack, many new attacks on the system have been found since.</em></p><h3>12.Conclusion</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LLkOpNn3yaO5XSA56D85GA.png" /><figcaption>Conclusion</figcaption></figure><p>In conclusion, Satoshi proposed a cryptocurrency network. Amazing!</p><p>The system’s rules are enforced by its PoW consensus mechanism, and economic incentives help ensure that honest mining is more rewarding than malicious mining.</p><h3>References</h3><p>Ther reference section is also golden. It refers to, B-money, an early precursor of Bitcoin by Wei Dai. Haber and Stornetta paper on timestamping digital documents. Adam Back with Hashshcash. RC Merkle for the Merkle trees.</p><p>Curiously Bitgold by Nick Zsabo is not referenced here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PNolWRY-tNsSaXuTtcKnTw.png" /></figure><p>I hope you enjoy reading 🐰!</p><h3>Resources</h3><ul><li><a href="https://medium.com/@vanflymen/learn-blockchains-using-spreadsheets-b97ad92b9b4d">Proof Of Work</a>, this blog post explains with spreadsheets how PoW works</li><li><a href="https://www.meetup.com/Learning-Bitcoin/events/265307477/">The White Paper — Down Into The Rabbit Hole</a> we read the white paper in the Learning Bitcoin meetup. Join us if you want to learn more about Bitcoin.</li><li><a href="https://gist.github.com/harding/dabea3d83c695e6b937bf090eddf2bb3">Bitcoin paper errata and details</a>, A description of known problems in the paper, as well as notes on terminology changes and how Bitcoin’s implementation differs from that described in the paper.</li></ul><h3><strong>Thanks!</strong></h3><p>Thanks to <a href="https://twitter.com/itsminawhile"><strong>Alex Min</strong></a><strong> </strong>for reviewing and suggesting changes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jk-6csVVd_EcAlycE8o-tg.png" /><figcaption>Alice wakes up from the Rabbit Hole</figcaption></figure><blockquote><a href="https://coincodecap.com/?utm_source=coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://coincodecap.com/?utm_source=coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/0*OJ-qb5G6i863msBB.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=efbaeba3a83e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/bitcoin-white-paper-down-into-the-rabbit-hole-efbaeba3a83e">Bitcoin White Paper — Down Into the Rabbit Hole</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hyperfocus — book summary]]></title>
            <link>https://feulf.medium.com/hyperfocus-book-summary-cd0aaacf3385?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cd0aaacf3385</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[focus]]></category>
            <category><![CDATA[brain]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Mon, 23 Sep 2019 20:01:31 GMT</pubDate>
            <atom:updated>2020-07-27T16:56:05.039Z</atom:updated>
            <content:encoded><![CDATA[<h3>Hyperfocus — book summary</h3><p>Stay focused 100% on one task and one project is my biggest struggle.</p><p>I just finished reading Hyperfocus by Chris Bailey. The book has a lot of “<em>Yeah I knew that</em>” moments in it, but it’s also rich with valuable suggestions, and planning tools. So I thought to write a blog post to crystalize what I just read.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*D-OgeDB0YO8GgYLd" /><figcaption>Hyperfocus by Chris Bailey and The Leading Brain — my next read</figcaption></figure><blockquote>Highlight when you read a book and take notes inside it.</blockquote><h3>Switching off autopilot mode</h3><p>You often catch yourself doing stuff on autopilot. Being in the moment and aware of what you do can help you to improve your focus and productivity.</p><p>You can organize your tasks by type in the following matrix:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*IaqSq1kH1aOS7_a7.jpeg" /></figure><p>Meetings go on the top left corner. Coding goes on the top right, sometimes top left. For me, reading about Kubernetes or Bitcoin goes in the top right. You get the gist of it.</p><h3>Attentional Space</h3><p>Our attentional space is limited and we can multitask only certain tasks. Coding while listening to instrumental music 👌. Coding while listening to vocal music 😑, or driving and texting 😡—please just don’t!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t9CDOf6_K4Hleo_5QW9ZBg.png" /><figcaption>The limit of our attention</figcaption></figure><p>Certain tasks require full attention, for example you can’t read 2 books at the same time. While you can multitask many tasks, focusing on fewer tasks per time increases your productivity.</p><blockquote>Turn all of your notifications off while working.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2bZyPW5lclTyQdwQCmsYAA.png" /><figcaption>Do one thing at the time</figcaption></figure><h3>Hyperfocus—getting into the zone</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mgVTuhbPkJ9jCBU5iG861g.png" /><figcaption>Hyperfocus occupy the entire attentional space</figcaption></figure><p>Being in the zone is awesome! You feel euphoric, super productive, super smart.</p><p>You’re able to GSD and to work on hard problems.</p><p><strong>Hyperfocus: </strong>when the task your working on occupies your entire attentional space. Basically when you work on something that is difficult enough to take your full attention.</p><p>How do you get in the zone? It turned out you can prepare yourself and your environment to get there more often.</p><h3><strong>How to Hyperfocus?</strong></h3><ul><li><strong>Chose a meaningful object of attention. </strong>3 goals a day is a good balance.</li><li><strong>Eliminate distractions</strong>. Write down a list of what distracts you. And remove them when you want to get into the zone. Turn ALL notifications off.</li><li><strong>Focus with intention</strong>. Intention makes you actively focused and let you go back focusing when you lose the focus. Working on something that you don’t like, will keep you back.</li><li><strong>Draw your focus back</strong>. You get distracted more than you think. Thoughts come continuously to you. You have to actively bring back your focus.</li><li><strong>Relax, eat healthy, sleep, clear your mind from worries. </strong>Healthy life makes you happier, smarter and more focused.</li><li><strong>Take breaks.</strong> Our attention reduces with time. Taking break recharges it.</li><li><strong>Meditate! </strong>Meditation expands your attentional space. It relaxes you and it trains you to stay focused on a single task.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/990/1*GC1JRu0QclzWz6ltHdbAuQ.png" /><figcaption>The limit of our attentional space</figcaption></figure><ul><li><strong>Start feeling out how long to hyperfocus.</strong></li><li><strong>Anticipate obstacle ahead of time</strong>. Knowing that you’ll have to solve something, can prepare you to work on it. Getting ready before starting a task, often takes longer than the task. Sometimes I spend 20 minutes before doing the bed on distraction and 2 minutes to do the bed.</li><li><strong>Set a timer.</strong> Take 5 minutes time break every 15 and 15 after 45.</li><li><strong>Be specific.</strong> Our brain is more likely to start a task and to be successful at it when knows the location, the time, and the specifics of a task.</li></ul><h3><strong>Reduce distractions</strong></h3><ul><li><strong>When out, do a phone swap with your friend.</strong> Weird, yeah, but if you had a way to count how many times you pick your phone, you’d understand how much time you’re wasting!</li><li><strong>Put your phone in airplane mode</strong> <strong>when you’re working.</strong></li><li><strong>Put your laptop in “No Distraction”</strong>.</li><li><strong>Remove unnecessary apps from your phone</strong>. Emails for example. Bonus: use the 5 min email rule. Each email should never take longer than 5 minutes. If it does, schedule a phone call.</li><li><strong>Make a distraction list</strong>, so you know what triggers you.</li></ul><h4><strong>What makes you distracted</strong></h4><ul><li><strong>Stress and thoughts. </strong>Fear is the enemy of the brain. <em>Update Jul 2020: the pandemic made this the norm. If you feel emotionally exhausted, just know you’re not the only one!</em></li><li><strong>Boredom</strong>, you search for alternative things to do.</li><li><strong>Frantic environment.</strong></li><li>Questioning “Is this what should I be working on?”. Not have set an intention.</li></ul><h3>Scatterfocus—creative mode on steroids</h3><p>While Hyperfocusing helps you to work on a single task. Doing nothing or something boring helps you recharge and as well as enable you to be creative. Things that I do to get distracted are, taking a long shower, washing the dishes, walking around the block, people watching, talking with friends about random stuff.</p><h4><strong>The three style of scatterfocus</strong></h4><ul><li><strong>Capture mode:</strong> let your mind roam freely and capturing whatever comes up.</li><li><strong>Problem-crunching mode:</strong> hold a problem loosely in mind and letting your thoughts wander around it. You want to use this mode, when you’ve some difficult decision to take, such as a relationship, leaving/accepting a job.</li><li><strong>Habitual mode:</strong> engaging in a simple task and capturing valuable ideas and plans that rise to the surface while doing it. Research has found this model is the most powerful. Basically do what you like to do and get ideas as they come.</li></ul><h3>Recharging your attention</h3><p>Taking breaks, sleeping well, walking in nature and so on, makes you recharge. Resting is not idleness! Is necessary and is also how you solidify your thoughts and ideas.</p><h3>Connecting the dots</h3><p>Our brain is a constellation of dots. Connecting random thoughts is how creativity works.</p><p>Uncompleted tasks and projects weigh more heavily on our minds than the finished one. We’re wired to remember what’s in the middle more than what’s completed. This phenomenon is called Zeigarnik Effect.</p><p>Going into a habitual scatterfocus mode is how we can connect even more dots. Other ways are:</p><ol><li><strong>Put yourself in a creative environment</strong>. That reduces your focus and increases your scatterfocus.</li><li><strong>Write out your problems</strong>. Writing crystalize your ideas makes you discover a few dark corners.</li><li><strong>Sleep on a problem</strong>. My girlfriend is a working actress, she practices screenplay right before going to sleep. The next day she remembers them word by word.</li><li><strong>Step back</strong>. Imagine a small hill with sand. Pour water at the top and you’ll the water forming random paths, rivers. When you stop pouring water and let it dry. Then pour again, the water will form new random paths. Step back and let your brain find alternative ideas.</li><li><strong>Intentionally leave tasks unfinished</strong>. If you’re working on something creative, that’s a good way to keep it going in your mind.</li><li><strong>Consume more valuable dots</strong>. Read, learn, talk with people.</li></ol><h3>“Collecting” the dots</h3><p>Learning about things increase the number of dots you can connect and your creativity. Chris suggests dividing the information we collect by usefulness and entertainment value.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/792/1*MYMN-E07wyX9U-G9iV-6mw.png" /></figure><p>He suggests limiting trashy information because they won’t help you with your goal. I look at trashy information in a different way. In fact, I once was working in a toxic environment, every day during lunch with our colleagues we were able to disconnect ourself from the issues by talking about random stuff. Things like how may hotdogs Kobayashi can eat, and the technique Chesnuts used to destroy him.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/0*g4Wq8cpex5T4cfBK.jpg" /></figure><p>The etymology of the word Octopus. Or one of my favorite sharing Mini Keanu memes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/717/0*VjlbYRZUE4CPneef.jpg" /></figure><h4>How to collect more dots</h4><ol><li><strong>Consume things you care about.</strong></li><li><strong>Eliminate some of the trash.</strong> The good trash that makes you laugh and connect with friends, is good to keep it updated. If reading about the Kardashians makes you happy, go for it.</li><li><strong>Choose a few valuable things to add.</strong></li><li><strong>Notice what you consume on autopilot mode.</strong></li><li><strong>Veg out… intentionally.</strong> When you decide to watch an entire season of Genius, do it with intention and plan for it, that will help you not feeling guilty.</li><li><strong>Reevaluate what you’re consuming as you’re consuming it.</strong></li><li><strong>Get things to bid your attention.</strong> Decide what deserve your attention.</li><li><strong>In the moment, zoom out.</strong> Observe what you’re doing from far. If you feel like, you’re wasting time, maybe you are. Understanding the effect of your actions nudge you to consume more valuable information.</li><li><strong>Invest in serendipity.</strong> Wikipedia, Reddit AMA, going on meetups. I personally decided to work as a bike messenger for a month. That helped me made friends on the way and opened up a few interesting discussions.</li><li><strong>Double down on what’s valuable. </strong>Hang out with people that share your passion and make you grow. Consume more information that is valuable.</li></ol><h3>Working Together</h3><ul><li><strong>Blend “hyperfocus” and “scatterfocus”.</strong></li><li><strong>Invest in your own happiness.</strong> A positive mood expands the size of your attentional space. Regardless of which mode you’re in.</li><li><strong>Work around your energy levels.</strong></li><li><strong>Drink alcohol and caffeine strategically.</strong> Alcohol can help you be more creative and caffeine more focused, in the right dosage! Weed and drugs may help, but I’m not a fan. I do take relaxing pills before important meetings or during stressful situations: Theanine Serene, they’re out of the counter and all natural.</li></ul><h3>Conclusion</h3><p>You’re at your best when you’re healthy and happy and have a plan. So spend more time making a plan so you can focus on one thing at the time, and enjoy your life when you’re free.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cd0aaacf3385" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysis of Libra Blockchain–part 2]]></title>
            <link>https://medium.com/coinmonks/analysis-of-libra-blockchain-part-2-9550d53892ad?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/9550d53892ad</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[libras]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[language-moves]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Thu, 19 Sep 2019 23:53:48 GMT</pubDate>
            <atom:updated>2020-08-26T11:30:54.517Z</atom:updated>
            <content:encoded><![CDATA[<p>Hello! Part 1, <a href="https://medium.com/@feulf/analysis-of-libra-facebook-cryptocurrency-part-1-cb20fbf798b1">Analysis of Facebook Libra</a>, was about the Libra white paper. Part 2 is about the <strong>Libra Blockchain</strong> white paper, also called yellow paper. I’m going to highlight what I think important and explain it. So let’s go!</p><h3>First Page</h3><p>This is not your typical crypto white paper full of shit. It has 45 authors, product managers, engineers, researchers, and economists. Surprisingly just a few of them have prior blockchain experience. Weird.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*B8Om-S8XycO3uaQBnGnN3Q.png" /></figure><p>Libra is a decentralized, programmable database. Ah! Is not a blockchain!? No is not, as we’ll see in a moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TN7Uv8zG1x-Sb08OSNZHCQ.png" /></figure><p>The full nodes are referred to as validators.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Nft1DhWeW8wdw71ILdRA5g.png" /></figure><p>Validators keep the database in sync with the Libra protocol. The DB stores a ledger of the resources, such as the Libra coins.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HQceIr498E540RsVuXYHHw.png" /></figure><p>Two types of entity interact using the Libra protocol: the validators and the clients.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EjWWBucKCW7sp402mZnYqw.png" /></figure><p>Validators take turns as a leader to validate the transactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3TYpqC0ThM5I1cDqU7MVqQ.png" /></figure><p>Clients can keep a copy of the ledger. What use could they do with it? I guess none, since clients don’t have governance power. In Bitcoin, everyone can be a full node and become part of the governance. That’s clearly not the case in Libra.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*a5spCLIA96DRZ1ARUeyMbA.png" /></figure><h3>The Ledger</h3><p>All data is stored in a single versioned database. Each transaction is sequential. This basically means that there’s a single source of truth. Is still not clear how Libra manages network partition and forks. How a blockchain/database reorg happen and how is resolved.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eQIRPtIu4tYKPiiVC65AjQ.png" /></figure><p>Libra uses an account-based data model just like Ethereum. That data model is simpler than the Bitcoin’s UTXO model, which focuses on security.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pqKDwVxGLgKX9WFwExBGzw.png" /></figure><p>Some technicality for generating a private and public key. Nothing new here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rNAnJGcxKVdtbRoV3jeGpg.png" /></figure><p>Oh shit! Libra is pseudo-anonymous like Bitcoin or Ethereum. Well, until you create a wallet connected to Facebook via Calibra, then you’re not anonymous and you’re probably deanonymizing the people you’re transacting with.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M08SOUUAih6zgkVJxlSw-g.png" /></figure><h3><strong>Resources and Models</strong></h3><p>In Libra tokens (resources) and smart contracts(models) are separated, and both are first citizen.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NsdKsrydOaDygUSiSDvlgQ.png" /></figure><p>A module defines the behavior of a resource. Libra smart contracts are written in Move.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cBvHMWMtYSvNJT6Uwu6K4Q.png" /></figure><p>In case you’re wondering, yes, Ethereum got this wrong.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/750/0*HQ7cL85KYuxU0j4T.jpg" /></figure><p>Models are immutable (for now)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m_7b4Uv90xHscEXL_ufXWA.png" /></figure><h3>Transactions</h3><p>The only way to change the state of the blockchain is by executing a transaction. Nothing strange.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yEQnxJMUYLRocUQVtJ9ehw.png" /></figure><p>All the core components of Libra are defined in the genesis state as Move models and resources. For example the Libra coin, the logic of accounts, the transaction validation and validator selection.</p><p>Basically the Libra core components are defined at the smart contract level, wherein Bitcoin are defined at the core level.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8NoHQseTANtKtACJtlRWw.png" /></figure><p>Transactions are deterministic: Libra is a state machine.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XZqbRPGn99ouR2AFI2WyA.png" /></figure><p>Libra transactions have a fee cost, just like the Ethereum gas model. This is to avoid a DOS attack. I’m assuming from this that Libra is a Turing Complete machine, like Ethereum. As opposed to Bitcoin.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d63BER4a-GjXbK3wLaQ1tg.png" /></figure><p>The fee is calculated by the cost of an action and the price of the gas at that moment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-X2DPRzZ4ZXJzbLroJPn2Q.png" /></figure><h4><strong>Transaction structure</strong></h4><p>Probably not worth reading, but I’ll post it here anyway.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Dd8z7brIggnBo9kgDXzTCA.png" /></figure><h4><strong>Executing Transactions</strong></h4><p>Same. If interesting to you, read it. But in short, there’s nothing new here.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M8VARd1VZs_3_0bqYLgboQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r2a6hZP33JY3SwEOTWxc8A.png" /></figure><h3>Move Programming Language</h3><p>Aw shit! The Libra team decided to create a new programming language. What’s cool about it? The clear separation between tokens and smart contracts as we’ll see.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bLAMKRa04fH_0fvjwd_YQw.png" /></figure><p>Transactions scripts are the main procedure in the Libra protocol. A transaction is a Move script. This means you can program Libra coin to send on each transaction 0.1% donation to a wallet—I could really appreciate that.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xl_tHOPrV17-u6kC0oxklg.png" /></figure><p>The relation between modules and resources is comparable to the relationship between classes and objects.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jHksV-dhRRtGI4Zz1azctw.png" /></figure><p>This reads just as “Fuck you Ethereum. We got this right.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QOO6koa4Zx6xqGiUaApOQg.png" /></figure><h4>Move virtual machine</h4><p>The Move virtual machine is basically an interpreter that compiles Move into bytecode.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9BfeHgeCAlnill_gOettlA.png" /></figure><p>This section shows how Libra uses Merkle Trees signs each transaction.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*2JZQvLE-A0-Rr1BktdnSxQ.png" /></figure><p>Here, in fact, is explained how the ledger uses a single Merkle Tree to provide the history.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0XxCyX5Z2H5i1q6Z76X-IQ.png" /></figure><p>Because is the history is a Merkle Tree, it can be pruned to reduce the necessary storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cdwCDrqDbe9QqtTNYpZFTw.png" /></figure><h3>Libra Consensus Algorithm</h3><p>Libra consensus algorithm uses the HotStuff BFT protocol.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mM21IPPv_WBDMU9IfLiqcA.png" /></figure><p>Libra engineers evaluated different BFT-based protocols and decided to use HotStuff BFT because is simple and modular. And because was promising in the early experiments. This means that Libra may change it later on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HK_fxgULJiBaLA9DOGvM7w.png" /></figure><p>I’m always hairy about too smart sentences. This is basically saying that the validator elections are managed by a Move module.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SDrL6TWYZjyBQ8JZYlULZA.png" /></figure><p>Each change of validators is called New Epoch.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CuDsZXKJpMkg_RVAk4KVMg.png" /></figure><h3>Networking</h3><p>Too long to read. In short, Libra nodes are connected via peer-to-peer via TCP.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9ndCdi7en38cIvTOmKolww.png" /></figure><p>Libra protocol can manage 1000 payments/transactions per second. With a 10 second of finality to make sure they’re irreversible. Considering the semi-centralized validator system, it seems a reasonable number to me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sH8eRspbSV55aNDKujLLEQ.png" /></figure><h4><strong>Validator Requirements</strong></h4><p>Validators need 40 MBps of internet connection. That’s not a lot honestly. Also required 16TB of SSD storage. That’s a lot of space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f4nH5X4nOfCnCkrLc4WhcQ.png" /></figure><h3><strong>Libra Reserve</strong></h3><p>Why the Blockchain paper talks about the reserve. Because, this is related to the incentives to the validators. As we’ll see soon after.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1QiT6HYNC-9W3vmm1T2Njw.png" /></figure><p>The reserve is managed by the Libra Association. A closed group of Founding Members. In the future, this should be open, and it may require different market incentives. The authors here admit that Proof of Stake may have some governance issue, and we need to explore mechanism to protect the smaller stakeholders and the service providers. <strong>This means: PoS is an experiment.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-VbYgzazXBZowtNVPmb7wQ.png" /></figure><p>We’re working to launch Libra Blockchain with the Libra Association</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xOvo4fzJG8H_CIKvKJPMTg.png" /></figure><h3><strong>Libra Blockchain—My thoughts (2)</strong></h3><p>I find Libra to be a fascinating project. Why? 8 years ago I asked my CTO to get my salary in Bitcoin. I was laughed at. Every year one colleague (you know who you are) keep telling me “Bitcoin is dead. It’s just ded.”.</p><p>Today Facebook one of the largest company in the world is creating its own cryptocurrency. Just think about it.</p><p>From a tech perspective, Libra is not a breakthrough—it’s a decentralized database—yet is interesting, because its DNA gives us hints for the Facebook strategy.</p><p>Libra is designed to be pseudo-anonymous. Although Calibra may be able to deanonymize the FB accounts who use Libra.</p><p>The LibraBFT is designed to decentralize the governance with the Libra Foundation. Facebook knows that regulators will try to stop it. Decentralizing liabilities, compliances, KYC/AML, reserve, etc. IMHO is an attempt to go around the regulator. While maintaining an indirect control on the blockchain.</p><p>Libra is a really interesting project. My favorite part of Libra is that it confirms Bitcoin. In fact, Bitcoin it’s also cited at the end of the paper.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I8c-hlZvqk6SeQQG7UCPHQ.png" /></figure><p>Like it or not. Libra is an important step towards a global change of our economy. And Bitcoin is here to stay!</p><blockquote><a href="https://coincodecap.com/?utm_source=coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://coincodecap.com/?utm_source=coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/0*OJ-qb5G6i863msBB.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9550d53892ad" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/analysis-of-libra-blockchain-part-2-9550d53892ad">Analysis of Libra Blockchain–part 2</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Analysis of Libra Facebook Cryptocurrency–part 1]]></title>
            <link>https://medium.com/coinmonks/analysis-of-libra-facebook-cryptocurrency-part-1-cb20fbf798b1?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cb20fbf798b1</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[libras]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Wed, 26 Jun 2019 05:22:23 GMT</pubDate>
            <atom:updated>2020-08-26T12:46:05.359Z</atom:updated>
            <content:encoded><![CDATA[<h3>Analysis of Facebook Libra — The Cryptocurrency — part 1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Lr4824sxUZhCwcBAmqqYzw.png" /></figure><p>There’s a lot to cover about the Libra project and a lot more to uncover. I’ll take it one step at the time. In this first blog post, I’ll analyze the Libra project and do a 10k feet introduction–sharing some of my thoughts on it.</p><h3>What is Libra</h3><p>Libra is a programmable stablecoin created by Facebook. The stability comes from a reserve backed by a basket of fiat currencies and other assets with low volatility. Libra is made by 3 parts:</p><ol><li>The <strong>Blockchain</strong>, which holds the transaction history.</li><li>The <strong>Reserve, </strong>which keeps the currency stable.</li><li>The <strong>Libra Association</strong>, responsible for the governance and for mint/burn the currency.</li></ol><h3><strong>Why Libra?</strong></h3><p>Facebook wants to provide economic access to 1.7 billion unbanked. At least that is the mission on the <a href="http://libra.org/">libra.org</a> website. I believe the master plan of Facebook is to access a global multi-trillion dollar market. My speculation is that Libra and the Libra Foundation are a very smart attempt to decentralize the custody of the reserve, and consequently delegating the KYC/AML to each member in their own country. Basically, a way to go around regulation.</p><p>As you probably know Facebook oil is the user data. But, Libra is pseudo-anonymous, meaning you can create a wallet and remain anonymous. Introducing Calibra, the Libra wallet. With Calibra, Facebook will be able to connect the user identity to a wallet, tracing all the transactions. Very clever.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*poBzZoZjKT-owXpo" /><figcaption>Calibra. Libra Facebook wallet.</figcaption></figure><h3><strong>The blockchain</strong></h3><p>Libra blockchain is derived from HotStuff. A leader base consensus mechanism, that uses a validator model, with staking and voting (PoS) to accept transactions. Libra is NOT a blockchain. It’s a DLT. The transactions are stored with an accounting model (think Excel). The history of the transactions is kept with a Merkel Tree.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9xBXcy9_hThJcInipmbe3Q.png" /><figcaption>Overview of the Libra protocol.</figcaption></figure><h3>The Reserve</h3><p>The value of Libra is created by a basket of fiat currency and other low volatility assets, such as central bank bonds (of stable countries), and other unspecified. Libra is effectively an IOU. The Libra website says that each member will keep a full reserve–auditing ain’t easy. So the truth is it won’t take long for the reserve to become fractional.</p><h3>The Libra Association</h3><p>The member of the Libra Association will be staking the initial reserve, as well as becoming a validator node. The validator nodes are responsible for mint/burn the coin. The incentives to join the association are clear: seignorage, return in fees and potentially reinvesting the funds to yield more returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*3G76pgFRC-rku9cF.png" /></figure><h3><strong>Move: Programmable Money</strong></h3><p>Libra implements Move a new programming language. Move clearly separates the data from the code, specifically resources, and models. Resources represent the data, such as the tokens and the list of validators. Modules are the containers of the resources, that defines the rules of those resources. What’s interesting is that Modules are extensible, this means that you’ll be able to create roles for how your Libra will behave.</p><p>Here’s a code example:</p><pre>module Currency {<br>   resource Coin {value: u64}<br>   // ...<br>}</pre><p>In the white paper, there is no mention about Move being Turing complete, but each command will have a gas cost, just like in Ethereum.</p><figure><img alt="" src="https://cdn-images-1.medium.com/proxy/1*lsczFjmViThqtCfoLvJjNw@2x.jpeg" /><figcaption><a href="https://blog.softwaremill.com/comparing-ethereum-and-the-libra-blockchain-64bec7dd70c0">ERC20 vs Libra Resources/Modules</a></figcaption></figure><h3><strong>Conclusion</strong></h3><p>Facebook shared a ton of resources about Libra. Part of the Libra project is open source. The other is closed.</p><p>The blockchain, the Move language, and the Libra client are open source. The white papers leave a few details open to future research and improvements. For example, Libra did not solve the scalability problems that Ethereum and other blockchain are still trying to solve.</p><p>The validators, the reserve and other specifics of the project are private. Leaving us with many open questions:</p><ul><li>How the Libra Foundation will operate?</li><li>Who’s going to do the KYC/AML?</li><li>What are the regulators thinking about?</li><li>What currencies and assets will be part of the basket? Is Bitcoin or other cryptocurrency going to be included in the basket?</li><li>Is it going to be a full or a fractional reserve?</li><li>What will be the value of 1 Libra?</li><li>How Facebook is going to monetize on it? Is that through the Calibra Wallet project, and if so, how?</li><li>What kind of incentive will Libra offer to the user to drive adoption?</li><li>After the Russian interference with the US election and the disaster with the Cambridge Analytica, the most pressing of all questions is: Can we trust Facebook?</li></ul><blockquote><a href="https://coincodecap.com/?utm_source=coinmonks">Get Best Software Deals Directly In Your Inbox</a></blockquote><figure><a href="https://coincodecap.com/?utm_source=coinmonks"><img alt="" src="https://cdn-images-1.medium.com/max/584/0*OJ-qb5G6i863msBB.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cb20fbf798b1" width="1" height="1" alt=""><hr><p><a href="https://medium.com/coinmonks/analysis-of-libra-facebook-cryptocurrency-part-1-cb20fbf798b1">Analysis of Libra Facebook Cryptocurrency–part 1</a> was originally published in <a href="https://medium.com/coinmonks">Coinmonks</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Entrepreneur Trilemma]]></title>
            <link>https://feulf.medium.com/the-entrepreneur-trilemma-22af0b18e141?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/22af0b18e141</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[behavioral-psychology]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[startup-growth]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Fri, 12 Apr 2019 17:55:32 GMT</pubDate>
            <atom:updated>2019-05-18T17:35:39.723Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*2ruzVe-lvxaulKR-.jpg" /></figure><p>Your co-founder got a brilliant idea to solve the problem of saving all the kitties in the world. Fantastic! He raises the money and you take care of building the product.</p><p>He gets just enough to run for 3 months. Your idea is to create a kitten-rescue team and then a market place for kitties to give them in adoption. Then your co-founder asks you for a mobile app, a web app, with a cool design, and ask you do get it done in ONE month, because “each second our idea is not built a kitten dies!”.</p><blockquote>You can only have 2 options between Cheap, Fast and Good. Welcome to the Entrepreneur’s Trilemma.</blockquote><p>Think about the project you’re working on right now at your job. What project you’re working on right now? Is this your project or you’re working for someone? Really it doesn’t matter, because you will still have to pick only 2 options. That’s called project-management trilemma.</p><h4>The Project-Management Trilemma</h4><p>Any project can be fast, cheap or good, it can be only 2 of them at any given time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*6mm04IungEY_ffqt" /></figure><p>These triangle models are called <a href="https://en.wikipedia.org/wiki/Trilemma">trilemma</a>, they’re used to understand and solve different types of problems across systems, and even social situations.</p><h4>The CAP Theorem</h4><p>A common triangle model is the CAP theorem: a distributed system can be only 2 of the following: Consistent, Available or Partition tolerant.</p><p>Databases such as Cassandra offer availability, partition tolerance, and “eventual consistency”. A nice way to prioritize the most important two and “eventually” to get the third one.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/511/0*xeNcl_DqUsz7LsB4.png" /></figure><h4>The Blockchain Trilemma</h4><p>In blockchain or in general in any DLT, the trilemma is between Decentralization, Scalability, and Security. When you hear about a blockchain that is faster than Bitcoin and with the same security, you know for a fact that is more centralized, and therefore not censor resistant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*sjesi9ORiu3HuE8I" /></figure><h4>The Drama Triangle</h4><p>You may have not heard of the <a href="https://en.wikipedia.org/wiki/Karpman_drama_triangle">drama triangle</a>, but you definitely lived through it many times, in different situations. You were late to complete a project and your boss blamed you. You were the victim, your boss the persecutor.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/504/0*xJARgQLO-TgGoDMI.gif" /></figure><p>In a partnership relationship, during different arguments, you often jump from one role to the other. The way you avoid the drama is choosing to stay in the center of the triangle, basically choosing no option. This requires self-awareness and maturity.</p><p>Try to recognize your role and the role of your partner next time you have an argument.</p><h3>The Entrepreneur Trilemma</h3><p>OK. Let’s get back to our initial problem. When you’re working on a project you have to pick between fast, good and cheap. Like in the CAP theorem, you need all of three at some point, as an entrepreneur, you’ll have to choose fast, cheap, and “eventually good”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*UgMEdcZDvnN1vn5pP79XbQ.png" /><figcaption>Entrepreneur’s Dilemma — at first you must be fast and cheap</figcaption></figure><h4><strong>Divide and Conquer</strong></h4><p>Understand the problem you’re solving better than anyone else, that includes researching and building quick prototypes, to better understand the problem and to test the (cheap-fast) solution.</p><p>Once you understand the problem well, you want to divide and conquer, breaking down the problem into more manageable components. The scaffolding (or foundation) that keeps those components together must be really solid and good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/363/1*TS0b9rcwXc-N82O0RSaMIQ.png" /><figcaption>The foundation must be good!</figcaption></figure><p>When doing divide and conquer at the application layer and even at the infrastructure layer, make sure you’re following the <a href="https://en.wikipedia.org/wiki/SOLID">SOLID principles</a>. In brief, those are principles to design architectures that are modular, so that you can build a component in a cheap way, and later replaced it with a good component.</p><h4>Functional Layers</h4><p>Your first divide and conquer should be dividing UI, backend. And have them communicating via API. In the UI layer, you may want to use React or Angular. In the backend, go for the language you’re more comfortable with.</p><h4><strong>Monolith vs Microservices</strong></h4><p>Another divide and conquer opportunity is in the backend. You can divide your APIs into a monolith (with components) or into microservices.</p><p>5 years ago I’d suggest you going monolithic to start. Today I suggest starting microservice from day one.</p><p>Infrastructure as a Service is mature, serverless solutions and container orchestration solutions allow to build microservices architecture very easily, quickly and cheaply.</p><p>Designing a good architecture is very difficult, it requires experience and knowledge. So before jumping into it, read all the possible contents about microservice from <a href="https://martinfowler.com/articles/microservices.html">Martin Fowler’s blog</a>, and learn as much as you can from someone who went through the pain of running microservices in production.</p><h4>Buy vs Build</h4><p>This is a question that will come at any step of the development, and it will come up in different forms.</p><p>At the application layer, most of the time you want to use open source packages. At the infrastructure level, you may have to actually buy a service, such as GCP or AWS.</p><h3>Save the kittens</h3><p>Did I mention that you need to have a “Why”, a “How”, and a “What”?</p><p>Your “Why”, or vision, is to save the kittens. Your “How”, or mission is how you’re going to save them which means you’ll need to have a kitten rescue team, then a market place where you can adopt the kitten, a customer support line, etc.</p><p>In this blog post, we focused only on the implementation, or the “What”. Remember that any successful business always <a href="https://www.ted.com/talks/simon_sinek_how_great_leaders_inspire_action?language=en">starts with the Why</a>.</p><p>Now that you got new mental models and tools, go building a startup and start saving those kittens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xTMQY-nB0uQBvLOs.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22af0b18e141" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Cryptocurrency GitHub Score]]></title>
            <link>https://feulf.medium.com/cryptocurrency-github-score-8cf1dd8bb678?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/8cf1dd8bb678</guid>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[bitcoin]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Sun, 30 Dec 2018 18:54:47 GMT</pubDate>
            <atom:updated>2018-12-30T19:17:51.589Z</atom:updated>
            <content:encoded><![CDATA[<h4>Evaluating the tech team behind the top 10 cryptocurrencies</h4><p>These past years I spent too much time studying cryptocurrencies. I was reading white papers, checking GitHub repositories, running trading analysis, aggregating information from different APIs, and attending <a href="https://programmingblockchain.com/">Programming Blockchain</a> by <a href="https://medium.com/u/4acb12744ff8">Jimmy Song</a>.</p><p>My attempt to predict the price was most of the time wrong. Sometimes the price was lower than I predicted, more often higher. Trading is full of booby traps. The only way to survive is by having a strategy, with a stop loss, stop winning, and a lot of discipline to avoid falling into FUD/FOMO. Unless you plan to do HODLing for 10+ years, kudos to you!</p><h3><strong>What determines the price of a cryptocurrency?</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Na78dmbwWea_hEwy.png" /></figure><p>Cryptocurrency market caps are correlated mostly by the type. For example, Decentralized Exchanges such as Komodo, BitStamp, Wave, and 0X in 2017 hovered around the same market cap for a while. Similarly did the crypto credit cards: Monaco, TenX, and Centra. Another example is the Smart Contract cryptocurrencies like Ethereum, Stellar, EOS, Cardano, NEO, with a cap very close to each other. Curiously, Doge and Mona also had the same market cap for sometimes, which brought me to the (wrong?) assumption that marketing, branding, and logo, are possibly one of the main reason investors decide the price. After all many investors simply buy what they like, without reading any white paper, checking the code, community, etc.</p><blockquote>The truth is nobody really knows how to price a cryptocurrency.</blockquote><p>The price discovery is a combination of the following:</p><ul><li><strong>Anchoring effect</strong> once established the price for a red apple, a yellow apple will cost about the same. The same happens to different crypto assets. Though, Bitcoin doesn’t really have anything to be anchored, aside from its own previous ATH and past ATH, which are very important anchoring levels. Cryptocurrencies are also directly correlated to Bitcoin, since most of their liquidity comes from Bitcoin.</li><li><strong>Speculation</strong>, hoping that Bitcoin is following the rainbow chart becoming the Internet/World currency and getting rich fast. Doesn’t set the price, but pushes it higher.</li><li><strong>Fibonacci and psychological levels (TA)</strong>, like in the stock market the price tend to follow very clear patterns near a Fibonacci series, sometimes the prices are simply “psychological walls”. Bitcoin has a few very important one: $1,200 was the top of Nov 2013 bubble and almost $20,000 in December 2017.</li><li><strong>Spoofing trade, washing trade</strong>, <strong>pump and dump, hacking attempt, 51% attacks</strong>, Crypto is out of the reach of the regulators, therefore, almost anything is “legal”. Insider trading is prohibited though hard to prove it.</li><li><a href="https://hackernoon.com/meet-spoofy-how-a-single-entity-dominates-the-price-of-bitcoin-39c711d28eb4"><strong>Spoofy</strong></a><strong> </strong>deserves its own bullet point. Spoofy is probably behind several price pump and dump.</li><li><strong>Adoption </strong>is what increases the minimum price of a cryptocurrency, although it doesn’t really set a specific price. Also is basically impossible to know exactly how many people are using a cryptocurrency (at least in Bitcoin), because 1 user can have N wallets, and 1 wallet can also have N users, in the case of an exchange.</li><li><strong>Predictable technical and economic fundamentals,</strong> that are intrinsic to Bitcoin and other cryptocurrencies. The Halving, for example, the difficulty for example, while the hashing power is not fully predictable, the growth and decrease are usually linear and predictable.</li><li><strong>Fundamentals</strong>, such as what problem the cryptocurrency is solving, how big is the market for that problem, what features offers. <a href="https://medium.com/@cburniske/cryptoasset-valuations-ac83479ffca7">Chris Burniske</a> does a good job explaining how to evaluate the Velocity of Money.</li><li><strong>Soft and Hard Forks, </strong>big changes brought through soft fork can be the spark for a rally, an example is when Segwit got activated, paving the road to solving the Bitcoin scalability problem. Hard fork, can be even more effective in price changing, the sum of the market cap of the 2 forks, is much higher than the initial one.</li><li><strong>Moon phases and other random stuff</strong>, hard to believe, though Bitcoin is somehow synchronized with the phase of the moon. On January 31, 2018, we’ll have the <a href="http://time.com/5489267/super-blood-wolf-moon-total-lunar-eclipse/">super blood moon</a>, chances are the price will pump or dump.</li></ul><p>This past year I also spent several weekends talking about blockchain with <a href="https://medium.com/u/e6b17b7c57d5">Daniel van Flymen</a>. We mostly talked about the tech side, and we noticed that technical problems were correlated to price dropping, e.g. Cryptokitties (<a href="https://twitter.com/feulf/status/937526372725067776">https://twitter.com/feulf/status/937526372725067776</a>) or when Ethereum went over 1TB of blockchain size (<a href="https://twitter.com/van_flymen/status/999745959885262848">https://twitter.com/van_flymen/status/999745959885262848</a>).</p><p>While bugs and certain bugs are unpredictable, the quality of the tech team is a predictor for the quality of the code. Consequently, we believe is also a better predictor for the success of a cryptocurrency project in the long run.</p><h3>Introducing <strong>Crypto — Git — Score</strong></h3><p>This is an experiment/attempt to evaluate the quality of a cryptocurrency project by scoring the engineers behind it. To score the engineers we’ll use <a href="http://gitscore.com/">git-score.com</a>. Git-score generates the score for each contributor by analyzing his/her public metrics, such as the number of commits, PR, followers, etc.</p><blockquote>“Hey! That’s bs, what about all the private contributions?! And what about the quality of those contributions?!”</blockquote><p>And you’re right! Git-Score serves only to get an indicative quantitative score. So let’s keep that on our mind and let’s run our experiment with the clear expectation that the data is not exact.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JhN3iRUByidxyNgR_On2Ug.png" /><figcaption>This is my git-score</figcaption></figure><p>Like any other projects, our first step will be to set gather the requirements and to prepare an execution strategy.</p><p>Our goal is to analyze the GitHub score of the top 10 cryptocurrencies by market cap. This means that we’ll need to use coinmarketcap.com, the GitHub APIs, and the git-score APIs.</p><ol><li>Bootstrap the project</li><li>Collect the data</li><li>Analyze the data</li><li>Implement the API</li><li>Visualize the data</li></ol><h3>Bootstrap the project</h3><p>Daniel and I, during a night hackathon, bootstrapped first the project in Python Django, just to get down the idea.</p><p>Last year I built a similar project to collect cryptocurrencies prices, in Node, Express, and Firebase. To implement our idea faster, I adapted my old project to the new idea.</p><p>Let’s start creating a repository on GitHub. <a href="https://github.com/feulf/cryptogitscore">https://github.com/feulf/cryptogitscore</a>.</p><h3>Collect the Data</h3><h4><strong>List projects</strong></h4><p>To get started we listed 10 of the top cryptocurrencies and their GitHub repos:</p><pre>{<br>  &quot;bitcoin&quot;: &quot;<a href="https://github.com/bitcoin/bitcoin">bitcoin/bitcoin</a>&quot;,<br>  &quot;xrp&quot;: &quot;<a href="https://github.com/ripple/rippled">ripple/rippled</a>&quot;,<br>  &quot;ethereum&quot;: &quot;<a href="https://github.com/ethereum/go-ethereum">ethereum/go-ethereum</a>&quot;,<br>  &quot;bitcoin-cash&quot;: &quot;<a href="https://github.com/Bitcoin-ABC/bitcoin-abc">Bitcoin-ABC/bitcoin-abc</a>&quot;,<br>  &quot;stellar&quot;: &quot;<a href="https://github.com/stellar/stellar-core">stellar/stellar-core</a>&quot;,<br>  &quot;eos&quot;: &quot;<a href="https://github.com/EOSIO/eos">EOSIO/eos</a>&quot;,<br>  &quot;litecoin&quot;: &quot;<a href="https://github.com/litecoin-project/litecoin">litecoin-project/litecoin</a>&quot;,<br>  &quot;cardano&quot;: &quot;<a href="https://github.com/input-output-hk/cardano-sl/">input-output-hk/cardano-sl/</a>&quot;,<br>  &quot;monero&quot;: &quot;<a href="https://github.com/monero-project/monero">monero-project/monero</a>&quot;<br>  &quot;tron&quot;: &quot;<a href="https://github.com/tronprotocol/java-tron">tronprotocol/java-tron</a>&quot;<br>}</pre><h4>Collect contributors</h4><p>The next step was to collect the contributors calling the GitHub API. Here’s the package we wrote:</p><pre><strong>const </strong>rp = require(&quot;request-promise&quot;)<br><strong>const </strong>contributors = (githubProject, page=0) =&gt; {<br><br>  <strong>let </strong>clientId = process.env.GITHUB_CLIENT_ID<br>  <strong>let </strong>clientSecret = process.env.GITHUB_CLIENT_SECRET<br><br>  <strong>let </strong>options = {<br>    &quot;url&quot;: `https://api.github.com/repos/${githubProject}/contributors?per_page=100&amp;page=${page}&amp;client_id=${clientId}&amp;client_secret=${clientSecret}`,<br>    &quot;headers&quot;: {<br>        &quot;user-agent&quot;: &quot;request&quot;<br>    },<br>    &quot;json&quot;: <strong>true<br>  </strong>}<br>  <strong>return </strong>rp(options)<br>}<br><br>module.exports = contributors</pre><p>And here’s the script that uses the package to collect the contributors and store them into Firestore:<br><a href="https://github.com/feulf/cryptogitscore/blob/master/collect-contributors.js">https://github.com/feulf/cryptogitscore/blob/master/collect-contributors.js</a>. Notice that we’re batching with promise.all() and db.batch().</p><p>Running this code will populate the Firestore database with the list of the contributors.</p><p>Keep on mind that GitHub API has 5000 calls limit. This means we’ll have to refactor this code to run through more contributors/projects.</p><h4>Gather contributors’ score</h4><p>Our next step is to call git-score.com API to gather the score for each contributor. Here’s the package we wrote:</p><pre><strong>const </strong>rp = require(&#39;request-promise&#39;)<br><strong>const </strong>gitscore = account =&gt; {<br>  <strong>var </strong>options = {<br>     &quot;url&quot;: &quot;http://www.gitscore.com/user/&quot; + account + &quot;/calculate&quot;,<br>     &quot;json&quot;: <strong>true<br>  </strong>}<br>  <strong>return </strong>rp.get(options)<br>}<br><br>module.exports = gitscore</pre><p>And here’s the library that uses the package to store it on Firestore: <a href="https://github.com/feulf/cryptogitscore/blob/master/calculate-contributor-score.js">https://github.com/feulf/cryptogitscore/blob/master/calculate-contributor-score.js</a>.</p><h3>Analyze the Data</h3><p>To make this data useful, we’re running the average of the first 1000 contributors for each project:<br><a href="https://github.com/feulf/cryptogitscore/blob/master/calculate-project-score.js">https://github.com/feulf/cryptogitscore/blob/master/calculate-project-score.js</a></p><p>This is the most naive analysis we could run. A better analysis may have to consider a combination of the number of commits. Or maybe not?!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z7nMpKVJ2Qy8OvwKc5Q36Q.png" /></figure><h3>Implement the API</h3><p>To expose the analyzed data, we decided to use Firebase Functions and Firestore: <a href="https://github.com/feulf/cryptogitscore-api">https://github.com/feulf/cryptogitscore-api</a></p><p>And here’s the API:<br><a href="https://us-central1-git-crypto-score.cloudfunctions.net/api/">https://us-central1-git-crypto-score.cloudfunctions.net/api/</a></p><h3>Visualize the Data</h3><p>Because of the time available at our hand, for now, we decided to stop here. We may come back to this later.</p><h3>Conclusion</h3><p>Interestingly Litecoin has the highest score with 966, Ethereum is second with 913, and Bitcoin third with 909. Tron has the lowest score with 310. While Git-Score isn’t really a good way to measure the score of an engineer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/486/1*nich9HbHIXRgdkCMp6AKJg.png" /></figure><p>Could you use this data to evaluate the long-term estimation of a cryptocurrency? Definitely no! Though this data can help to highlight the outliers. Obviously once highlighted, you want to do your own research more in deep, to make sure the data is actually correct. If anything this was a fun experiment to run.</p><p>Crypto Git Score is an open source project under the Apache 2.0 License: <a href="https://github.com/feulf/cryptogitscore">https://github.com/feulf/cryptogitscore</a>. Do some good use of it.</p><h4><strong>Bonus</strong></h4><p>Here’s an epic quote from Hal Finney that deserve to be mentioned here:</p><blockquote><a href="https://www.mail-archive.com/cryptography@metzdowd.com/msg10152.html">Imagine that Bitcoin is successful…that gives each coin a value of about $10 million (2009)</a></blockquote><h4><strong>Disclaimer</strong></h4><p>This blog post and the open source code in it is not an investment advice. Do always your own research.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8cf1dd8bb678" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Noise, the sound, and the silence]]></title>
            <link>https://feulf.medium.com/the-noise-the-sound-and-the-silence-cf3aa59c8111?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/cf3aa59c8111</guid>
            <category><![CDATA[productivity]]></category>
            <category><![CDATA[silence]]></category>
            <category><![CDATA[noise]]></category>
            <category><![CDATA[sound]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Thu, 12 Jul 2018 04:21:42 GMT</pubDate>
            <atom:updated>2018-07-12T04:24:50.353Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>TL;DR;</strong> A non-spiritual guide on how to filter the noise, and reach inner peace.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*69N7G6tM3kvONstF.jpg" /><figcaption>Almost inbox zero</figcaption></figure><h3>Big Data — The noise</h3><p>We live in the information age, where data is a commodity in many cases more valuable than paying actual customers.</p><p>Since the dawn of time up to the year 2003, humans had created 130 exabytes of data. In the last 15 years, we produced 10 times more data than in the rest of our existence, and this trend is only growing exponentially.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jBs0vU5RwWyEDkJ_KYJ4zA.png" /></figure><p>We use data to make better decisions, to run medical and genomics research, to train AI… and to embarrass you in front of your colleagues with questionable ad recommendations!</p><p>Company like Uber, AirBnb, and Seamless made us impatient, because they thought us that we can have what we want, when we want it. We suffer from <a href="https://www.alzheimers.net/overuse-of-technology-can-lead-to-digital-dementia/">digital dementia</a>, <a href="https://en.wikipedia.org/wiki/Phantom_vibration_syndrome">phantom vibrations</a>, <a href="https://www.spine-health.com/blog/modern-spine-ailment-text-neck">text neck pains</a>, <a href="https://www.nbcnews.com/health/health-news/generation-deaf-doctors-warn-dangers-ear-buds-n360041">ear buds premature deaf</a>, we’re falling from the cliff while playing Pokemon Go and buying crypto kitties for $140,000, <a href="https://twitter.com/CryptoKitties/status/995472778722656256">https://twitter.com/CryptoKitties/status/995472778722656256</a>. Internet is a firehose of information, what amazing yet noisy time we live in.</p><h3>Filter what’s important — The Sound</h3><p>Social media is a blackhole that sucks our time with click bait, and too often is the reason of our delay or anxiety for have procrastinated during an important deadline. Social media FOMO is fake, you’re just missing videos of friends squatting at the gym, pictures of hipster latte, #nofilters (toxic) sunset, pictures of summer wedding of some of your ex-colleagues friends.</p><p>Remove ALL social media apps from your phone and you’ll get back easily 2 hours of your life, less buzz and distractions. Use your phone for texting, calling and to listen to music.</p><p>Say NO very often, make todo lists, prioritize your tasks, discipline yourself, do only one thing at the time, the important one, and schedule some relaxation time.</p><h4>Focus, the most understated skill</h4><p>How many times you catch yourself daydreaming while reading or listening?</p><p>Learn how to really listen. Listen to listen, not to reply. Listen for the underline messages and acknowledge them, that’s how you create meaningful connections, gain respect, and feel calm.</p><blockquote>Be present is the most valuable gift anyone can offer to someone. That’s why it’s called “present”.</blockquote><p>Listen to music!</p><h3>Be present — The Silence</h3><p>Free your mind by writing your thoughts and ideas down, do meditation sometimes, it will train your mind to be in the present, and when you’re in the present you’re happy.</p><p>Keep your house clean, do your bed, and keep your inbox to zero. It’s easier than you think, you only need a weekend to unsubscribe to unwanted emails, archive anything unnecessary, move actionable items into your todo list, use reply &amp; archive, recognize and archive BS emails from the subject, use filters.</p><h3>10x better, a short list</h3><ul><li>Say NO</li><li>Be present</li><li>Remove Social Media</li><li>Write your thoughts on paper</li><li>Inbox zero</li><li>Declutter your apartment and life from what’s unnecessary (<a href="https://konmari.com/">https://konmari.com/</a>)</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gb_QEQF4EZhPTjIk.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cf3aa59c8111" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Bitcoin and Coffee]]></title>
            <link>https://feulf.medium.com/bitcoin-and-coffee-3e9e7a3e8dd8?source=rss-1a23bfd151e6------2</link>
            <guid isPermaLink="false">https://medium.com/p/3e9e7a3e8dd8</guid>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Federico Ulfo]]></dc:creator>
            <pubDate>Sun, 29 Apr 2018 18:40:43 GMT</pubDate>
            <atom:updated>2018-04-29T18:42:31.309Z</atom:updated>
            <content:encoded><![CDATA[<h3>Bitcoin and Coffee (thoughts from 2014)</h3><p>While going through my blog posts on Medium I found this one from 2014. I like when past me is right, although I was big time wrong about saying “it took me two years to understand Bitcoin”, that’s obviously a bias from the Danning-Kruger effects, the truth is that I didn’t understand it back than and I still don’t fully understand it today, and anyone who tells you “I’m a Bitcoin expert” you should raise your brow and ask, which area of Bitcoin are you an expert in and for how long have you worked in it?</p><p>Yesterday (Set 2014) my friends and I met for coffee and beers at Berkli Parc, a cozy coffee lounge in the Lower East Side. We start talking about the North Korea hacking Sony and “The Interview”, which by the way was hilarious:</p><blockquote>Haters gonna hate, aint’ers gonna ain’t</blockquote><p>After discussing about gossipy low key stuff we jump into payment system and Point of Sale and spoke about Apple Pay and Credit Cards Systems, and because one of us implemented the code of a POS working in a company that did fraud detection, the discussion was on fire. At one point I asked what do you guys think about Bitcoin and the answer was very clear:</p><blockquote>Nobody understands Bitcoin.</blockquote><p>So here I am talking about Bitcoin: it took me two years to finally understand a little bit of Bitcoin, but I’m sure nobody fully understand it yet, and that’s because like when the Internet was born, nobody knew that there could have been.</p><h2>What is Bitcoin?</h2><p>Bitcoin (<em>blockchain</em>) is a technology and bitcoin is an application of it. The economic aspect of Bitcoin is very interesting.</p><blockquote>Someone think of Bitcoin as a currency others as an asset (or as a commodity), and they’re both wrong, Bitcoin is a completely new concept.</blockquote><p>You can buy a pizza for 10,000 BTC($72,000,000 today), you can exchange bitcoins for USDs and that’s the Bitcoin Currency aspect. Bitcoin is also compared to Gold because is scarce, is limited and because is mined at a pace similar to how Gold is mined, hence Bitcoin is also considered a Digital Asset. Because it’s code is open source and because it runs on Internet there are other applications to it such as the Smart Contracts, the Alternative Currencies and the Side Chains and who knows what will be the “Uber” application of the future.</p><p>If you enjoyed this article you can tip me with changetip.com (@feulf), for each beer I’ll Tweet a picture of me drinking the beer with your twitter name next to it.</p><p>I also like to follow the <strong>Bitcoin Rule of Honor</strong>:</p><blockquote>Help your friends to create their first Bitcoin Wallet and donate them 1 Satoshi (0.00000001 BTC)</blockquote><p>So if you’re new to Bitcoin contact me and I’ll be happy to help you to get your first Bitcoin Wallet and your first 0.0000001 Bitcoin*.</p><p><em>*Lol, in 2014 Bitcoin was somewhere around $700, today is close to $10,000 one satoshi is 20 times more valuable. I’m expecting in 5 years to see another 20 folds up, am I crazy?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3e9e7a3e8dd8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>