Mastering Blockchain with JS
Blockchain Concepts
Overview
Blockchain Concepts
• Blockchain Fundamentals
• Working of Blockchain
• Use Cases
• Blockchain Web application
Fundamentals
Blockchain Concepts
• Tracing origin
• Shortcomings of current transaction
systems
• Emergence of Bitcoin
• Birth of blockchain
Traditional
Business
Network
Blockchain Concepts
Tracking
Ownership
without
Blockchain
Blockchain Concepts
Tracking
Ownership
with
Blockchain
Blockchain Concepts
Key Business Benefits
Blockchain Concepts
Benefits with Blockchain
Time savings
Cost savings
Tighter security and privacy
Improved auditability and
efficiency
Building Trust with Blockchain
Blockchain Concepts
Distributed and sustainable
Secure, private and indelible
Transparent and auditable
Consensus based and transactional
Flexible
Blockchain
Why its called blockchain?
Transaction records with blocks
Blockchain Concepts
Terminologies
Blockchain Concepts
Terminologies
Blockchain Concepts
Shared Ledger
Permissions
Consensus
Smart Contracts
Participants and Roles
Blockchain Concepts
Participants and Roles
Blockchain Concepts
Blockchain user
Regulator
Blockchain developer
Network operator
Platforms and data sources
Working
How Bitcoin and Blockchain different?
Blockchain Concepts
• Are Bitcoin and Blockchain the same thing?
• How does Bitcoin work?
• How is bitcoin for blockchain different?
• Blockchain Transformation
Propelling Business with Blockchain
Blockchain Concepts
Types of Market Friction
Friction-Free Business Networks
Ecosystems Transformation
Use Cases
Blockchain Concepts
Financial Services
Insurance
Government
Supply Chain Management
Healthcare
Steps to create Blockchain Application
Blockchain Concepts
Steps to your Blockchain Application
Choosing a proper Use Case
Goal of Blockchain Network
Blockchain Provider and Platform
Developing and Deploying Chain
code
Decentralized Application
Blockchain Concepts
1. It runs on decentralized peer-to-peer network which has a source code as open-
source.
2. No single node has complete control over DApp.
3. Example:
Bitcoin DApp uses the blockchain data structure.
DApps
Blockchain Concepts
Smart Contract Structure
Blockchain Concepts
Ethereum
Blockchain Concepts
Decentralized Platform
Written using smart contracts
Internal currency called Ether
Ether is best example of crypto-currency
Blockchain based
Geth
Blockchain Concepts
• Go-Ethereum.
• CLI Application.
• Written in Go Programming Language.
• Available for major operating systems.
• Geth is available for OS X, Linux and Windows.
Solidity
Blockchain Concepts
• High level language
• It is designed to compile to code Ethereum Web Application.
• To use the latest stable version of the Solidity compiler via Node.js you can install it via
npm:
npm install solc
Different Data Types
Blockchain Concepts
Arrays
Strings
Structs
Enums
Mappings
Bitcoin
Blockchain Concepts
Blockchain
Proof of
Work
Blockchain Concepts
Bitcoin
Blockchain Concepts
Bitcoin
Proof- of-
Work
Blockchain Concepts
Solving of Proof of Work
Blockchain Concepts
Transaction
Workflow
Blockchain Concepts
UTXO Blockchain Concepts
Transactions on the Blockchain
Blockchain Concepts
Transaction
on Network
Blockchain Concepts
Merkle Root
Blockchain Concepts
Finding a
transaction
using Merkle
Root
Blockchain Concepts
Forks on Blockchain
Blockchain Concepts
Decentralized
Applications
Blockchain Concepts
Structure
Blockchain Concepts
Structure of Block
Blockchain Concepts
NPM packages
Blockchain Concepts
• Cryptography Plugin
npm install crypto-js
• Express JS
npm install express
• Body Parser
npm install body-parser
• WebSocket
npm install –save ws
Blockchain
Structure
Blockchain Concepts
Components
Blockchain Concepts
Genesis Block Blockchain Concepts
Impact of Blockchain in Financial Sector
Blockchain Concepts
Ripple
Smart Contracts to trade derivatives
Scope of blockchain
Fraud reduction
KYC and Trading platforms
Impact
Health Sector