Blockchain has been a big buzz lately. There are a lot of demand for DApps (Decentralised Applications) developers in the market right now.
In this session, the audience will understand the fundamentals of a Blockchain platform, what it means for web developers and how to get started writing your own Decentralised App. The speaker coming from a developer background himself, will bridge the gap the knowledge to fast-track the audience in DApps development.
The audience will also learn available platforms and tooling within the Blockchain space. The speaker will highlight some of the good use cases of Blockchain and when NOT to use it.
6. Smart Contracts
• A contract that is handled by a machine once conditions met.
• 2 Parties don’t need to trust each other. They just need to agree
on the contract.
7. Ethereum
August18
• Open Source Blockchain Distribution (Ledger)
• Public, Private and Consortium
• Big Emphasis on Smart Contracts
• “Turing Complete”
• Active Roadmap
• Buzzword: Ether is the currency, Ethereum is the
platform.
8. How does it work?
Substituting your centralized database with a distributed decentralized VM
August18
Source:https://medium.com/@mvmurthy/ethereum-for-
web-developers-890be23d1d0c
9. Solidity
Contract oriented programming language
August18
• JavScript like
• Extension “.sol”
• Compiles to Operation Codes “OpCodes”
• ADD, SUB, MUL, etc
• Supports Testing
10. Ethereum Gas
• Each OpCode has fixed computation effort
See Appendix G of Ethereum Yellow Paper
• Paid by sender that triggered the transaction
• Single ether transaction would cost 21, 000 gas
• Interacting with a smart contract would cost 21, 000 gas + all executed
opcodes gas
• You can set the maximum gas limit, but failure to meet the required gas would
mean loss.
• You can set the gas price as a form of multiplier. Determines how fast your
transaction will be.
August18
Source:
https://ethereum.github.io/yellowpaper/paper.pdf
11. Truffle
”One tool to rule them all”, sounds familiar?
• Built-in smart contract
compilation, linking,
deployment and binary
management
• Truffle Suite
Ganache
Ganache-CLI (Ethereum
TestRPC)
Boxes
A lot more…
August18