<?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 Thomas Wiesner on Medium]]></title>
        <description><![CDATA[Stories by Thomas Wiesner on Medium]]></description>
        <link>https://medium.com/@tomw1808?source=rss-b46a396b1719------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*q_dLebxDewVV66qkaRaXfQ.jpeg</url>
            <title>Stories by Thomas Wiesner on Medium</title>
            <link>https://medium.com/@tomw1808?source=rss-b46a396b1719------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 13:31:01 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@tomw1808/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[Why we built yet another crypto wallet]]></title>
            <link>https://medium.com/morpher/why-we-built-yet-another-crypto-wallet-5dc382d2bcfc?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/5dc382d2bcfc</guid>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[wallet]]></category>
            <category><![CDATA[web3]]></category>
            <category><![CDATA[developer]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Wed, 22 Sep 2021 00:00:00 GMT</pubDate>
            <atom:updated>2021-09-23T13:40:00.103Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yvzrgbWYlsoiuuyuaMd1SA.png" /></figure><p>Hi, I’m Thomas, CTO here at <a href="https://www.morpher.com/">Morpher</a>. In this post I want to talk a little bit how the Wallet-Components are set up and why we built the wallet in the first place. It’s a pretty technical article, so if you are a developer then this article is for you.</p><h3>Why yet another Wallet?! 🤔</h3><p>Morpher’s goal is to make trading using Blockchain tech accessible to the masses. Current wallet implementations are all very <em>very</em> secure, but not very convenient for users to use. They are also very often not easy for developers to work with. We think that convenience doesn’t have to jeopardize security.</p><p>We started Morpher with three different wallets: MetaMask, Portis and Fortmatic. The integration with wallets usually works like this: The wallet injects a full web3 object into the website and takes care of connecting to a node, as well as providing a keystore to sign transactions. So, essentially you need to connect to the right node and then have means to sign transactions that get sent <em>through the wallet’s connection to the node</em>. Those are two components: A Http/WebSocket connector and a keystore, both in one “wallet” that takes care of signing and sending.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/719/0*Yk2ziQ_gmPUUp8r3" /></figure><p>Having both in external components gives very little control back to the developer. For example, with MetaMask you can’t directly influence to which network to connect to — the user needs to do this. Besides some <a href="https://eips.ethereum.org/EIPS/eip-2015">small advances in new RPC calls</a> that allow developers to automatically add a new network, all you can do is listen and observe which network the user is connected to and inform then via a modal or some sort of alert that the user is connected to the wrong network.</p><h3>MetaMask</h3><p>Imagine you are a user who never touched Blockchain.</p><p>Now you need to setup MetaMask before you start to use a platform. You have to download a browser plugin you never heard of that has a fox-head following your mouse pointer. Then you need to enter a secure password — <strong>and god forbid you lose it</strong>. Then you are asked to remember a seed phrase. At this point you have no idea what a <em>seed phrase</em> is, but it sounds like you just started your internship at the CIA.</p><p>If you haven’t given up at this point you are then greeted with a popup to enter network details and switch around something which sounds very scary to the regular user. Now you made it to the Morpher Sidechain 🎉 (like us, chances are that your DApp also operates on a layer-2 network).</p><p>To top it off, you get one ETH to sign transactions on our sidechain. These are like testnet ETH on our POA sidechain, and are essentially worthless. Nevertheless MetaMask tells you that you are rich. Needless to say, it’s very disappointing to find out your new fortune isn’t a fortune at all and those $3,000 in your wallet are not real. But at this point, these are all just details, because most users already gave up on downloading MetaMask.</p><p>They come to trade, not to become blockchain experts.</p><h3>Portis and Fortmatic</h3><p>Here come the hosted wallets. Let’s just focus on Fortmatic (or Magic?) for now.</p><p>It also makes the full web3 object accessible to the website. That means, it does two things: connect to a network and provides a keystore.</p><p>It claims to be non-custodial. It uses AWS KMS for encryption. But essentially is a man-in-the-middle as a <a href="https://medium.com/fortmatic/security-infrastructure-at-fortmatic-4a95c3688997">relayer in the recovery process</a> and has your recovery keys stored within their own infrastructure 🤷‍♂️.</p><p>It does let you style the popups a little bit. But if Fortmatic decides that everyone needs 2FA today, so be it. Nothing you can do about it. If Fortmatic decides tomorrow that you need to verify your email address again, so be it. If Fortmatic decides that exporting your private key is deleting the account, well, nothing you can do. If Fortmatic decides that it won’t connect to your layer-2 network anymore, all you can do is pray to the all-mighty blockchain gods. And Fortmatic has not decided to let developers or users turn off transaction-confirmation screens at all (and those pop-ups are not pretty on mobile). But there is only so much you can do about it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*VHs95YWp7F_ryKoM" /></figure><p>It’s not enough being at the mercy of third party providers in a world, you need to have deep pockets. Pricing is based on user-signups. You’re on the hook the moment your DApp takes off, even if you haven’t monetized those users yet.</p><h3>Introducing Morpher Wallet</h3><p>Now think about this:</p><p>You are a user who comes to Morpher. You are used to web 2.0 signup flows. You want to sign up to trade. You want to go long on Tesla. You don’t want to worry about (and don’t have any reason to know about) signature popups, seed phrases or private keys. You <em>can</em> do all that cool crypto stuff too, but first and foremost you are here to trade, not to learn how crypto works, export seed phrases or learn why it is better to use PBKDF2 over SHA256 to encrypt stuff.</p><p>Or you are like us: You are a developer. You want to give your users a smooth experience. You want to have a non-custodial solution and full control over how it looks and feels without compromising <em>too much</em> on security.</p><p>This is why we built the Morpher Wallet. But how does it work?</p><h3>Technical Rundown</h3><p>After that esoteric introduction on why we built the wallet, I am sure you are also interested in the full tech rundown. After all, we’re developers. So, let’s do this!</p><ul><li>A Backend Component, written in NodeJS/Express, that never sees an unencrypted private key or seed phrase. It’s basically store&amp;retrieve for encrypted keys.</li><li>A Frontend Component that acts as a keystore and interface.</li><li>And an SDK that creates a web3 object and gives it to a website. It connects the wallet as an iFrame and makes sure the communication between the iFrame is secure and things like web3.eth.signTransaction work.</li></ul><p>Morpher Wallet uses 3 components.</p><p>Let’s take this step by step and see what happens for example on signup up, before diving into into the communication between the iFrame and parent.</p><h3>Signup and Non-Custodial Data-Flow</h3><p>When a user signs up, the Frontend <a href="https://github.com/Morpher-io/MorpherWallet/blob/3aba733c2ee1dcc09b7374b8fd6fe22f71de5719/vue/src/utils/keystore.ts#L31">generates a seed phrase using bip39</a>.</p><p>It’s working all on the frontend at this point — the backend sits there idle, only telling the frontend if a user with that email already exists.</p><p>The frontend then hashes the user’s password, uses that hash to encrypt the seed phrase using AES-GCM 256 bits with <a href="https://github.com/Morpher-io/MorpherWallet/blob/3aba733c2ee1dcc09b7374b8fd6fe22f71de5719/vue/src/utils/cryptoFunctions.ts#L16">10000 SHA-256 iterations PBKDF2</a>. Fairly industry standard at this point.</p><p>After that, we store the encrypted keystore on the backend.</p><p>We also store the encrypted keystore in localStorage, so the user just needs to enter the password next time he opens the browser, but that’s a different story and purely convenience. It doesn’t jeopardize the fact that everything is non-custodial and encrypted.</p><h3>Login</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*F4UJDppriVh0B8k2" /></figure><p>So, a user is registered, but where’s the data coming from to get to the magic private key? It’s stored in the backend, but encrypted. Besides having all the usual best web practices to not to fall victim to DDoS attacks etc., the key is also only decrypted client-side.</p><ol><li>The user enters the email address and a password.</li><li>(Optional) The user is guided through a 2FA flow.</li><li>The frontend asks the backend to try and find an entry in the database for that email address.</li><li>The backend sends back the encrypted seed phrase.</li><li>The frontend tries to de-crypt the seed phrase with the hashed password client-side.</li></ol><p>It works like this:</p><p>From there, the a web3.eth.accounts keystore is created from the now decrypted seed phrase and kept in memory in the browser sandbox for further use.</p><h3>Signing a Transaction</h3><p>The keystore in the Morpher Wallet is actually just the most important component, which, in itself doesn’t connect to a node. The architecture is built in a way that the wallet is embedded as an iFrame into another website.</p><p>If you direct your attention to the Vuex store, you’ll find all the necessary functions when the <a href="https://github.com/Morpher-io/MorpherWallet/blob/master/vue/src/store/index.ts#L878">wallet is embedded</a>.</p><p>The actual signing is done by the <a href="https://github.com/Morpher-io/MorpherWallet/blob/master/vue/src/store/index.ts#L921">web3 library</a> and this is then handed back over to the parent frame, which embeds the wallet which is <a href="https://github.com/Morpher-io/MorpherWallet/blob/master/morpherwallet-sdk/src/index.ts#L333">a custom HookedWalletProvider</a>.</p><p>That’s then forwarded to a node, through the normal web3 process, sending a signed transaction.</p><h3>Conclusion</h3><p>In a nutshell, that’s how the internal nuts and bolts work. Obviously, there is a lot more to it than just signup, login and signing transactions. But for a quick introduction, that’s probably enough.</p><p>The most important part for us is to have full control over the UI and how it behaves. We intentionally wanted to make the user onboarding simple, but leave enough controls for the user to lock down their wallet as needed.</p><p>Heck, you could even go, export the seed phrase, import into MetaMask and login to Morpher again. That’s how standardized this is.</p><p>If you are interested in more, there’s a <a href="https://github.com/Morpher-io/MorpherWallet/blob/master/docs/audit-doc.pdf">full audit doc</a> that goes into more details about how the encryption and decryption and data flow works.</p><p>If you want to integrate the wallet solution into your own website or DApp, then let us know! We’re planning to completely open it up for other developers as well.</p><p>How to get involved and learn more:</p><ul><li>Fill out the <a href="https://docs.google.com/forms/d/e/1FAIpQLSdh00G9PenekJDMQoc4Nu8bYOpDFPULs0f04yuRpriTqnhrmg/viewform?usp=sf_link">SDK Request Form</a></li><li>Explore <a href="https://github.com/Morpher-io/MorpherWallet">MorpherWallet on Github</a></li><li>Visit the <a href="https://www.morpher.com/wallet">Wallet Landing Page</a></li><li>Try <a href="https://wallet.morpher.com/">Morpher Wallet in your browser</a></li></ul><p><em>Originally published at </em><a href="https://www.morpher.com/blog/why-we-built-morpher-wallet"><em>https://www.morpher.com</em></a><em> on September 22, 2021.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5dc382d2bcfc" width="1" height="1" alt=""><hr><p><a href="https://medium.com/morpher/why-we-built-yet-another-crypto-wallet-5dc382d2bcfc">Why we built yet another crypto wallet</a> was originally published in <a href="https://medium.com/morpher">Morpher</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[4 Things about Enterprise Blockchain Development. Get ready (for 2020)!]]></title>
            <link>https://medium.com/@tomw1808/4-things-about-enterprise-blockchain-development-get-ready-for-2020-fc748a8a781b?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/fc748a8a781b</guid>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Wed, 30 Oct 2019 14:49:34 GMT</pubDate>
            <atom:updated>2019-11-03T20:36:59.655Z</atom:updated>
            <content:encoded><![CDATA[<p>Today I want to talk about 4 things you didn’t know about Blockchains, Hyperledger, Ethereum and general Smart Contract Development. In this video I will show you how to setup Hyperledger Besu on your development machine, how to supercharge your dev-environment with new tools on the market and how to improve your security in your code..</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FF7vX_TLkEug%3Ffeature%3Doembed&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DF7vX_TLkEug&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FF7vX_TLkEug%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/27c7aec3ae172bdb4fa91db7646fc96c/href">https://medium.com/media/27c7aec3ae172bdb4fa91db7646fc96c/href</a></iframe><p><em>Originally published at </em><a href="https://vomtom.at/enterprise-blockchain-development-2020/"><em>https://vomtom.at</em></a><em> on October 30, 2019.</em></p><h3>1: There is an Ethereum Node that is perfect for enterprises and large organizations which challenges Corda, Quorum and Hyperledger Fabric.</h3><p>If you are a developer, you probably know the <a href="https://xkcd.com/927/">XKCD comic</a>. There are 14 competing standards. Which is rediculous. Let’s try to create one universal standard. Soon later: There are 15 competing standards.</p><p>It’s not so different with Ethereum Nodes. There are different implementations of the Ethereum Protocol in different languages: Geth, for example, is written in Go. Parity is written in Rust. They both do pretty much the same thing, give or take: they are blockchain nodes. And there were a lot more of those nodes in the past — Ethereum came a long way already. Some of them are deprecated and forgotten.</p><h4>What does that have to do with Hyperledger or Quorum?</h4><p>In 2018 PegaSys released a new Ethereum node, implemented in Java. Java is usually more targeted towards Enterprise customers and use cases, so, needless to say, they were going after Enterprise customers as well. Their implementation was called Pantheon.</p><p>I actually made <a href="https://youtu.be/Zq33kPJGYDM">a video</a> about that before, because I personally like the client and the approach very much. I think Java attracts a lot more developers than Rust for example.</p><p>In September 2019 they migrated their Project over to Hyperledger under the new name:<a href="https://www.hyperledger.org/projects/besu"> Hyperledger Besu</a>. Besu, former <a href="https://pegasys.tech/update-pantheon-is-now-officially-hyperledger-besu/">Pantheon</a>, includes several consensus algorithms including <a href="https://en.wikipedia.org/wiki/Proof_of_work">Proof of Work</a>, <a href="https://en.wikipedia.org/wiki/Proof_of_authority">Proof of Authority</a>, andIBFT(actually <a href="https://pegasys.tech/another-day-another-consensus-algorithm-why-ibft-2-0/">IBFT 2</a>, which is <a href="https://www.coindesk.com/hyperledger-challenges-jpmorgans-quorum-for-enterprise-ethereum-crown">not comaptible</a> to Quorum IBFT), and has comprehensive permissioning schemes designed specifically for uses in a consortium environment.</p><p>So, Hyperledger Besu is essentially an Ethereum Node for Enterprise customers with all the features you would expect from an Enterprise-grade blockchain. This makes Besu a Quorum, Fabric and Corda challenger.</p><p>If you are developing blockchain solutions, then you probably will love the next thing:</p><h3>2: It takes about 1 Minute to start working on your own Private Consortium Chain with an enterprise grade Node Implementation.</h3><p>Surely, some will say, that is not new. After all, there is <a href="https://www.trufflesuite.com/ganache">Ganache </a>or similar tools. They are all great. But they are pretty much only simulating an Ethereum Blockchain, they are not 100% real node implementations. Not battle tested, so to say.</p><p>If you are familiar with Docker then starting your own hyperledger besu network with some nodes, a block explorer and other services, is really easy. Pegasys or Hyperledger Besu put together a really nice walkthrough!</p><p>For me that’s not 100% working out of the box for <em>my </em>development environment, but it’s fairly easy to adapt! And in unter 1 minute you have your private blockchain with several participating nodes and everythings setup, which usually takes longer in any other blockchain node out there.</p><p>Let’s see how it works! Basically I’d do it like this:</p><pre>git clone <a href="https://github.com/PegaSysEng/besu-quickstart.git">https://github.com/PegaSysEng/besu-quickstart.git</a></pre><p>2. Edit the .env file, copy the address from my MetaMask extension address to the miner. So my MetaMask receives the funds from mining.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*7ej18o0_ad_AvDdr.png" /></figure><p>3. Edit the docker-compose.yml file to open the right ports to the host system:</p><pre>... ports: <br>- &quot;18545:8545&quot; <br>- &quot;19545:9545&quot; <br>- &quot;18547:8547&quot; <br>[...]</pre><p>4. Start the blockchain with Docker-Compose.</p><p>docker-compose up</p><p>If you don’t know how Docker works, then there is a link to a 2 hour comprehensive docker hands-on tutorial I created just last month: <a href="https://vomtom.at/docker-course?couponCode=VOMTOM_REDIRECT">https://vomtom.at/docker-course?couponCode=VOMTOM_REDIRECT</a></p><p>5. The last things is to Deploy the smart contracts either using Truffle or directly with Remix from your MetaMask.</p><p>That’s it. It’s really as easy as that! And you get a full block explorer on top.</p><h3>3: Development using Frameworks and Debugging isn’t as hard as it sounds at first</h3><p>When you do any software development, you are probably used to a proper IDE, code highlighting, intellisense-style code completion, step by step debugging and many more features.</p><p>This is fairly standard with languages like Java, JavaScript, Python, PHP and many more. But how does that work with Solidity?</p><p>Given, most of the current Solidity development tools are not as mature as tools like IntelliJ for Java Development, or a full blown visual studio for C#, but they came a long way already. So, when you are used to developing your Smart Contracts purely in a text editor or in the online-version of remix, then here might be some alternative setups to supercharge your smart contract development in 2020.</p><p>When using VSCode then you have access to a few interesting Extensions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*kbPDTofaJagT9dSU.png" /></figure><p>My favorite is still the Solidity Visual Auditor together with the dark theme. The extension helps tremendously reduce errors and increase readability, with an integrated linter and many more features I expect to have when writing code which is basically immutable.</p><p>If you didn’t know the extension then check it out: <a href="https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor">https://marketplace.visualstudio.com/items?itemName=tintinweb.solidity-visual-auditor</a></p><p>Next is <a href="https://www.trufflesuite.com/">Truffle</a>. If you don’t used it so far then consider using truffle for your next project or current project. Truffle comes with many features that ease the life of a smart contract developer.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*R_SgV18183-lB3_Y.png" /></figure><p>The best feature is the fully integrated testing suite. Never forget Unit testing your smart contracts and with truffle that’s really really easy. How I use truffle to do Unit-Testing? Let’s check it out.</p><p>Create a new truffle project with truffle init and edit the config file to have a development network connect with Ganache:</p><pre>networks: { development: { host: &quot;127.0.0.1&quot;, // Localhost (default: none) port: 7545, // Standard Ethereum port (default: none) network_id: &quot;*&quot;, // Any network (default: none) }, }</pre><p>Add your Smart contracts as usual. Ideally with VSCode of course :):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/0*d7DkqKZzMja20JBk.png" /></figure><p>Add a unit tests</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*RL2jOYQn5t7D-4dk.png" /></figure><p>open Ganache and run the unit tests and await the results.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r6ORaqWw4RXbD4Yi.png" /></figure><p>If I’m working in teams and we use GitHub, then I’ll check in the whole folder, except the <em>build </em>and <em>node_modules </em>folder. Then everyone can and should run these unit tests. On top you can have a full blown CI/CD pipeline. It’s really convenient.</p><p>Obviously, there should be unit-tests for everything. But how do you define “ <em>everything</em>” exactly? In other major languages there are test coverage reports. Luckily, there is something similar in Solidity as well. For this I’m using solidity coverage.</p><p>First, install solidity coverage using npm: npm install solidity-coverage</p><p>Then run solidity coverage inside your truffle project: npx solidity-coverage</p><p>Then move over to “./coverage” and open the HTML report. I’m using the http-server, another npm package ( npm install -g http-server) for this, but you can probably just open it in a browser. It&#39;s just my habit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1012/0*Wqb6MDtpHBVx5HD1.png" /></figure><p>Truffle also comes with a developer console to directly interact with your smart contracts or even debug your smart contracts step by step. You can create new instances or debug transactions. It’s really convenient to know the tools from the inside out. Let’s see any example.</p><p>I have this smart contract here:</p><pre>pragma solidity 0.5.11; <br>import &quot;../node_modules/@openzeppelin/contracts/math/SafeMath.sol&quot;; </pre><pre>contract SomeContract { <br> uint public myVar; <br> function setMyVar(uint _myVar) public {<br>  require(_myVar &gt; 0, &quot;Argument can&#39;t be 0 or smaller&quot;);<br>  myVar = _myVar; <br> } <br>}</pre><p>And imaging I’m going to update this variable myVar. I have to send off a transaction.</p><p>First I’ll connect using truffle console. That connects to an open network, so I have Ganache running in the background. I re-deploy my smart contract with migrate --reset:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/544/0*GQ5zf9x6cp-QKDfW.png" /></figure><p>Then I’ll create a new instance of my smart contract:</p><p>let instance = await SomeContract.deployed()</p><p>I can simply interact with my smart contract.</p><p>await instance.myVar()</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/497/0*IeT-O3PPMIZLhb-2.png" /></figure><p>and update the Variable:</p><p>await instance.setMyVar(5)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/842/0*IERrsPMPXL0mSZxW.png" /></figure><p>Then I can debug that transaction step by step. I can enter the debug command and the truffle debugger will open up.</p><p>debug TXHash</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/763/0*j7esv5sNr-ktgVIx.png" /></figure><p>It allows me to jump step by step into the functions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/803/0*MItEN9iME4XIafZl.png" /></figure><p>And on top of that, I’ve started using <a href="https://github.com/Tenderly/tenderly-cli">tenderly </a>in combination with truffle, to know where exactly my smart contracts are failing. Whenever a transaction fails then usually I don’t see the exact location or reason in the code. With proxying the RPC calls through tenderly I get the exact line where the transaction fails. It saves me some time.</p><p>Let’s have a look how that works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*XzuquU4g0SB1A8qv.png" /></figure><p>So make sure your truffle config is connecting to tenderly, not to truffle.</p><pre>development: { host: &quot;127.0.0.1&quot;, port: 9545, // &lt;&lt;&lt; port from tenderly now! network_id: &quot;*&quot;, },</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rrzyeNc62ofHZbPV.png" /></figure><p>Then I start my truffle console and try to update the smart contract from above with the value 0, which should trigger that require.</p><p>The transaction fails, but tenderly tells us where exactly that is. It show us the exact location of the error.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*tJyyFo-OW4er4-qQ.png" /></figure><p>Now, in 2020 there is really no reason to use notepad for creating HTML sites anymore. The same is true for solidity development. Even if you don’t like VScode, then you can use the new <a href="https://github.com/ethereum/remix-desktop/releases">Remix IDE Desktop</a>. It’s Remix, as we all know and love it, but as a Desktop App.</p><p>You can browse your favorite projects on your disk, use the integrated compilers and also the integrated Blockchain. That means you can make use of all the great features you know from the online version, like the debugger or the security tools and other extensions.</p><p>I heard soon you can use it 100% offline, which makes it a great companion on travels as well.</p><h3>4: Security, Audit and standardized workflows is not a huge pain (actually)</h3><p>Ethereum and Solidity have a somewhat problematic history, that’s not a secret. Two years ago the development tools were by far not mature enough to really help avoid costly bugs. And, considering that smart contracts are immutable once deployed, meaning you can’t change them once they are running, it just had to lead to a few disasters <a href="https://en.wikipedia.org/wiki/The_DAO_(organization)">here</a> and <a href="https://github.com/paritytech/parity-ethereum/issues/6995">there</a>. Costly disasters. And also the community wasn’t always happy with the way problems were resolved.</p><p>This is not so much the case anymore. There are not only better tools, like truffle, but also great resources to learn about best practices, existing pitfalls and more.</p><p>I’m a big fan of the newsletter <a href="https://weekinethereumnews.com/">https://weekinethereumnews.com/</a>. It’s my weekly read on news around Ethereum. I’m literally waiting for it. Thanks Evan, I hope you keep up the good work!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*iL8vGiVE5LgXErqj.png" /></figure><p>Security wise I’m usually reading a lot on reddit, the <a href="https://www.reddit.com/r/ethdev/">ethdev</a> and <a href="https://www.reddit.com/r/ethereum/">ethereum</a> reddits, and I’m looking for community insights. One thing I can recommend is the <a href="https://consensys.github.io/smart-contract-best-practices/">ConsenSys GitHub repository</a> talking about the smart contract best practices.</p><p>There the Solidity Recommendations and known attacks are a bare minimum to know for every Ethereum Blockchain Developer. These attacks are so well known that you will find a copy of those also in the <a href="https://solidity.readthedocs.io/en/v0.5.12/security-considerations.html#security-considerations">Solidity documentation</a>. But I like the ConsenSys site more, since it’s so clearly only about Smart Contract best practices and not just another chapter in the Solidity docs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*McTRWyUJahnMmx_i.png" /></figure><p>The second page worth a scan through is the Smart Contract Weakness Classification and Test Cases. <a href="https://swcregistry.io/">https://swcregistry.io/</a> It’s a collection of typical weaknesses and their pendant to classical CWE, the common software security weaknesses.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*-wPe89e4CqHxIDYU.png" /></figure><p>Static analyzers are also getting better and better. ConsenSys and their projects are usually following a <em>freemium </em>model, so is their static analysis and auditing software Mythx, where the Pro version is paid, reachable at <a href="https://mythx.io/">https://mythx.io</a></p><p>The free version checks for the most obvious things like Use of Deprecated Solidity Functions or Unprotected SELFDESTRUCT Instructions, but leaves out the good stuff. That is Reentrancy or Transaction Order Dependence and many other things only available in the Pro version. It’s still worth a try, since it’s easy to install and gives a nice report.</p><p>The other thing is standardized smart contracts. There is no need to re-invent the ERC20 smart contract in 2020. If you want to launch a system that uses tokens, or use any other standardized smart contract or library like the SafeMath library, then why not use an existing template? OpenZeppelin did an amazing job at this. Reachable at <a href="https://github.com/OpenZeppelin/openzeppelin-contracts">https://github.com/OpenZeppelin/openzeppelin-contracts</a></p><p>All you have to do is install them through npm in your exising truffle project. Their smart contracts will be installed in the node_modules folder and there is a lot of them available.</p><p><strong><em>import</em></strong> &quot;../node_modules/@openzeppelin/contracts/math/SafeMath.sol&quot;;</p><p>Then import, for example the SafeMath Library — or any other of their contracts — into your smart contract.</p><p>And then simply use it. That’s it. It’s really that simple.</p><p>I’m sure I didn’t mention the one or the other thing, so let me include the longest and most comprehensive list of developer tools for Ethereum you can find out there. It’s a github repository with all the good stuff you can possibly imagine.</p><p>So, now it’s your turn. Let me know in the comments which of these five production hacks you’re going to try first: Tenderly or the Solidity Visual Auditor Plugin!</p><p>For more like this, subscribe to the YouTube channel or my Newsletter and I hope I’ll see you in the next videos or my courses!</p><p><em>Originally published at </em><a href="https://vomtom.at/enterprise-blockchain-development-2020/"><em>https://vomtom.at</em></a><em> on October 30, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fc748a8a781b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Is it worth becoming Blockchain Developer in 2020?]]></title>
            <link>https://medium.com/@tomw1808/is-it-worth-becoming-blockchain-developer-in-2020-800c7d88dbfc?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/800c7d88dbfc</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[career-advice]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Mon, 21 Oct 2019 11:47:13 GMT</pubDate>
            <atom:updated>2019-11-09T10:22:49.064Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bCgnwKdkzhvZcL0h" /></figure><blockquote><strong><em>Originally published at </em></strong><a href="https://vomtom.at/blockchain-developer-training-salary-survey-2019-2020/"><strong><em>https://vomtom.at</em></strong></a><strong><em> on October 21, 2019.</em></strong></blockquote><p>An interesting question, since it depends on many things:</p><ul><li>Is developer demand raising or falling?</li><li>What’s the cost of Blockchain education?</li><li>What’s the average salary for a Blockchain developer?</li><li>How long will it take to become a successful Blockchain Developer?</li><li>Are there any certification programs?</li><li>… and many more!</li></ul><p>If you are considering attending a Blockchain Bootcamp, or thinking about making a career as Blockchain Developer, or trying to become certified Blockchain Developer, then this is for you! Let’s get into it.</p><p>According to <a href="https://media.consensys.net/one-million-ethereum-developers-five-consensys-announcements-from-devcon-5-28520ce63d73">Joseph Lubin’s call to action at DevCon 5 in Osaka</a>: “ <em>There are an estimated 30 million software developers globally, yet the number of blockchain developers is in the several hundred thousands</em>”.</p><p>I can wholeheartedly agree and support this initiative. I gave training to around one hundred thousand individuals through on-demand and on-site courses, so, statistically I was in contact with more than 10% of the several hundred thousand Blockchain developers in their professional career. Well, again, statistically, at least. And what I saw? I saw a lot of struggle, a lot of pain points, a lot of hard work and effort learning Blockchain development. I saw a lot of really great people coming into this space.</p><p>If you are just starting out your development career, or you are a web-developer, or a Java enterprise developer, or a seasoned software engineer, why should you start a career as Blockchain developer? And how to get into it and where to start?</p><p>There is, unfortunately, no single true answer. It depends where <em>you</em> are right now in your life, what education you have, how much experience you already gained, etc. To answer all these questions, it is necessary to find some sort of a baseline first.</p><p>Let’s start with the most obvious question: Is there going to be demand for <em>any</em> Blockchain developer in the future?</p><h3>Will demand for Blockchain Developers be the same in one/two/three years from now?</h3><p>Everything points towards the demand being at least the same or, actually, it will strongly increase. Why? Observable market movements show that Blockchain solutions are being reviewed and adopted by large players in the market, such as Fortune 500 companies and governments <a href="https://www.forbes.com/sites/biserdimitrov/2019/08/13/large-enterprises-are-betting-on-blockchain-in-2019/#3e49631a1bff">[1]</a> <a href="https://www.ibm.com/downloads/cas/PPRR983X">[2]</a> <a href="https://www2.deloitte.com/content/dam/Deloitte/se/Documents/risk/DI_2019-global-blockchain-survey.pdf">[3]</a> <a href="https://www.mckinsey.com/business-functions/mckinsey-digital/our-insights/blockchain-beyond-the-hype-what-is-the-strategic-business-value">[4]</a>. That, in turn, will naturally drive developer demand up.</p><p>But, first of all, it depends in which <em>kind</em> of job you want.</p><p>Blockchain developer demand will continue to increase in serious enterprise areas and decrease for ICO-alike projects (let’s call them: “shady fast growth companies without a real business plan the SEC will come after”). For someone looking to make a “quick buck”, it looks like most Blockchain projects will <em>strongly</em> decrease. Regulations already increased and will continue to rise strongly <a href="https://www.pwc.com/gx/en/issues/blockchain/blockchain-in-business/navigate-regulatory-uncertainty.html">[5]</a> <a href="http://www.europarl.europa.eu/cmsdata/150761/TAX3%20Study%20on%20cryptocurrencies%20and%20blockchain.pdf">[6]</a>.</p><p>It will get much harder to benefit from Blockchain based fundraising, compared to traditional crowdfunding, equity funding, VC funding, etc. So, the need for “someone who can quickly come up with a new token contract” will diminish over time. In short: It is not advisable to learn Solidity to only deploy a new ERC20 token.</p><p>Instead, demand for Blockchain developers will increase in broader enterprise areas such as financial, supply chain, insurance, digital identity, land registries, government, etc. It is a longer term success path, but it adheres to regulations and comes down to real business solutions. There is still one big problem: There are several dozen different Blockchain and DLT implementations running on several hundred different Blockchains in public and private. Which ones should you choose to learn first, and why?</p><h3>Which kind of Blockchain platform is worth going after?</h3><p>As it stands right now, large corporations are mainly looking into three Blockchain platforms to develop business solutions on top: Hyperledger (Fabric), Corda and Ethereum. Well, depending who you ask, market share among these three is at least well established <a href="https://www.jbs.cam.ac.uk/fileadmin/user_upload/research/centres/alternative-finance/downloads/2019-ccaf-second-global-enterprise-blockchain-report.pdf">[7]</a> <a href="https://labrys.io/top-blockchain-platforms-for-business-2019-2020/">[8]</a> <a href="https://www.blockchain-council.org/blockchain/top-10-blockchain-platforms-you-need-to-know-about/">[9]</a>.</p><p><a href="https://www.r3.com/platform/">Corda R3</a> is written for financial institutions, mostly banks. So if you want to work on Blockchain projects in/for a bank, then learning Corda first is advisable. R3 has the largest banks in Europe as their partners (or customers). So, if working for large banks is something you want on your CV, then it could mean that there might be an easy point of entry.</p><h3>What is Corda?</h3><p>Corda is a distributed ledger technology (DLT) with support of Smart Contracts written in Java/Kotlin. There is no native token, like the Ether on Ethereum. And their approach for the platform governance is vastly different from Ethereum or Bitcoin. R3 is governing their own Blockchain. It’s a permissioned private access model, mostly. There is an open-source variant for self-hosting, but for financial institutions it is usually “pay to play”, if they want to be in the R3 blockchain consortium. Then a bank can call the R3 office at any time if they need any help. That makes it very well suited for financial institutions, since it brings all the benefits of a Blockchain, including privacy and secrecy. Plus a manageable risk for data and access. In other words, if things go south, there is a back-up plan: call R3. That means there is a very low entry barrier.</p><p>But R3 Corda it’s not well suited for other projects. Like supply chain solutions. <a href="https://www.hyperledger.org/">Hyperledger Fabric</a> seems to become the go-to solution for all kinds of supply chain solutions. Walmart built its supply chain tracking solution on Hyperledger Fabric. Maersk built their <a href="https://www.tradelens.com/">TradeLens </a>solution on Hyperledger, in coorporation with IBM. Hyperledger based Blockchain implementations are also used for Governments, such as in the UAE, which are building proof of concepts.</p><h3>What is Hyperledger?</h3><p>Hyperledger is an umbrella term for many different Blockchain implementations, with Fabric being the most successful (to my best knowledge). Fabric, similar to Corda, is a Blockchain solution with Smart Contracts. Smart Contracts are called Chaincode in Fabric lingo. There is no native token or native cryptocurrency, like Ether on Ethereum. There is no public network. It’s private networks, usually permissioned private Blockchain setups. The main usage of Fabric is between consortiums who need a fast and trusted settlement layer. Officially, the Linux Foundation is in charge of the umbrella organization “Hyperledger”.</p><p>There are also other Blockchain implementations in the Hyperledger project. For example there is the new <a href="https://www.hyperledger.org/projects/besu">Hyperledger Besu</a>, which is a typical Ethereum node, written in Java. The other Ethereum nodes are written in Go, Rust, C++, etc. Besu was called PegaSys Panethon before that. It is targeted towards enterprises in private or consortium networks.</p><p>So, how does Ethereum fit into this if there are already two major Blockchain platforms out there? Which begs a lot of similar questions:</p><p>Before being able to answer this, we have to talk about the reason why Ethereum isn’t the go-to solution for many use cases right now. When observing what Fortune 500 companies, Governments, management folks and C-level executives from larger corporations say, then there are a few things considered show-stoppers.</p><p>These show-stoppers are mostly simple technical misunderstanding how Blockchains operate. Especially with the difference between Ethereum and Hyperledger. It seems to root in the main use of Ethereum right now, which so ingrained as <em>Cryptocurrency </em>and not as <em>platform</em>.</p><p>Currently, Ethereum is considered as <em>the</em> public permission-less network. It was never coined as go-to solution for private permissioned consortium chains.</p><p>Furthermore, looking deeper, there are two problems that arise from the fact that Ethereum is mostly advertised as the “Cryptocurrency Ether”. And the terms Ethereum and Ether are used interchangeably by <em>many</em> people, unfortunately.</p><p>Here are the two main problems:</p><p>Problem Nr1: Who governs this public permission-less network? It is originally out of a Cypherpunk movement <a href="https://cointelegraph.com/news/vitalik-buterin-crypto-must-leave-behind-the-individualism-of-the-early-cypherpunks">[10]</a> <a href="https://medium.com/swlh/the-untold-history-of-bitcoin-enter-the-cypherpunks-f764dee962a1">[11]</a>. Many people in the community are devoted to <a href="https://en.wikipedia.org/wiki/Libertarianism">Libertarianism</a>. For many outsiders looking in, this is equal to disrupting the world order (or so?). That frightens. Looking at the enterprise level this increases risk for decision makers and it means a lot of red flags pop up. A big no-no, which you don’t have using Hyperledger governed by big whales like IBM.</p><p>Problem Nr2: A lot of people only think in terms of public information. Data protection, bugs and governance, etc… In case things go wrong, what do to next? So, the platform itself isn’t seen as the “Ethereum Protocol”, instead it’s seen as the Ethereum Main-Network with the Ether Cryptocurrency. Unstoppable and uncontrollable. That’s brings the myth everyone knows and some lived through: If a Smart Contract has just a single bug, it can mean millions of dollars are lost. That certainly isn’t an easy sell at a decision makers level.</p><p>Then there are these problems:</p><ol><li>Ethreum protocol (or Solidity compiler, or tooling) updates are too frequent and often breaking</li><li>Ethereum doesn’t scale well (enough)</li><li>Ethereum tools are not production ready</li><li>There is no privacy in Ethereum</li><li>and: Ethereum training materials are outdated or simply bad/insufficient</li></ol><p>(1), (2) and (3) are all in the same category. It means people didn’t understand how to use the tools, which is somewhat connected to (5), the training materials are outdated or bad. It also depends <em>how</em> you use Ethereum. Of course, not every application is suitable for a private network, and, vice versa, not every application is suitable for a public permission-less network, but many people mix up what is what. And more people are simply assuming that some things aren’t possible on Ethereum without evaluating the tech stack properly. Evaluation comes at a cost, this is true, but so does making the wrong decision.</p><p>The privacy problem (4) does indeed create a whole chain reaction of other problems and questions. For example: How well works Blockchain in combination with GDPR. The right to be forgotten. Privacy Protection. Data protection. Personal Information. Private financial transaction. Zero knowledge. Piracy and crime. Is Ethereum suitable for Banks? Should Blockchains be stronger regulated or are they self-regulating? And so on and so forth. There is even <a href="https://www.europarl.europa.eu/RegData/etudes/STUD/2019/634445/EPRS_STU(2019)634445_EN.pdf">official research</a> from the European Parliamentary Research Service concluding the obvious: “ <em>it can be easier for private and permissioned blockchains to comply with these legal requirements as opposed to private and permissionless blockchains.</em>”. (Note: I believe they meant it’s easier for private permissioned Blockchains than for <em>public </em>permissionless Blockchains?!).</p><p>All in all, if feels like we try to use Blockchains for the right cause, but also try to wrap our head around it, because not everyone understands it 100%. We love what we see, all while trying to protect us as good as we can.</p><p><a href="https://www.linkedin.com/pulse/when-do-you-need-blockchain-decision-models-sebastien-meunier/">Blockchains should definitely be used for everything</a>. But those points mentioned above shouldn’t be any show-stoppers. For example, if Hyperledger is used simply because any of those mentioned points are a problem, then the decision should re-evaluated. As simple as that.</p><p>Nr (5), the missing or insufficient training material, is indeed a problem. The underlying problem is not easy to solve. There are <em>many</em> free resources for Ethereum and Solidity development out there. Most of these resources are either <a href="https://www.youtube.com/watch?v=ndhx6JrFJqM">outdated</a> or bad. This, combined with the fact that Ethereum re-invents itself at a very high pace, is problematic, at least.</p><p>I also found it very hard to maintain a certain level of training material, and ultimately found only in-person training can cope with this.</p><p>So, why learn Ethereum if it is not really used in enterprise environments, hard to learn and most likely comes under more scrutiny by governments and regulators sooner or later?</p><h3>Why learn Ethereum in 2019 or 2020?</h3><p>Ethereum is, undoubtedly and unfortunately, still a bit of a problem-child end of 2019. But it will not continue to be this way, instead, this perception might change very very quickly. The technology is amazing and continues to amaze. The ideas and the outlook, lastly at DevCon V in Osaka, is just astonishing. But the governance and the reputation is problematic. For two reasons: The team and the approach.</p><p>Firstly, as mentioned above, there is no large consortium behind Ethereum. No big household names weighting in with their reputation. From the outside, for non technical people, it looks like a bunch of nerds partying at events around encryption and tech. Given, it’s <em>a lot of nerds</em> already, but it’s still mostly nerds. While the team is certainly good, and the approach might be ok, because enterprises were never the target market for Ethereum in the first place, it still doesn’t help with broader adoption. Adoption would mean more money. More money means more people come in. Some claim though, that it is good that adoption is not so rapid, because it gives more time to develop better solutions.</p><p>Let’s assume for a moment, we want to drive market adoption for the Ethereum Protocol with serious business. Not sure if <em>this </em>helps for adoption and reputation among larger enterprises, although it looks fun, somehow:</p><p>On the other hand, we all know that Microsoft and other large Tech Giants had similar on-stage performances.</p><p>The pace at which it goes forward and breaks backwards compatibility is astonishing. No large enterprise will be able to adopt any solution on Ethereum, if there are breaking changes in libraries and tooling on a frequent basis. The risk is astronomical. The cost of training and continuous education too high.</p><p>On the other hand, the compilers are stable as they are. The frameworks are ok to be used in enterprise environments right now. What is really missing is a guaranteed LTS release of certain libraries and tools. Something that is supported for a fixed amount of time, no matter what. And that’s what <em>some</em> companies got right, contributing to the Ethereum space.</p><p>There are slowly “enterprise-y” players in the Ethereum market. <a href="https://consensys.net/">ConsenSys</a> started to develop tools and frameworks. Truffle and Drizzle came. Web3.js and EthJS. Libraries, tools and platforms were built around Ethereum which are stable enough to be used in enterprise production environments. Or thre are big players like Ernst&amp;Young building solutions on the Ethereum Protocol. That’s a big player, right there, using Ethereum in production. PegaSys, a ConsenSys spoke, developed a new Ethereum client called Pantheon in 2018 and now migrated it over to the Hyperledger consortium as <a href="https://www.hyperledger.org/projects/besu">Hyperledger Besu</a>. It’s Ethereum for Enterprise environments.</p><p>Projecting this trajectory of tooling and community efforts into the future then it is worth to learn Ethereum in 2020 and beyond. The market share of Ethereum, as a platform, will increase and demand for good developers will grow <em>tremendously</em>.</p><h3>How to learn Blockchain Development? Where to start learning Ethereum?</h3><p>This might not be the answer you are looking for, but: it greatly depends on current knowledge. “Learning Ethereum” or “Becoming Blockchain Engineer” is very interdisciplinary.</p><p>Let’s make a comparison to traditional Web-Development. If you want to become a Full-Stack Web-Developer, it’s not enough to learn <em>only </em>HTML or <em>only</em> JavaScript or <em>only</em> CSS. It means learning all of those, plus <em>a lot</em> more. The same is true for Blockchain Development. It involves a plethora of topics around computer science, systems engineering, systems architecture, devops, sysops, etc.</p><p>So, what should you bring to be generally accepted as the “ <em>senior</em> Blockchain Engineer”? As someone who is working on “Blockchain Solutions”. Not to confuse with working on “the Blockchain” itself. So, as somebody who <em>uses</em> a Blockchain, like Ethereum. Not someone who researches and develops the protocol itself.</p><p>Let’s assume, for sake of simplicity, you want to become an <em>Ethereum </em>Blockchain Developer. It boils down to these 5+1 capabilities you should bring along:</p><ol><li>You should know the lowest level, the transport layer. You should be able to understand WebSockets and RPC, so HTTP calls and security. That brings along, at least, a bit of knowledge about Infrastructure and SysOps. Like LoadBalancing, Networking, Firewalls, TCP/IP, the OSI model, etc.</li><li>Then you should know the Ethereum Blockchain protocol from the inside out. That includes the EVM, what it is, how it operates. Basic understanding of instructions, gas costs, contracts and their interaction. Accounts, Private keys, public keys, transactions.</li><li>You should know Solidity from the inside out. You should know the tooling that helps you. This includes following all security guidelines, proper code style, testing, debugging, optimizer, and so on.</li><li>You should know how to write a (Web-)client for your new smart contract(s). That is, e.g. in JavaScript or anything else. Your client should understand the response from nodes and be able to encode/decode those requests. This mostly means: React, Vue, or vanilla JavaScript knowledge is 99% a must, unless that’s a totally different project. NodeJs, npm, maybe webpack and those tools that come with traditional web-development. The more Full-Stack web-development knowledge you bring along, the better.</li><li>You should be able to understand and use tools at your disposal. Frameworks, such as Truffle. How other tools plug into this. Why you need unit testing and what is test driven development. How to use these tools within teams. How to integrate them in any dev-environment.</li><li>Then there is one “bonus point”. You should be resilient. Resilience is extremely important when it comes to learning Ethereum. Never give up, there is always something new to learn, almost every day. And you will fail a million times without someone giving the right answers on StackOverflow or similar sites. Why? Because it’s bleeding edge tech. You are among the few people writing history. <em>Congratulations!</em></li></ol><p>And the same is true for any other Blockchain out there. It is new technology. It is not in use for decades.</p><h3>So, when it comes to Blockchain courses, which course to pick that also works in 2020? What to look out for?</h3><p>There are courses for any budget out there. Price wise you get everything between free (YouTube self-taught) and extremely expensive (instructor-led on-site Bootcamps). But there are more differences, not just the price. Not every course will cover the same things. Not every course will touch on all topics necessary to get the big picture. And this is where you should look for the following details.</p><p>Usually, any course will let you look into the curriculum. That means, you can look for red-flags or things that are missing. Most video on-demand courses are fun to do and are project based and relatively cheap. Most bootcamps require more time, but have better outcomes, but also a higher price point. At the end of any course, if you are looking into Ethereum development, you should know the following things:</p><ol><li>Ethereum Protocol, what is it, how does it work. Consensus protocols, such as Proof of Work, Proof of Stake, PoA, … Keys, Accounts, Transactions, Security.</li><li>Ethereum Nodes and how to work with them. Public network, genesis blocks, private net, consortium networks, bootnodes, block explorers. What’s the difference, how do they work? When are they used? How to set them up?</li><li>The EVM, what it is, how it works under the hood. That includes understanding the basics of debugging, opcodes, what they are.</li><li>Then, the big part: Writing smart contracts. I mean in Solidity. And you should be able to know Solidity from the inside out. I think Vyper is simply not ready <em>yet</em>. So learning Vyper would be a <em>bonus</em> at this point. It should include all Solidity in-depth topics. Also Debugging and security best practices.</li><li>Web3/EthJs/… libraries to “talk” to an Ethereum Node</li><li>Truffle, Unit Tests, Teams</li><li>Potentially things like <a href="https://www.trufflesuite.com/drizzle">Drizzle</a></li></ol><p>All of this. Ideally, with proven up to date material. Watch out for the version numbers of the tools in use.</p><p>Given this, unfortunately, it is impossible to wholeheartedly recommend a single course out there. Not even my own courses. I know <em>our own</em> <a href="https://www.udemy.com/course/blockchain-developer-bundle/?referralCode=BD2AEA0C4EC0CC4FB8F8">video courses</a> try to provide this and much more, but they get outdated at a speed where we simply can’t catch up creating new videos. So, if you are a total beginner, you have never touched any programming language, I am not sure if they are suitable for you. But they are <em>cheap, </em>starting at around $15<em>. </em>Considering the price, that might be an option to start with. Especially, if you already have some experience as a web-developer. Then you don’t get caught up with installing npm or what is JavaScript.</p><p>But, undoubtedly, we’re not alone with this problem. The majority of materials on Ethereum Development is outdated. Sometimes <em>extremely</em> outdated. The only viable solution to this is in-person training.</p><p>There you have physical access to an instructor, which is perfect. If an instructor is present then he can guide around problems that occur, explain it, and it is possible to get the most out of it. That is the best thing that can happen to you.</p><p>There are several week long bootcamps and also a few days long intensive-training classes. The traditional “academy” approach is a several weeks long course. And it usually comes at a premium to have an instructor at your disposal. So, it’s not about the length of the course. It is usually about the quality and cost. The main question is: how to recoup your investment for Blockchain training? After all, the training is usually not cheap.</p><h3>What’s the cost of Blockchain education and the salary as a Blockchain developer?</h3><p>Great Blockchain courses are not for free. For course providers, keeping materials up to date and hiring knowledgeable trainers comes at a higher price point. As a student it all depends on how fast you can recoup your investment to make up for the larger upfront cost to join such a course. In terms of salary <a href="https://u.today/top-12-highest-paying-blockchain-jobs-in-2019">u.today</a> put together some reasonable numbers:</p><blockquote><em>The average annual income for a blockchain developer in Asia is $87,500 per year (the lowest threshold is $60,000 and the highest is $120,000).</em></blockquote><blockquote><em>The average annual income for a blockchain developer in Europe is $73,300 per year (the lowest threshold is $55,000 and the highest is $91,000).</em></blockquote><blockquote><em>The average annual income for a blockchain developer in the U.S. is $136,000 per year (the lowest threshold is $70,000 and the highest is $200,000).</em></blockquote><blockquote><em>The average base salary for a remote blockchain developer is $123,750 (it ranges from $70,000 to $200,000).</em></blockquote><blockquote><em>The average pay rate for a blockchain specialist is $65 per hour, but some rates can be as high as $250 every hour!</em></blockquote><p>Source: <a href="https://u.today/top-12-highest-paying-blockchain-jobs-in-2019">https://u.today/top-12-highest-paying-blockchain-jobs-in-2019</a></p><p>When it comes to payment for the training, there are several factors. Firstly, you could pay cash, upfront. These in-person on-site classes are starting from around $2000 per person. ConsenSys Academy is charging around $1k for their <a href="https://learn.consensys.net/catalog/info/id:159">online program</a>. It’s hard to find prices for their <a href="https://consensys.net/academy/inpersonprograms/">in-person programs</a>, presumably it will be around 4–5 times the price tag of their online-program. We at ThinkingAssets.com charge $2000 for <a href="https://thinkingassets.com/ethereum-blockchain-developer-training.html">in-person training</a>.</p><p>For these classes the full price has to be paid upfront, or at least in regular installments. Some educational providers are offering options for paying based on the job offer after the training. You pay nothing (or very little) upfront and then pay X% of the salary for X-months. That might be an option if a larger upfront expense is not possible. <a href="https://vschool.io/paylater/">https://vschool.io/paylater/</a> is one of those providers.</p><h3>Comparison of Blockchain Developer Programs for Developers</h3><p>Let’s compare the major Blockchain education providers:</p><ul><li><em>Closed </em>cohort, available twice a year</li><li>11-week self-paced program, with typical commitment of 10–15 hours per week.</li><li>Active support from ConsenSys blockchain developers and trainers</li><li>Access to course content is included for one year after the cohort ends</li><li>Lifetime community membership through our alumni network</li><li>Certification included and issued on graduation</li><li>Active graduate screening by ConsenSys HR</li><li>Price unknown</li></ul><p><a href="https://academy.b9lab.com/courses/course-v1:B9lab+ETH-SUB+2018-07/about"><strong>B9Lab Courses</strong></a></p><ul><li>Workload: 12 modules, 8–12 hours per module</li><li>Location: Online</li><li>Blockchain certificate upon successful examination</li><li>EUR 1450</li><li>Length: 12 weeks, part-time</li><li>EVM Architecture, Solidity/Smart Contracts using Ethereum, Truffle,…</li><li>Mock interviews and resume building.</li><li>Cost: $1,499</li><li>Location: Online</li><li>Length: 12 weeks, full-time or 12 weeks, part-time</li><li>Curriculum: Create your own cryptocurrency. Learn about Blockchain platforms, keys and addresses, cryptocurrency, assets and tokenization, smart contracts solidity, regulatory, security, …</li><li>Including meetups, hackathons, conferences, workshops</li><li>Cost: $14,950</li><li>Location: NYC and Online</li><li>Length: 12 weeks, part-time</li><li>Curriculum: Ethereum, Solidity, Hyperledger, for experienced software developers.</li><li>Cost: $3,500</li><li>Location: Toronto</li></ul><h3>Return on Investment: A Blockchain Developer Education Calculation Example</h3><p>Let’s just assume for a moment that, all in all, it will cost you $10.000 to get educated as Ethereum Blockchain Developer. This might include the training itself, the cost for air-tickets, accommodation, food, and some private consulting, ramp up time, etc. Also the cost of forgoing any other opportunities of regular income (e.g. the cost of quitting your current job). How fast would you be able to recoup your investment?</p><p>Let’s base it on the numbers in Europe alone. If you would take the average Blockchain developer position paying you $73.300 per year gross. And the compare it to the average software engineer salary <a href="https://www.daxx.com/blog/development-trends/it-salaries-software-developer-trends-2019">$55.636 in the UK</a>. Then it gives a difference of $17.664 before tax. Assuming a whopping 50% income tax (conservative towards the ROI calculation), means it’s around $9.000 net. Usually you can claim tax-deductions for education, but let’s not take any tax-deductions into account. That would mean around 1 year until you recoup your investment. That sounds very reasonable.</p><p>By choosing the right course and the right educational path it will probably take you less than half that time.</p><h3>How to become certified Blockchain Developer without spending countless hours on Bootcamps?</h3><p>Of course, not everyone wants (or needs) to attend a full blown Blockchain Bootcamp. In fact, many people are just attending a several weeks long course to get the course certificate on their CV. But what if you can get certified without attending the course at all?</p><p>First of all, there is the option to simply take part in any mass open online course program (MOOC), such as Udemy, Coursera, etc. The quality of the courses vary, but that’s not the point, because at the end you want the certificate, not the content. It might be an option, if you are looking for a quick hack to add something to your CV. If you are really looking for the content, then it’s a hit and miss. The quality of the courses vary greatly, especially on Udemy, where money is made by quantity not quality on the creator side. Most instructors are not making enough money to support and sustain a certain level of course materials. Still, you might find some diamond for $9.99 on sale.</p><p>To get a quick certificate, you could attend one of these courses. Of course, you’d still need to prove yourself as a “Blockchain developer”, but it would make a good item on your CV. If you are a self-learner, reading through the Solidity Docs, then this is maybe a path for you.</p><p>The next option is to do a more serious Ethereum Blockchain developer examination and become “Certified Blockchain Developer”. I can’t really speak about Hyperledger Certification programs, since I’m not a Hyperledger Developer. But I know that at least <em>one </em>certification provider is taking the exam serious, requiring people to be physically present at the examination and showing a proper ID. Other are just providing online examinations. The only option you have is the Blockchain Training Alliance.</p><p>Their Certified Blockchain Developer Ethereum Certification program is probably the only one out there you can really take. I was on the initial advisory board, so I can wholeheartedly say they tried to make this as good as it gets. I know they also struggle with the many and frequent updates to the Ecosystem, but regardless of that, it’s still the only certification program I can recommend.</p><h3>How about attending Blockchain Courses on Universities?</h3><p>If you are a student then maybe a Blockchain course on a university is something for you. Recently, most major universities started to offer courses. I was in contact with Stanford, but ultimately had to cancel and stop any collaboration on courses, because I am in a different time-zone and only available remotely from Europe. Their approach sounded pretty well at the time I got in contact. That was mid 2017. I believe they have a full blown curriculum around Blockchain now.</p><p>If you are a student already learning all the great things in Software Engineering, then Blockchain is definitely a <em>must</em> in my opinion. Take the chance and do at least a basic intro into Blockchain development!</p><p>If you are at Stanford, Berkeley, NYU, Cornell, Duke, Georgetown, MIT, Princeton and many other universities, then good news: Just attend courses at your university. Most likely, free of charge, if you already paid for your tuition. More information here: <a href="https://blockchainbitcoins.in/university-blockchain-course/">https://blockchainbitcoins.in/university-blockchain-course/</a> and <a href="https://www.accounting-degree.org/college-cryptocurrency-blockchain-courses/">https://www.accounting-degree.org/college-cryptocurrency-blockchain-courses/</a> or simply consult Google. Information changes rapidly, so best is to simple look out for your own University or nearby Institutes offering this kind of education!</p><p>Of course, just attending a course alone doesn’t make you a successful Blockchain developer. That makes the practice projects, the hands-on work, the great teams, all the success and failure, trial and error, and many other factors. But it’s definitely a good first step if you want to change the way the world works right now. And you are at the edge of a new technological era. One that might shape the world how you, your kids and grandchildren perceive this very world</p><p>Whatever path you will take, I hope you will succeed and you will take this opportunity to change the world for the better.</p><p>I wish you all the best!</p><p>Thomas</p><p><em>Originally published at </em><a href="https://vomtom.at/blockchain-developer-training-salary-survey-2019-2020/"><em>https://vomtom.at</em></a><em> on October 21, 2019.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=800c7d88dbfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Tutorial: Volume Mounting Example in Docker explained step by step]]></title>
            <link>https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-4-volume-mounting-example-in-docker-explained-49f207c71106?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/49f207c71106</guid>
            <category><![CDATA[docker-tutorial]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-beginner]]></category>
            <category><![CDATA[docker-volume]]></category>
            <category><![CDATA[docker-tutorials-beginner]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Fri, 20 Sep 2019 08:29:10 GMT</pubDate>
            <atom:updated>2019-09-20T08:30:44.867Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Run Tutorial for absolute Beginners (Part 4): Volume Mounting Example in Docker explained step by step</h3><p>Part 1 was all about <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-run-a-single-docker-container-explained-step-by-step-16ff5c523b5a">Running a single docker container explained step by step</a>.</p><p>In Part 2 we were <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-2-run-multiple-docker-containers-explained-step-fdc86fb558e3">Running multiple Docker containers side by side</a> and observed the Data separation.</p><p>In Part 3 we were <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-3-understanding-host-directory-volume-mounting-19d84d065a9b">Understanding Host Directory Volume Mounting in Docker for Beginners</a></p><p>Now in this part, we are spinning up a PHP container with host directory volume mounting in docker step by step. It doesn’t really matter that it’s PHP. Believe me! It can be anything really, Python, Go, Ruby, JavaScript, you name it.</p><p>This way you can edit your source-code on your host-machine, while serving it through a web-server in a container. Pretty cool!</p><h3>Prerequisites</h3><p>Again, make sure you installed “Docker Desktop” and you have the Docker Daemon running. Then open a PowerShell on Windows, a Terminal on Mac/Linux and follow along! This is fun.</p><h3>Docker Volume Mounting Video Walkthrough</h3><p>You can also follow along in this video, if you prefer. You can also get this as a full <a href="https://vomtom.at/docker-course?couponCode=VOMTOM_REDIRECT">Docker Video QuickStart Course</a>.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FNxi0CR2lCUc%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DNxi0CR2lCUc&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FNxi0CR2lCUc%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/1023c545c0a9a3510dbe04560a94cdc5/href">https://medium.com/media/1023c545c0a9a3510dbe04560a94cdc5/href</a></iframe><h3>Practical Example of Host Directory Volume Mounting in Docker Step by Step for Beginners</h3><p>Let’s run this container:</p><pre>docker run -it --rm --name my-running-script php:7.2-cli /bin/bash</pre><p>This downloads the official php 7.2 cli image and runs a shell inside. Download may take a bit and you’ll see this:</p><figure><img alt="The image shows PowerShell downloading a lot of layers for the php:7.2-cli image" src="https://cdn-images-1.medium.com/max/1024/1*GF9ybN6H1_vulSXRZrAjzA.png" /><figcaption>Downloading layers for the image php:7.2-cli</figcaption></figure><pre>php -m</pre><p>Get the installed modules. This will print a list of all modules available in php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0t47p9brCTqdlax6AQqxtg.png" /><figcaption>A list of all modules available once you are in logged into the container.</figcaption></figure><pre>php -i</pre><p>Get the config of the PHP cli. The output is similar to above, just with the configuration of PHP instead of the modules only.</p><p>Let’s try what happens if we are outputting “test text” inside a PHP file. Create a new PHP File in your home directory with a simple echo:</p><pre>echo &#39;&lt;? echo &quot;test text\n&quot;;&#39; &gt; ~/index.php</pre><p>This will write &lt;? echo “text text\n”; into the index.php file in the home directory of root</p><p>Let’s execute this</p><pre>php ~/index.php</pre><p>This sould print now “test text”. It should looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Sm7cTJFuog9BBwGGDEgQXg.png" /><figcaption>Adding an index.php file and executing it with PHP inside the docker container.</figcaption></figure><p>Now, what will happen if we exit the container?</p><pre>exit</pre><p>Will end the container, but will also remove the container (including our index.php) because of the--rmflag. This means, our index.php is <em>gone</em>. End of story. Or?</p><p>This is where mounting an external host directory comes in handy. This way you can edit your files on the host, keep your files there, persistently, and just <em>serve</em> them through the container. First create a new directory somewhere and cd into it:</p><pre>mkdir myDockerTestDir <br>cd myDockerTestDir</pre><p>Make sure it is empty:</p><pre>ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/752/1*HG6hHqIy-7xapQ4pOmfbNQ.png" /><figcaption>Created a new directory and it’s empty at the beginning.</figcaption></figure><p>And then run a new container with the current directory mounted to /myfiles inside the container:</p><pre>docker run -it --rm -v ${PWD}:/myfiles --name my-running-script php:7.0-cli /bin/bash</pre><p>Now we are running the php 7.0, because <em>we can</em>, not the php 7.2 cli. Just as a demonstration how easy it is to switch the PHP versions. But you could very well also run php 7.2.</p><p>And we are mounting the root directory into the /myfiles directory inside the container</p><pre>echo &#39;&lt;? echo &quot;test text\n&quot;;&#39; &gt; /myfiles/index.php</pre><p>This creates the same index.php, but this time inside /myfiles.</p><p>Observe the host directory</p><pre>php /myfiles/index.php</pre><p>This should run index.php with the php 7.0 interpreter. It will output you again “test text”, and that’s exactly what we want.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Rzgiu4DIb4N-ZJuWNi2EXA.png" /><figcaption>Running the docker container with php 7.0 and a directory mounted into the container.</figcaption></figure><p>What happens if we exit the container?</p><pre>exit</pre><p>The container is gone. But the file stays. We can safely exit again, because our file is securely stored on the host. It will not be destroyed with the container upon exiting.</p><p>You can see the file now in your host:</p><pre>ls</pre><p>Will show you the file is there. You created it inside the container, but it was written outside of the container on the host. Pretty cool!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/770/1*qFj4dTPUDbvS6zkfJeoZpg.png" /><figcaption>The created file is available on the docker host though volume mounting.</figcaption></figure><p>We can run php 7.2 now and execute the exact same file if we want to.</p><pre>docker run -it --rm -v ${PWD}:/myfiles --name my-running-script php:7.2-cli /bin/bash</pre><p>Let’s re-run the 7.2-cli container. This time with the same directory mounted in /myfiles</p><pre>php /myfiles/index.php</pre><p>This allows you to execute the same script with another PHP version</p><pre>exit</pre><p>Let’s exit the container.</p><p>This is how it looks like:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KkiDAqOOvOw3SMJC7WudIA.png" /><figcaption>The file is still there, we are mounting the directory with the index.php into the container.</figcaption></figure><p>But can we make this a bit more efficient? Instead of opening a shell in a container, then executing the command, then closing it, why not directly execute PHP?</p><pre>docker run -it --rm -v ${PWD}:/myfiles -w /myfiles --name my-running-script php:7.2-cli php index.php</pre><p>Will directly run index.php and output the “test text” and exit again <em>on the host</em>. Pretty neat. No need to actually enter the container. We also used the -w flag, which sets the working directory to /myfiles, so we don’t need to “cd” into the directory or use an absolute path in the index.php.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yT3qXNYSSjqAER35FSapgg.png" /><figcaption>Running a docker container with work-dir set and host-directory mounted volume outputting directly on the host.</figcaption></figure><p>That’s the end of the tutorial. If you like this, then also check out the video course <a href="https://www.udemy.com/course/docker-and-docker-compose-hands-on-by-example/?couponCode=MEDIUM_1099"><strong>Understanding Docker and Docker-Compose — 100% Hands-On</strong></a><strong>. </strong>It’s a 2.5h Quickstart into Docker.</p><p>If you want more, then follow me on Medium, there will be a new tutorial frequently.</p><p>Also, checkout my blog where I have tons of <a href="https://vomtom.at/">Beginner Tutorials about about Blockchain, Solidity, Ethereum, Docker and other Technical Topics</a>.</p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=49f207c71106" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Tutorial: Understanding Host Directory Volume Mounting]]></title>
            <link>https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-3-understanding-host-directory-volume-mounting-19d84d065a9b?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/19d84d065a9b</guid>
            <category><![CDATA[docker-tutorial]]></category>
            <category><![CDATA[docker-beginner]]></category>
            <category><![CDATA[docker-volume]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Mon, 16 Sep 2019 20:09:08 GMT</pubDate>
            <atom:updated>2019-09-20T08:36:54.126Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Run Tutorial for absolute Beginners (Part 3): Understanding Host Directory Volume Mounting in Docker</h3><p>Part 1 was all about <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-run-a-single-docker-container-explained-step-by-step-16ff5c523b5a">Running a single docker container explained step by step</a>.</p><p>In Part 2 we were <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-2-run-multiple-docker-containers-explained-step-fdc86fb558e3">Running multiple Docker containers side by side</a> and observed the Data separation.</p><p>In this part we are going to step into volume mounting in Docker. This part is about Understanding Host Directory Volume Mounting in Docker Step by Step.</p><h3>Prerequisites</h3><p>Again, make sure you installed “Docker Desktop” and you have the Docker Daemon running. Then open a PowerShell on Windows, a Terminal on Mac/Linux and follow along! This is fun.</p><h3>Docker Run Video Walkthrough</h3><p>You can also follow along in this video, if you prefer. You can also get this as a full <a href="https://vomtom.at/docker-course?couponCode=VOMTOM_REDIRECT">Docker Video QuickStart Course</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FB0pzuymRloo%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DB0pzuymRloo&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FB0pzuymRloo%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/dbdf99e3fff9063ed99739a135d8a1ac/href">https://medium.com/media/dbdf99e3fff9063ed99739a135d8a1ac/href</a></iframe><h3>Running docker containers with a shared host file system (a.k.a. docker volumes)</h3><p>Let’s share some files from our host to our docker container. This is done with the “-v” flag and then “host-directory:client-directory” and is directly mapped into the container.</p><pre>docker run --rm -v ${PWD}:/myvol ubuntu /bin/bash -c &quot;ls -lha &gt; /myvol/myfile.txt&quot;</pre><p>This command runs “ls -lha” and pipes the output to /myvol/myfile.txt</p><p>/myvol is “mounted” to the current working directory on the host</p><p>On the host you can observe a new file called “myfile.txt” with the output of “ls -lha” from inside your container.</p><p>The container is then ended and removed because of “ — rm”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*-ecRwS7WoKItTIYodo67Dw.png" /><figcaption>Here you see the command and the file contents from the “myfile.txt” which is created <em>inside the container, but written to the host.</em></figcaption></figure><p>From the docker hub I get an image that contains the rar tool. It’s minimal, but it demonstrates what can be done with separated environments:</p><p><a href="https://hub.docker.com/r/klutchell/rar/dockerfile">https://hub.docker.com/r/klutchell/rar/dockerfile</a></p><pre>docker run --rm klutchell/rar</pre><p>This will download the image klutchell/rar and execute it. In the Dockerfile you can see the “entrypoint” is already the “rar” executable. This means, upon execution of “docker run” it starts the rar process. All you must do is work with it like you work with “rar” itself</p><ul><li>“a” command will add to an archive.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*xF2p11m6dlWP-sA19sJR7w.png" /></figure><p>If we mount the right directory, we can simply compress files from the command line:</p><pre>docker run --rm -v ${PWD}:/files klutchell/rar a /files/myrar.rar /files/myfile.txt</pre><p>It creates a new compressed rar file called “myrar.rar” inside the hosts working directory. It’s fully compliant to rar files.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*Bj2VtYzjzZki4CN1QNX_uQ.png" /><figcaption>Shows that a file can be compressed in a docker container where the file itself is hosted outside on the host.</figcaption></figure><p>Let’s try something else: Let’s set the Working Directory. This was you don’t need to specify a full path anymore:</p><pre>docker run --rm -v ${PWD}:/files -w /files klutchell/rar a myrar.rar myfile.txt</pre><p>The “-w /files” flag sets the working directory to /files. It’s like “cd /files” inside the container and we can skip the full path to the files we want to compress</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*VNhh8SyCSp7ZP-q9QqFVVw.png" /><figcaption>Shows how a -w working-directory flag can be added to the command.</figcaption></figure><p>That’s the end of the tutorial. If you like this, then also check out the video course <a href="https://www.udemy.com/course/docker-and-docker-compose-hands-on-by-example/?couponCode=MEDIUM_1099"><strong>Understanding Docker and Docker-Compose — 100% Hands-On</strong></a><strong>. </strong>It’s a 2.5h Quickstart into Docker.</p><p>If you want more, then follow me on Medium, there will be a new tutorial frequently. Also, checkout my blog where I have tons of <a href="https://vomtom.at/">Beginner Tutorials about about Blockchain, Solidity, Ethereum, Docker and other Technical Topics</a>.</p><p>In the next part you are going to <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-4-volume-mounting-example-in-docker-explained-49f207c71106">apply Docker Volumes to a real-world scenarios where you share a source-file from your host through a docker container.</a></p><p>Thanks!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=19d84d065a9b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Tutorial for absolute Beginners: Run multiple docker containers explained step by steo]]></title>
            <link>https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-2-run-multiple-docker-containers-explained-step-fdc86fb558e3?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/fdc86fb558e3</guid>
            <category><![CDATA[docker-beginner]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-tutorial]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Mon, 16 Sep 2019 18:37:34 GMT</pubDate>
            <atom:updated>2019-09-20T08:35:25.286Z</atom:updated>
            <content:encoded><![CDATA[<h3>Docker Run Tutorial for absolute Beginners (Part 2): Run multiple docker containers explained step by step</h3><p>After Part 1, where we were <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-run-a-single-docker-container-explained-step-by-step-16ff5c523b5a">Running a single docker container explained step by step</a>, we’re now in Part 2: We are running multiple containers side by side.</p><h3>Prerequisites</h3><p>Again, make sure you installed “Docker Desktop” and you have the Docker Daemon running. Then open a PowerShell on Windows, a Terminal on Mac/Linux and follow along! This is fun.</p><h3>Docker Run Video Walkthrough</h3><p>You can also follow along in this video, if you prefer. You can also get this as a full <a href="https://vomtom.at/docker-course?couponCode=VOMTOM_REDIRECT">Docker Video QuickStart Course</a></p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FEn5T8A8hHk0%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DEn5T8A8hHk0&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FEn5T8A8hHk0%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/e7b83a3e34c8ac6abf63f3ae871e8a17/href">https://medium.com/media/e7b83a3e34c8ac6abf63f3ae871e8a17/href</a></iframe><h3>Step by Step Docker Run Tutorial</h3><p>This shows the difference between containers and images. We will create two containers (linux1 and linux2) based on the same image (ubuntu)</p><pre>docker run -it -d --rm --name linux1 ubuntu /bin/bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*FNpUPCCDjnJqRPCPCLFu7g.png" /><figcaption>The screenshot shows that a container was started in the background. The ID is 9d82766…</figcaption></figure><p>This creates container “linux1”.</p><ul><li>-d starts the container as “detached”. Use “docker attach” to attach to it later on.</li><li>— rm cleans up the container after stopping. The container will be removed, basically the same as “docker rm container_identifier” after stopping the container. So everything is kept tidy.</li><li>— name will give the container a dedicated name, which makes it easier to address the container later on.</li></ul><pre>docker run -it -d --rm --name linux2 ubuntu /bin/bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1019/1*oReO4csd0Un3dKJjU2XZKw.png" /><figcaption>Now we started a second container, named “linux2”, ID 7423475..</figcaption></figure><p>Creates container “linux2”</p><pre>docker attach linux1</pre><p>Attaches to container linux1</p><pre>ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*VDM0-Y356mkSbw009SICjw.png" /><figcaption>Attached to “linux1” container. Listing the file system.</figcaption></figure><p>This lists the file system on linux1.</p><pre>mkdir mylinux1</pre><p>Creates a new directory on container linux1</p><pre>ls</pre><p>shows that “mylinux1” was created</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1021/1*FNG72GVNb6xaGSsI9bBr7A.png" /></figure><p>Now open a second PowerShell Window (or Terminal on a Mac) and run in the second PowerShell Window (CLI2):</p><pre>CLI2: docker attach linux2</pre><p>Attaches to container linux2</p><pre>CLI2: ls</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*wIuP_ro4CUkdQycmRaKnAA.png" /><figcaption>Two PowerShell windows. PowerShell window 1 is connected to linux1, PowerShell Windows 2 is connected to linux2. They are different.</figcaption></figure><p>Shows that the directory of linux2 is different than linux1, although they are both from the same image “ubuntu”</p><ul><li>They are separated, they don’t share their file-system</li><li>The bash process is isolated in the container</li></ul><pre>CLI2: exit</pre><p>This will exit the bash and also remove the container because of the — rm command</p><pre>CLI2: docker ps -a</pre><p>Shows only one container which is running, the other one got removed</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1020/1*1wRnw4irLZeHirUgLUvYug.png" /><figcaption>Shows that exiting the container also removes the container</figcaption></figure><pre>CLI1: exit</pre><p>Exits the only running container linux1 and deletes the container</p><pre>docker ps -a</pre><p>Shows nothing anymore</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1023/1*5S6k4xqaq7I4lCARltZLzQ.png" /><figcaption>Shows that no container is in the container-list anymore</figcaption></figure><p>In the next part you are going to apply <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-3-understanding-host-directory-volume-mounting-19d84d065a9b">Docker Volumes step by step</a>.</p><p>Heads-Up: If you like this, then also check out the video course <a href="https://www.udemy.com/course/docker-and-docker-compose-hands-on-by-example/?couponCode=MEDIUM_1099"><strong>Understanding Docker and Docker-Compose — 100% Hands-On</strong></a><strong>. </strong>It’s a 2.5h Quickstart into Docker. If you want more, then checkout my blog where I have tons of <a href="https://vomtom.at/">Beginner Tutorials about about Blockchain, Solidity, Ethereum, Docker and other Technical Topics</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fdc86fb558e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Docker Run Tutorial for absolute Beginners: Run a single docker container explained step by step]]></title>
            <link>https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-run-a-single-docker-container-explained-step-by-step-16ff5c523b5a?source=rss-b46a396b1719------2</link>
            <guid isPermaLink="false">https://medium.com/p/16ff5c523b5a</guid>
            <category><![CDATA[docker-container]]></category>
            <category><![CDATA[docker-tutorial]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[docker-tutorials-beginner]]></category>
            <category><![CDATA[docker-command]]></category>
            <dc:creator><![CDATA[Thomas Wiesner]]></dc:creator>
            <pubDate>Fri, 13 Sep 2019 15:17:03 GMT</pubDate>
            <atom:updated>2019-09-17T15:20:14.012Z</atom:updated>
            <content:encoded><![CDATA[<h3>From the series: Getting Started with Docker for Developers Hands-On Examples — Part 1</h3><p>Are you disappointed by the <a href="https://docs.docker.com/get-started/">Docker Getting-Started docs</a>? You couldn’t find anything suitable on YouTube? You want real hands-on? Then get started reading this!</p><h3>Running a single docker container explained step by step</h3><p>Make sure you installed “Docker Desktop” and you have the Docker Daemon running. Then open a PowerShell on Windows, a Terminal on Mac/Linux and follow along! This is fun.</p><p>You can also follow along in this video, if you prefer:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FIr-8p19fvVU%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DIr-8p19fvVU&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FIr-8p19fvVU%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/d86fc8f98fa950f2c9a18af1a1108a22/href">https://medium.com/media/d86fc8f98fa950f2c9a18af1a1108a22/href</a></iframe><p>Enter this into the command line:</p><pre>docker run -it ubuntu /bin/bash</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*0HC7_ozbfrSQqcblCnWr_g.png" /><figcaption>Showing a linux file system inside a Windows PowerShell. Screenshot of “docker run -it ubuntu /bin/bash” and then “ls”</figcaption></figure><p>What happens here?</p><ol><li>the command runs the container and attaches to stdin, the standard input, where the /bin/bash process is opened</li></ol><p>flags “-it”: interactive flag, TTY flag (gives you a terminal)</p><pre>ls</pre><p>Shows the file system from linux. It’s inside the container.</p><p>Now open a second PowerShell (or Terminal) and type in</p><pre>docker ps</pre><figure><img alt="" src="https://cdn-images-1.medium.com/max/973/1*xfMSS_J23xOqwSOTzRrlUA.png" /><figcaption>Showing two PowerShell windows. One with a running ubuntu container, the other one outputting “docker ps”.</figcaption></figure><p>This lists the currently running container</p><pre>CLI1: exit</pre><ul><li>On CLI1 to exit the container and the linux file system again</li></ul><pre>CLI2: docker ps</pre><ul><li>Lists the currently running containers, which is empty</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*UZfh9tTj9PLgVSJShcT5Ug.png" /><figcaption>Two Powershell windows. In the upper one I typed exit, in the lower one “docker ps” and it outputs an empty list of running containers.</figcaption></figure><pre>CLI2: docker ps -a</pre><ul><li>Lists all containers, the running ones and the empty ones</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*WPbubqc3_9AS4kdsaaiW2g.png" /></figure><pre>CLI1: docker start container_identifier</pre><ul><li>We can restart a container that was previously running</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*8g_wqmwaMEgLdhxYX8UOUA.png" /><figcaption>I restarted the container with ID “c83ff57…” by typing “docker start c8”</figcaption></figure><pre>CLI2: docker ps</pre><ul><li>The container comes up as running again.</li><li>Mind: Creation date != running date</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*E1KdMXbi6RNIMUlUNzkAFQ.png" /><figcaption>Docker ps is listing the container as “Up” again</figcaption></figure><pre>CLI1: docker attach container_identifier</pre><ul><li>We can re-attach to the container</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*3WJtdMoYqQieZDdAbCgbqA.png" /><figcaption>I am re-attaching to the running container</figcaption></figure><pre>CLI2: docker stop container_identifier</pre><ul><li>It will stop the running container</li><li>It will automatically kick you out</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*3Nf3KD1x_ERmGJnHB65Ekg.png" /><figcaption>Entering “docker stop c8” in the lower powershell window automatically triggers an “exit” in the first one.</figcaption></figure><pre>docker ps</pre><ul><li>The container is not running anymore, hence not listed here</li></ul><pre>docker ps -a</pre><ul><li>The container is still in our system, but stopped</li></ul><pre>docker rm container_identifier</pre><ul><li>Clean up: Remove the container</li></ul><pre>docker ps -a</pre><ul><li>And the list is empty again, our container is gone</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FOKaUEJaH3qA9Vj9QGvpQg.png" /><figcaption>Listing container, cleaning up, and listing an empty list</figcaption></figure><p>That’s it for this article. In the next part we are going to <a href="https://medium.com/@tomw1808/docker-run-tutorial-for-absolute-beginners-part-2-run-multiple-docker-containers-explained-step-fdc86fb558e3">run multiple docker containers from the command line step by step</a>.</p><p>Heads-Up: If you like this, then also check out the video course <a href="https://www.udemy.com/course/docker-and-docker-compose-hands-on-by-example/?couponCode=MEDIUM_1099"><strong>Understanding Docker and Docker-Compose — 100% Hands-On</strong></a><strong>. </strong>It’s a 2.5h Quickstart into Docker. If you want more, then checkout my blog where I blog regularly about <a href="https://vomtom.at/">Blockchain, Solidity, Ethereum, Docker and other Technical Topics</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=16ff5c523b5a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>