<?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 Gilang Bhagaskara on Medium]]></title>
        <description><![CDATA[Stories by Gilang Bhagaskara on Medium]]></description>
        <link>https://medium.com/@gilangbhagaskara?source=rss-eead7d20c28a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zfSCFDYEz1xR6OgNuWQE8g.png</url>
            <title>Stories by Gilang Bhagaskara on Medium</title>
            <link>https://medium.com/@gilangbhagaskara?source=rss-eead7d20c28a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 16:44:44 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@gilangbhagaskara/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[Daftar Istilah Blockchain (part 1)]]></title>
            <link>https://medium.com/@gilangbhagaskara/daftar-istilah-blockchain-a94d08c4dec8?source=rss-eead7d20c28a------2</link>
            <guid isPermaLink="false">https://medium.com/p/a94d08c4dec8</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[bitcoin]]></category>
            <dc:creator><![CDATA[Gilang Bhagaskara]]></dc:creator>
            <pubDate>Thu, 21 Dec 2017 04:09:05 GMT</pubDate>
            <atom:updated>2017-12-21T04:10:03.586Z</atom:updated>
            <content:encoded><![CDATA[<ol><li><strong>Blockchain</strong>: Teknologi penyimpanan data transaksi yang bersifat historis yang terdesentralisasi di mana setiap komputer yang terhubung akan menyimpan data yang sama persis</li><li><strong>Block</strong>: Sebutan untuk unit penyimpanan data yang dihasilkan setiap beberapa detik sekali di dalam sebuah jaringan blockchain yang di dalamnya dituliskan seluruh transaksi yang terjadi pada saat itu. Sebuah block akan memiliki nomor urut.</li><li><strong>Parent Block</strong>: Sebutan untuk block yang dihasilkan dengan nomor urut persis sebelum block terbaru, dan dijadikan acuan sebagai panduan melihat data transaksi yang sudah lampau sehingga setiap block akan memiliki satu parent block dan membentuk rantai (blockchain)</li><li><strong>Distributed ledger</strong>: Data historis transaksi yang disimpan dengan kondisi yang sama persis di seluruh komputer peserta jaringan blockchain dan akan diperbarui secara berkala secara serentak</li><li><strong>Hash</strong>: Metode kriptografi untuk mengubah data sepanjang apapun menjadi sebaris kode hexadecimal. Mengubah isi data walau hanya 1 bit saja akan mengubah keseluruhan baris kode yang dihasilkan</li><li><strong>Consensus</strong>: Kondisi dimana 50% + 1 komputer validator yang terhubung ke dalam jaringan blockchain sudah memiliki data terbaru yang sama. Sebuah transaksi dinyatakan valid jika sudah mencapai consensus</li><li><strong>Node</strong>: Sebutan untuk komputer yang menjadi peserta jaringan blockchain</li><li><strong>Cryptocurrency</strong>: Mata uang digital yang berjalan di dalam jaringan blockchain</li><li><strong>Proof of Work</strong>: Metode consensus dimana setiap komputer yang terhubung ke dalam jaringan blockchain melakukan validasi terhadap sebuah transaksi</li><li><strong>Mining</strong>: Kegiatan melakukan validasi sebuah transaksi dalam jaringan blockchain dengan cara melakukan kalkulasi hash yang memakan usaha computing power. Oleh karena itu diperlukan biaya dan penggunaan listrik yang besar pula untuk membayar kegiatan tersebut. Sebagai kompensasi, pelaku kegiatan mining diberikan sejumlah cryptocurrency</li><li><strong>Miner</strong>: Komputer yang melakukan aktivitas mining</li><li><strong>Public blockchain</strong>: Jaringan blockchain yang secara massal digunakan di seluruh dunia</li><li><strong>Private blockchain</strong>: Jaringan blockchain yang tidak dibuka untuk publik dan umumnya dibuat untuk tujuan khusus sebuah instansi/perusahaan</li><li><strong>Ethereum</strong>: Salah satu jenis teknologi blockchain</li><li><strong>Ether</strong>: Cryptocurrency utama yang berjalan di dalam jaringan ethereum. Unit terkecil dari Ether disebut Wei</li><li><strong>Smart</strong> <strong>contract</strong>: Baris kode yang dapat menyimpan data dan mengeksekusi perintah fungsi algoritma komputer sehingga dapat bertindak layaknya sebuah program komputer. Smart contract bisa menjadi representasi dari sebuah kontrak atau persetujuan antar pihak yang menggunakan teknologi blockchain. Setiap transaksi smart contract akan divalidasi oleh miner</li><li><strong>Bootnode</strong>: Sebutan untuk komputer yang menjadi pintu masuk koneksi untuk dapat terhubung ke dalam jaringan private blockchain</li><li><strong>Sealer</strong>: (Lihat Miner)</li><li><strong>Best block/Latest block</strong>: Block paling baru dengan angka tertinggi di dalam jaringan blockchain. Best block akan dihasilkan setiap beberapa detik sekali setelah proses mining</li><li><strong>Uncles</strong>: Block yang dihasilkan oleh sebagian miner dalam waktu yang secara waktu sedikit terlambat daripada best block sehingga tidak masuk ke dalam jaringan karena menimbulkan percabangan rantai.</li><li><strong>Last block (seconds)</strong>: Berapa lama dalam detik sejak terakhir kali sebuah block dihasilkan</li><li><strong>Average blocktime</strong>: Berapa lama waktu dalam detik yang dibutuhkan untuk menghasilkan sebuah block</li><li><strong>Average network hashrate</strong>: Seberapa kuat kemampuan komputer-komputer yang terhubung di dalam jaringan blockchain untuk melakukan mining</li><li><strong>Difficulty</strong>: Parameter yang menunjukkan seberapa sulit untuk mendapatkan sebuah hash dari kegiatan mining</li><li><strong>Gas</strong>: Sebutan untuk pembayaran transaksi di dalam ethereum blockchain. Gas dibayarkan oleh pihak yang melakukan transaksi dalam bentuk Ether. Ether akan diterima oleh miner yang berhasil melakukan validasi transaksi</li><li><strong>Gas price</strong>: Harga per satu gas yang dibayar dalam satuan Wei</li><li><strong>Cumulative gas used</strong>: Total jumlah gas yang dibayarkan tergantung seberapa kompleks transaksi yang dilakukan</li><li><strong>Gas limit</strong>: Jumlah maksimal gas yang mau dibayarkan dalam sebuah transaksi oleh pelaku transaksi dan juga miner</li><li><strong>Node latency</strong>: Berapa lama waktu yang dibutukan oleh sebuah node untuk berinteraksi dalam jaringan blockchain</li><li><strong>Node Uptime</strong>: Berapa lama sebuah node sudah aktif dalam jaringan blockchain</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a94d08c4dec8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Create a Private Ethereum Network using Puppeth (Developer Notes)]]></title>
            <link>https://medium.com/@gilangbhagaskara/create-a-private-ethereum-network-using-puppeth-2833c06f66ea?source=rss-eead7d20c28a------2</link>
            <guid isPermaLink="false">https://medium.com/p/2833c06f66ea</guid>
            <category><![CDATA[blockchain]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[ubuntu]]></category>
            <category><![CDATA[docker]]></category>
            <dc:creator><![CDATA[Gilang Bhagaskara]]></dc:creator>
            <pubDate>Tue, 19 Dec 2017 13:25:16 GMT</pubDate>
            <atom:updated>2018-02-08T05:42:55.374Z</atom:updated>
            <content:encoded><![CDATA[<p>Since its release, Puppeth, a tool to quickly create your own private network, is one of the most anticipated feature to be included in each of geth version update. However, with little to no documentation, it is hard for someone who is new to Ethereum to deploy a properly working private network. Even after its <a href="https://blog.ethereum.org/2017/04/14/geth-1-6-puppeth-master/">official release announcement back in April</a> I find it hard to get a complete tutorial so I had to compile information from a lot of sources. This post is meant for a developer notes on how I made a private network that consists of a netstats, bootnode, a few sealer/mining nodes, a faucet, and a dashboard website with a look and feel like the <a href="https://rinkeby.io/">Rinkeby test network</a>.</p><p>Starting off, the video from the Devcon 3: <a href="https://www.youtube.com/watch?v=8sXzxkODH-c">https://www.youtube.com/watch?v=8sXzxkODH-c</a> is a good way to briefly understand the main idea behind puppeth and how it works. It is delivered by Peter himself, the man behind the puppeth (no pun intended) development. I find it much easier to understand by watching the demo rather than reading tutorials.</p><p>Next up is <a href="http://blog.enuma.io/update/2017/08/29/proof-of-authority-ethereum-networks.html">this blog post at Enuma </a>which describes how you can build a Clique PoA using Puppeth. The post is comprehensive and helped me understand how the nodes are discovered, but not so much helpful when it comes to building a lot more nodes. I skipped the Nixops part though. <a href="https://modalduality.org/posts/puppeth/">This post at modalduality </a>also helped a bit although some parts have already been covered by the previous post.</p><p>Anyways, I have 8 servers running ubuntu 16.04.3 with high specs. Five of those are supposed to be ethereum nodes, one is for sandbox, and the other two are for production servers. I divided the roles like this:</p><ul><li>10.1.92.42 for web dashboard and sealer node</li><li>43 and 44 are sealer nodes</li><li>45 is sandbox and serves as the geth RPC endpoint</li><li>46–47 are production servers</li><li>48 is for a faucet website</li><li>49 is for bootnode and netstats</li></ul><p>First I had to install docker and docker-compose in all servers. I followed <a href="https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-ubuntu-16-04">this post</a> and also <a href="https://github.com/docker/compose/releases/tag/1.17.1">this post</a> to complete this task. Puppeth will not work without docker and docker-compose.</p><p>I logged on to SSH into 49 then ran puppeth. Then I deployed network components starting from the netstats, then bootnode, sealers, faucet, then lastly dashboard.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CyQcFpKU6HMn_CIk5ePL6A.png" /><figcaption>Netstats inside the dashboard (notice the sidebar)</figcaption></figure><h3>Lesson learned</h3><ol><li>Deploy the network in the following order: netstats, bootnode, sealers, wallet (not available), faucet, dashboard</li><li>If you deploy the bootnode after registering the sealers, the bootnode won’t be able to connect to the network</li><li>For the most part it heavily uses the internet so make sure you have a stable connection</li><li>Set your datadir in a level 1 folder such as /private/ just like how Peter did in his video, it does not matter. I had troubles when I set it inside home directory, but maybe it was just me.</li><li>Existing accounts do not matter that much except for the mining process</li></ol><h3>What I would like to do next</h3><p>I was not able to deploy a Clique PoA network for random reasons such as the nodes won’t discover each other, and I was still trying to understand how PoA works. As a result I had to fall back to the Ethash PoW algorithm. I definitely will try to deploy a Clique protocol after christmas. I’ll write the result in another blog post.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2833c06f66ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Smart Contract in Azure Ethereum Consortium (Part I)]]></title>
            <link>https://medium.com/@gilangbhagaskara/smart-contract-in-azure-ethereum-consortium-part-i-901951116bfc?source=rss-eead7d20c28a------2</link>
            <guid isPermaLink="false">https://medium.com/p/901951116bfc</guid>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Gilang Bhagaskara]]></dc:creator>
            <pubDate>Tue, 22 Aug 2017 01:08:18 GMT</pubDate>
            <atom:updated>2017-08-23T04:47:22.316Z</atom:updated>
            <content:encoded><![CDATA[<p>If you are like me, a long time web/mobile developer who is just relatively new to ethereum (or blockchain in general) you might find the concept of a blockchain application, or in cooler terms, a <em>dApp</em>, quite confusing. Not only that you are deploying an application to a <em>serverless</em> environment, but also (to comply with the distributed nature) you are supposed to call the application from <em>no server </em>but from a blockchain node. Ethereum smart contract is easy to code, but for first timers like me it has a very steep learning curve just to deploy and interact with it. With the lack of documentation and the scattered Q and A’s of stackoverflow one can have a hard time just trying to make their code work. Most likely you will get stuck with the testrpc sample codes and be left wondering: am I ready to actually tackle a real-world blockchain problem?</p><p>If you are a lucky developer who works with a private ethereum network, it is a more miserable journey. I myself am working on a project on top of Microsoft Azure Ethereum Consortium private blockchain. It was quite easy to follow the installation and initial setup using <a href="https://gallery.technet.microsoft.com/Bletchley-Ethereum-4bc7d80d"><strong>this guide</strong></a> but there were definitely a lot more to do afterwards. How do I create and deploy a smart contract? How do I use web3.js instead of Metamask? How do I call a function from the smart contract that I just deployed? The questions go on and on and you are left bemused with what to do next.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/977/1*hhrx_qq4mfNf1nplPPepfQ.png" /><figcaption>The dashboard of your new Ethereum deployment</figcaption></figure><p>I create this post to share my experience with Ethereum Consortium blockchain as it is very hard to find a complete guide of what to do next after deployment.</p><h3>The Setup</h3><p>If you follow the TechNet guide correctly, you will end up with a running ethereum blockchain network with at least a transaction node and two miners. You will have already made a few accounts using your metamask, send a few ether, and probably have deployed the default StateHolder.sol smart contract using the remix online compiler. In this series, I will share you how to use truffle and react to deploy and interact with your smart contract. But first, let’s start with the basics.</p><p>To get things started, we will need a few items:</p><ol><li>your favorite terminal (i use <a href="http://cmder.net/"><strong>cmder</strong></a>)</li><li>your favorite code editor (i use <a href="https://code.visualstudio.com/"><strong>VSCode</strong></a>)</li><li><a href="https://geth.ethereum.org/downloads/"><strong>geth</strong></a></li><li><a href="https://github.com/ethereum/web3.js/"><strong>web3.js</strong></a></li><li><a href="http://truffleframework.com/"><strong>truffle framework</strong></a></li></ol><p>If you have downloaded and installed everything correctly, you are almost ready to code.</p><p>There is one thing that the Ethereum Consortium does not tell you: when you attach to its console from public, its API only includes a few modules. To test this out, enter this command in your terminal:</p><pre>geth attach http://yourServer.region.cloudapp.azure.com:8545</pre><p>and you will enter the console remotely. You will see that there are only the following modules loaded into the console:</p><pre><strong>eth:1.0 net:1.0 rpc:1.0 web3:1.0</strong></pre><p>This is bad because you will not be able to use personal.unlockAccount or personal.newAccount while the command is crucial to let you deploy a contract to your permissioned network. At the same time, it is more secure because once you open a module your node is vulnerable to the public internet.</p><p>However, if you ssh into the server and do geth attach inside it, all modules are loaded and the commands are available.</p><pre><strong>admin:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0</strong></pre><p><a href="https://blogs.msdn.microsoft.com/pkirchner/2017/07/12/getting-started-with-ethereum-tutorials-on-azure/"><strong>This msdn post helped me through this issue</strong></a>. The solution is to change a file in the server that it uses when starting up, which is $/start-private-blockchain.sh inside the home directory. So let’s edit that file by explicitly stating that you need to load the modules.</p><p>Load up vim start-private-blockchain.sh and find the following line:</p><pre><strong>nohup geth --datadir $GETH_HOME -verbosity $VERBOSITY --bootnodes $BOOTNODE_URLS --maxpeers $MAX_PEERS --nat none --networkid $NETWORK_ID --identity $IDENTITY $MINE_OPTIONS $FAST_SYNC --rpc --rpcaddr &quot;$IPADDR&quot; --rpccorsdomain &quot;*&quot; &gt;&gt; $GETH_LOG_FILE_PATH 2&gt;&amp;1 &amp;</strong></pre><p>then change it into:</p><pre>nohup geth --datadir $GETH_HOME -verbosity $VERBOSITY --bootnodes $BOOTNODE_URLS --maxpeers $MAX_PEERS --nat none --networkid $NETWORK_ID --identity $IDENTITY $MINE_OPTIONS $FAST_SYNC --rpc --rpcaddr &quot;$IPADDR&quot; --rpccorsdomain &quot;*&quot;<strong> --rpcapi &quot;eth,net,web3,admin,personal&quot;</strong> &gt;&gt; $GETH_LOG_FILE_PATH 2&gt;&amp;1 &amp;</pre><p>We basically just added the --rpcapi command into it. Save the file and restart your VM. After restarting, attach the geth console again, and you will see that all the modules have been added.</p><p>Afterwards, you can unlock your account easily.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/791/1*DNRiLglRy4_2VJGwULJ3Yw.png" /></figure><h3>Next Step</h3><p>In this post we have set up our development environment and we are ready to develop our app. In our next post, we will learn how to interact with our blockchain using web3.js so if you have any input or questions please feel free to leave a comment below. Thank you!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=901951116bfc" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>