<?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 Swastik Shrivastava on Medium]]></title>
        <description><![CDATA[Stories by Swastik Shrivastava on Medium]]></description>
        <link>https://medium.com/@swastikshrivastava?source=rss-c1854051ff60------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*eKmzmx_8t7NHF7lEhRFhdg.png</url>
            <title>Stories by Swastik Shrivastava on Medium</title>
            <link>https://medium.com/@swastikshrivastava?source=rss-c1854051ff60------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 03:13:24 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@swastikshrivastava/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[Understand Solidity Smart Contract Functions for better Security of ERC20 Tokens]]></title>
            <link>https://medium.com/@swastikshrivastava/understand-solidity-smart-contract-functions-for-better-security-of-erc20-tokens-6de1626b71ec?source=rss-c1854051ff60------2</link>
            <guid isPermaLink="false">https://medium.com/p/6de1626b71ec</guid>
            <category><![CDATA[solidity]]></category>
            <category><![CDATA[security]]></category>
            <category><![CDATA[erc20]]></category>
            <category><![CDATA[cryptocurrency]]></category>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[Swastik Shrivastava]]></dc:creator>
            <pubDate>Fri, 02 Feb 2018 19:49:44 GMT</pubDate>
            <atom:updated>2018-02-02T19:49:44.527Z</atom:updated>
            <content:encoded><![CDATA[<p>Solidity is a contract-oriented, high-level language for implementing smart contracts. It is designed to target the Ethereum Virtual Machine (EVM).</p><p>Before deploying a smart contract you need to understand what functions it perform. Here, I’ve listed few very important functions and there explanation.</p><p>P.S : If you don’t understand these functions properly before deploying the smart contract then you can get into a lot of hacking and loss of ERC20 tokens!</p><ol><li><strong>Owner() :<br></strong>Returns the address of the owner of the contract. This function is generally kept public but if you want to hide yourself even more then make this function private!</li><li><strong>transferOwnwership() :<br></strong>This function is very crucial as it transfers all the rights of the admin to another address! This is used to transfer the ownership of the contract to another address. This function should be kept private! Otherwise you know what will happen!</li><li><strong>transfer() :<br></strong>transfer() function is used to transfer certain amount of tokens to another account from the owner’s account. It takes only two variables, to-address and amount-of-token. Make it private, personal advise!</li><li><strong>approve() :<br></strong>This is a function which sets an upper limit on any accounts transaction. The address mentioned in this function cannot perform transaction more than the limit set by the owner.</li><li><strong>aprooveAndCall() :<br></strong>This is similar to the above but here you can also pass a string to the specific address so that they get to know about the change.</li><li><strong>burn() :<br></strong>Okay here we go! Now this is very important to understand. This function burns down certain amount of tokens from owner’s account! Use it with care. This function has a specific purpose, if you like to know more send an email to: swastikshrivastava0@gmail.com</li><li><strong>mintToken() :<br></strong>This is also special function whose purpose is very specific. It increases the total supply of tokens and sends the required amount to the account mentioned. It takes two parameters, account-number and amount. If you like to know more send an email to: swastikshrivastava0@gmail.com</li><li><strong>freezeAccnt() :<br></strong>Freezes any account and prevents that account from sending and receiving tokens. This should be made private otherwise they’ll freeze the owner itself! JK.</li></ol><p>These 8 functions should always be checked in the smart contract for their scope. There are other functions also which might be taken seriously and tested before deploying to the main net.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6de1626b71ec" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to setup Geth Node on AWS/Google Cloud?]]></title>
            <link>https://medium.com/@swastikshrivastava/how-to-setup-geth-node-on-aws-google-cloud-e856325c2ea8?source=rss-c1854051ff60------2</link>
            <guid isPermaLink="false">https://medium.com/p/e856325c2ea8</guid>
            <category><![CDATA[erc20]]></category>
            <category><![CDATA[ethereum]]></category>
            <category><![CDATA[geth]]></category>
            <category><![CDATA[blockchain]]></category>
            <dc:creator><![CDATA[Swastik Shrivastava]]></dc:creator>
            <pubDate>Fri, 02 Feb 2018 18:39:16 GMT</pubDate>
            <atom:updated>2018-02-02T18:39:16.342Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Geth</strong> is the the command line interface for running a full Ethereum node implemented in GoLang.<br>Geth provides API’s to perform transactions, know balance, create coinbase, start miner etc on Ethereum network.</p><p>You can create you own RESTful API’s over geth api’s to enable required functionalities.</p><p>There are 8 steps involved in setting up Geth Node on AWS/Google Cloud:</p><ol><li><strong>Login to remote web server through <em>ssh</em></strong></li></ol><p><strong>ubuntu:~$</strong> <em>sudo ssh -i “yourPemFile.pem” ubuntu@ec2–18–27–17–49.us-east.compute.amazonaws.com</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VMpxDptnE4xeBV-5_M7gfg.png" /></figure><p><strong>2. Add Ethereum package to your repository</strong></p><p><strong>ubuntu:~$ </strong><em>sudo add-apt-repository -y ppa:ethereum/ethereum</em></p><p><strong>3.</strong> <strong>Update and install Go-Ethereum</strong></p><p><strong>ubuntu:~$ </strong><em>sudo apt-get update<br></em><strong>ubuntu:~$ </strong><em>sudo apt-get install ethereum</em></p><p><strong>4.</strong> <strong>Check successful installation of geth</strong></p><p><strong>ubuntu:~$ </strong>geth help</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*inl4Y3vJpD5Eh_ZVhPnnRg.png" /></figure><p>It will return version of geth-stable installed. If it doesn’t return anything repeat step 2 and step 3.</p><p><strong>5. Run a geth node to sync</strong></p><p><strong>ubuntu:~$ </strong>geth --fast --cache=1024</p><p><strong>6. Open another terminal and perform ssh</strong></p><p>Keep the previous terminal running and open new terminal. In this terminal we’ll connect geth console to geth node.<br>Perform Step 1 and do <strong><em>ssh</em></strong>.</p><p><strong>7. Connect geth console to geth node running on another terminal</strong></p><p><strong>ubuntu:~$ </strong>sudo geth attach</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/738/1*kCA3VGlWcK_Zn7MNqTgarg.png" /></figure><p>This will attach geth console to the running geth node.</p><p><strong>8. Check syncing of blocks</strong></p><p>Write <em>eth.syncing in </em>the geth console to get the details about the blocks syncing.</p><p>&gt; eth.syncing</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/729/1*p4eddnQdE7dMB_wUBkGl_g.png" /></figure><p>After syncing is complete, eth.syncing will return <strong><em>false</em></strong>.</p><p>In this way you can setup Geth node on AWS/Google Cloud.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e856325c2ea8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>