Swagatika (Jazz) Sarangi

Slides:



Advertisements
Similar presentations
Intro to Block Chain Bitcoin. Blocks ●Ethereum - block chain ●Dogecoin - block chain ●Ripple - not a block chain ●Stellar - not a block chain ●Bitcoin.
Advertisements

© 2016 consensys.net Intro to The Blockchain. © 2016 consensys.net.
Digital Payments STEP BY STEP INSTRUCTIONS FOR VARIOUS MODES OF PAYMENT: Cards, USSD, AEPS, UPI, Wallets.
Digital Payments STEP BY STEP INSTRUCTIONS FOR VARIOUS MODES OF PAYMENT: Cards, USSD, AEPS, UPI, Wallets.
When BPM meets Blockchain
Mobile Application Solution
CRYPTOCURRENCY Bitcoin,Ether & Beyond..
BlockChain Technology
Symposium on Distributed Ledger Technology SDLT'2017
Platform as a Service (PaaS)
The Revolutionary Benefits Of Blockchain
Platform as a Service (PaaS)
Project “Bletchley” Vision
What are they? The Package Repository Client is a set of Tcl scripts that are capable of locating, downloading, and installing packages for both Tcl and.
Cryptocurrencies by.
Evaluation Forms for Blockchain- Based System ver. 1.0
Blockchain Introduction
Introduction to.
Bitcoin - a distributed virtual currency system
Where Money and Technology Meet
Cryptocurrencies By Rui Sakurai and Shane Spears
Introduction to Blockchain & Ethereum
Mobile Application Solution
MyData 2016 – Blockchain and Personal Data
So what is Blockchain anyway?
Blockchain Adrian Zaragoza.
Zcash Mining – A Guide For Beginners. Zcash (also known as ZEC and seventeenth most valued cryptocurrency with market capitalization of $500 million)
What Is Blockchain Technology?. blockchain is a decentralized technology. A global network of computers uses blockchain technology to jointly manage the.
Blockchain Helpline Number
Ethereum Blockchain Development
Bugs in the Blockchain and “Contractual” Vulnerability
Immersion Workshop Agenda
Rechtsanwältin – Germany Attorney at Law – New York
Duke University and NBER
Blockchain and Cryptocurrencies
Getting Started with Ethereum Private Blockchain
Which blockchain? The future at a crossroad
The Pentester’s View on Blockchain Projects
Hosted Web Apps with Windows App Studio
Blockchains (2) slides have been taken from:
Distributed Ledger Technology (DLT) and Blockchain
Blockchain Alexander Prenta 9/27/2018.
Which blockchain? The future at a crossroad
Blockchain-as-a-Service (BaaS) :: providers & trust
Blockchain Idea Submission Template
Blockchain Concepts RISK FORUM 2017 Hash function (e.g. SHA-256)
Hyperledger Fabric Composer Overview UW Blockchain Society, 10/29/2018
Bitcoin & Blockchain Bina Ramamurthy 2/22/2019.
Bitcoin & Blockchain Bina Ramamurthy 2/22/2019.
OurSQL = MySQL + Blockchain
Teechain: Scalable Blockchain Payments using Trusted Execution Environments GIZEM AKDENIZ DECEMBER 13 , 2018.
A Conceptual Model for Ethereum Blockchain Analytics
Plutus Playground Okay, I’m now about to do something very dangerous, which is tell you lot how to actually do something! And we’re even going to do it.
Basics of Bitcoins for Beginners: How Bitcoin Process Works
Blockchains and Auditing
Ethereum Virtual Machine
Analysing Vulnerabilities in Smart Contracts
Scalable and Privacy-preserving Design of On/Off-chain Smart Contracts
Swagatika (Jazz) Sarangi
Swagatika (Jazz) Sarangi
We make your contracts work for you
What is a ‘Cryptocurrency’?
Hyperledger Fabric 소개 및 튜토리얼
Duke University and NBER
Bitcoin and Blockchain
Chapter 3 Software.
Campbell R. Harvey Duke University and NBER
What is A blockchain? B. RAMAMURTHY ©2019, ALL RIGHTS RESERVED
Explore Txs, block, blockchain in Bitcoin
Blockchains Lecture 6.
Presentation transcript:

Swagatika (Jazz) Sarangi Why Solidity is Solid – Basic of Ethereum, Smart Contracts, and Blockchain Swagatika (Jazz) Sarangi

Don’t get intimidated by words like… Byzantine Fault Tolerance Off-Chain Governance On-Chain Governance Distributed Byzantine Fault Tolerance (NEO) Smart Contract Proof of Work Practical Byzantine Fault Tolerance (Tendermint) Proof of Stake Hyperledger Planning to self-teach? Don’t go to Reddit at first.

Evolution of Blockchain(Digital Ledger) 1st generation: Store and transfer of value (e.g. Bitcoin, Ripple, Dash) 2nd generation: Programmable via smart contracts (E.g. Ethereum) 3rd generation: Enterprise blockchains (E.g. Hyperledger, R3 Corda & Ethereum Quorum) Next gen: Highly scalable with high concurrency (E.g. RChain)

What is Ethereum Ethereum is a network or operating system which contains ‘smart contracts’. Ethereum networks are used to transfer money and store data. There are many different ethereum networks. Networks are formed by one or more nodes. Each node is a machine running an ethereum client. Anyone can run a node. Each node can contain a full copy of the blockchain.

Interfacing with Ethereum Network: In this demo, we will work on web3.js (Ethereum client library). This library will allow us to send money, store data, deploy contracts etc. It is used by developers to create application. People who do not want to program but consume, there are 2 great solutions available in the market. Consumers/Front-end Users can use: MetaMask – this is a browser extension that allows people to interact (You can install MetaMask google chrome extension) Mist Browser – It is in an early phase.

What is MetaMask MetaMask is an Ethereum browser and a wallet. MetaMask allows one to interact ‘Smart Contracts’ without downloading any blockchain software. By creating MetaMask account, you will create your own wallet, where you can deposit and send Ether to other people. Download it here: https://chrome.google.com/webstore/detail/metamask/nkbihfbeogaeaoehlefnkod befgpgknn?hl=en

DEMO Let’s create an Ether account by using MetaMask and get some ‘fake’ ether deposited to our account To request some ether, visit: http://rinkeby- faucet.com/send?address=0xD96A28097a01047dac02a184dc5908Ba6FbB01Ee Get your 12 word Mnemonic phrase and go to the tool to understand Account sequence in action: https://iancoleman.io/bip39

Working with MetaMask/Rinkeby Test Network

What is a Smart Contract? Smart contracts are what we use to build interesting application on the blockchain. Smart Contract – An account controlled by code. It is going to be authored by a developer. Instead of being controlled by a human just like the account at the metamask was controlled by you, a smart contract account is going to be controlled by a developer. It is executed on Ethereum Virtual Machine (EVM). We are using “Remix” online coding platform to write ‘Smart Contract’ in this demo.

DEMO Let’s create a Smart Contract

Creating our first ‘smart contract’

Difference between ‘MetaMask’ and ‘Smart Contract’ account MetaMask Account Smart Contract Account Created at the front-end with a business user. Created at the back-end with a developer. Can be accessed across all networks, such as Ropsten, Koven or Rinkeby etc. Have to deploy the code individually across all networks for this account to be accessed. It is network specific. External account Internal account. Needs google chrome extension Does not need any UI extension. And can be created inside visual studio.

Bits and pieces of a Smart Contract nonce How many times the sender has sent a transaction To (This blank means we are creating a new contract. This blank field creates a new contract.) data Compiled bytecode of the contract value Amount of ‘Wei’ to send to the target audience gasPrice Amount of ‘Wei’ to send to the target address startGas/gasLimit Unit of gas that this transaction can consume v Cryptographic pieces of data that can be used to generate the senders account address. Generated from the sender’s private key. r s

How many times the sender has sent a transaction Bits and pieces of a MetaMask nonce How many times the sender has sent a transaction to Address of the account this money is going to data Compiled bytecode of the contract value Amount of ‘Wei’ to send to the target audience gasPrice Amount of ‘Wei’ to send to the target address startGas/gasLimit Unit of gas that this transaction can consume v Cryptographic pieces of data that can be used to generate the senders account address. Generated from the sender’s private key. r s

How much Gas it would cost me to run operations on Ethereum network:

More ‘gas’ terms gasPrice Amount of Wei the sender is willing to pay per unit gas to get this transaction processed startGas/gasLimit Unit of gas that this transaction can consume We also have to spend some amount of gas to ‘store the data on Blockchain’.

Requesting additional Free Ether:

References https://medium.com/loom-network/understanding-blockchain-fundamentals-part-1-byzantine-fault-tolerance-245f46fe8419 Rinkeby-Faucet: http://rinkeby-faucet.com/send?address=0xD96A28097a01047dac02a184dc5908Ba6FbB01Ee Anders Blockchain: https://anders.com/blockchain/distributed.html Solidity coding platform: http://remix.ethereum.org Ethereum converter: https://etherconverter.online/ Udemy course: https://www.udemy.com/ethereum-and-solidity-the-complete-developers-guide/ https://codeburst.io/build-your-first-ethereum-smart-contract-with-solidity-tutorial-94171d6b1c4b Gas price: https://docs.google.com/spreadsheets/d/1n6mRqkBz3iWcOlRem_mO09GtSKEKrAsfO7Frgx18pNU/edit#gid=0 Mnemonic Code Converter: https://iancoleman.io/bip39 Get more Ether than what Rinkeby provides? - Faucet.rinkeby.io (Can request upto 19.75 ether.) https://softwareengineeringdaily.com/2018/04/05/ethereum-governance-with-hudson-jameson/ Off-chain vs On chain Governance: https://medium.com/@BLMPNetwork/difference-between-on-chain-and-off-chain-governance-c881cd3e6374