Professional Documents
Culture Documents
2021.11.11 Red Boumghar BlockchainAndDefi-MakingYourFirstTransaction
2021.11.11 Red Boumghar BlockchainAndDefi-MakingYourFirstTransaction
Decentralized Applications
Understanding and making your first decentralized transaction
2021-11-30 12:00:00
Outline
Why Blockchain ?
for Equality
Because Crypto is Cool
Digitalize Finance Fast Transactions (yes/no)
!
yet
, not
Intermediaries
o
N Buy a house in Bali
Interplanetary Economy
Build on newtech
Transparency Trustless environment
Creating new asset classes
because the banker’s manifesto
is all but believing in Humanity
2021-11-11
Red Boumghar – PhD;
parametry.ai 5
Pillars of finance
Euro
USDT
€ Designed by macrovector / Freepik
2021-11-11
Red Boumghar – PhD;
parametry.ai 6
Pillars of finance
Centralized Finance Decentralized Finance
CeFi
https://sdw.ecb.europa.eu
vs DeFi
https://defipulse.com
(in kEuros)
https://coinmarketcap.com
https://app.santiment.net
...
2021-11-11
Red Boumghar – PhD;
parametry.ai 7
-------------------
Bitcoin – Generation 1
2009-01-03
The First 50 bitcoins
2010-05-22
The First Exchange
10000 Bitcoins for 2 Pizzas (US$41)
2021-11-11
Red Boumghar – PhD;
parametry.ai 9
Bitcoin – Generation 1
UTxO Proof of Work
Unspent Transaction Output with dynamic difficulty
Transaction-Based Ledger via Hash Key ‘brute force’
2021-11-11
Red Boumghar – PhD;
parametry.ai 10
BITCOIN Decentralization
●
Block metadata
●
Transactions Database
Miner NODE
NODE
Get Work To Be Done
getblocktemplate → NODE
2021-11-11
Red Boumghar – PhD;
parametry.ai 11
NODE
BITCOIN network Node
2021-11-11
Red Boumghar – PhD;
parametry.ai 12
https://blockchair.com/bitcoin/block/708800
BITCOIN EXPLORERS
2021-11-11
Red Boumghar – PhD;
parametry.ai 13
BITCOIN MINING - WORK TO BE DONE
bitcoin-cli getblocktemplate '{"rules": ["segwit"]}'
JSON Format
2021-11-11
Red Boumghar – PhD;
parametry.ai 14
Bitcoin mining - work to be done
2021-11-08T18:38:47
2021-11-11
Red Boumghar – PhD;
parametry.ai 15
Bitcoin mining - work to be done
19 Zeros
~ Network Difficulty
2021-11-11
Red Boumghar – PhD;
parametry.ai 16
Bitcoin mining - DIFFICULTY
https://www.coinwarz.com/mining/bitcoin/difficulty-chart
Goal is to keep ?!
a constant 10 mins
work per block
2021-11-11
Red Boumghar – PhD;
parametry.ai 17
Bitcoin mining
2021-11-11
Red Boumghar – PhD;
parametry.ai 18
BITCOIN MINING – MUTABLE INFORMATION
Header = version + PreviousHash + MerkleRootHash + time + DifficultyBits + Nonce
000000016fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d61900000000003ba3edfd7a7b12b27ac72c3e67768f617fc81bc3888a51323a9fb8aa4b1e5e4a29ab5f499790466481dac2b7c
2021-11-11
Red Boumghar – PhD;
parametry.ai 19
100%
2021-11-11
Red Boumghar – PhD;
parametry.ai 21
BITCOIN ECONOMICS
●
Store of Value
●
Medium of exchange
●
Unit of account (?)
●
Scarcity
●
Producing 6.25 bitcoins
reward every 10 minutes.
2021-11-11
Red Boumghar – PhD;
parametry.ai 22
BITCOIN WRAP-UP
New technology implementations:
●
UTXO: Unspent Transaction Output
●
Solving the hash problem
●
Network difficulty and stakeholders
●
Not static the protocol evolves by BIP – Bitcoin Improvement Proposals
2021-11-11
Red Boumghar – PhD;
parametry.ai 23
-------------------
Ethereum – GENERATION 2
https://ethereum.org
Ecosystem for:
Digital currencies
Global payments
Applications
2021-11-11
Red Boumghar – PhD;
parametry.ai 25
ETHEREUM – Generation 2
UTxO Proof of Work
Account/Balance-Based Ledger started moving to
State management Proof of Stake
2021-11-11
Red Boumghar – PhD;
parametry.ai 26
ETHEREUM vs BITCOIN
Points of comparison
Bitcoin Ethereum
Transaction based Ledger Balance based Ledger
2021-11-11
Red Boumghar – PhD;
parametry.ai 28
SMART CONTRACTS
2021-11-11
Red Boumghar – PhD;
parametry.ai 29
SMART CONTRACT in REAL
2021-11-11
Red Boumghar – PhD;
parametry.ai 30
THE erc20 standard: FUNGIBLE TOKENS
ERC20 is the implementation of EIP20
Ethereum Improvement Proposal >> Ethereum Request for Comments
https://ethereum.org/en/developers/docs/standards/tokens/erc-20/
Example to create your own token: www.tokenmaker.org
2021-11-11
Red Boumghar – PhD;
parametry.ai 31
ERC721: Non-FUNGIBLE TOKENS
ERC721 is the implementation of EIP721
Ethereum Improvement Proposal >> Ethereum Request for Comments
2021-11-11
Red Boumghar – PhD;
parametry.ai 32
PRojects
Euro
USDT
€ Designed by macrovector / Freepik
2021-11-11
Red Boumghar – PhD;
parametry.ai 33
Stable coins
Euro
USDT
€
2021-11-11
Red Boumghar – PhD;
parametry.ai 34
Projects for a new Finance
UNISWAP.org
KYBER 1 INCH
Decentralized Exchanges Connect liquidity from
different sources to enable
trades at the best rates
2021-11-11
Red Boumghar – PhD;
parametry.ai 35
Lending and borrowing
2021-11-11
Red Boumghar – PhD;
parametry.ai 36
DErivatives
Synthetix
Derivatives
2021-11-11
Red Boumghar – PhD;
parametry.ai 37
Enabling key functions
2021-11-11
Red Boumghar – PhD;
parametry.ai 38
For CUriosity
2021-11-11
Red Boumghar – PhD;
parametry.ai 39
-------------------
GENERATION 3
2021-11-11
Red Boumghar – PhD;
parametry.ai 41
Accessible participation
Built on existing programming language
Cardano Algorand
Haskell Python
500 ADA
for becoming network operator
2021-11-11
Red Boumghar – PhD;
parametry.ai 42
-------------------
Making your own decentralized transaction
1 2 3
Take Actions
2021-11-11
Red Boumghar – PhD;
parametry.ai 44
PRE-REQ – what is a browser
2021-11-11
Red Boumghar – PhD;
parametry.ai 45
Pre-Req Cyber Awareness
2021-11-11
Red Boumghar – PhD;
parametry.ai 46
WEB3
Web3
Access to the decentralized web
!=
2021-11-11
Red Boumghar – PhD;
parametry.ai 47
1
INStall a wallet
Wallets are used to send, receive, and store
What’s a wallet ? digital assets like Ether. Wallets come in many
forms. They are either built into your browser,
an extension added to your browser, a piece of
hardware plugged into your computer or even
an app on your phone.
(credits: https://rarible.com)
2021-11-11
Red Boumghar – PhD;
parametry.ai 48
1
INStall a wallet
You can your mind later,
your wallet is not attached to the technology
Your private key is.
https://metamask.io
2021-11-11
Red Boumghar – PhD;
parametry.ai 50
2
Create a key
https://metamask.io/
2021-11-11
Red Boumghar – PhD;
parametry.ai 51
2
Create a key
2021-11-11
Red Boumghar – PhD;
parametry.ai 52
2
Create a key
2021-11-11
Red Boumghar – PhD;
parametry.ai 53
2
Create a key
2021-11-11
Red Boumghar – PhD;
parametry.ai 54
2
Create a key
2021-11-11
Red Boumghar – PhD;
parametry.ai 55
2
Create a key
2021-11-11
Red Boumghar – PhD;
parametry.ai 56
3
Connect/Switch blockchain
Accounts
List
Connected
Blockchain
2021-11-11
Red Boumghar – PhD;
parametry.ai 57
3
Connect/Switch blockchain
2021-11-11
Red Boumghar – PhD;
parametry.ai 58
4
Take actions
Create an additional account
Externally Owned Address (vs Contract Addresses)
2021-11-11
Red Boumghar – PhD;
parametry.ai 59
4
Take actions
https://faucet.ropsten.be/
2021-11-11
Red Boumghar – PhD;
parametry.ai 60
4
LET’s INTERACT
2021-11-11
Red Boumghar – PhD;
parametry.ai 61
4
GO TO UNISWAP.ORG
www.uniswap.org
is a Dapp
A Decentralized Application
2021-11-11
Red Boumghar – PhD;
parametry.ai 62
-------------------
Dr. Red Boumghar
red@parametry.ai
https://linkedin.com/in/boumghar
SUMMARY
@redotics
Generation 1 Generation 2
Bitcoin Proof of Work
Proof of Stake
Hash challenge
Protocol standards for
Network Difficulty Tokens and NFTs
Smart Contracts
Many projects
Generation 3
Native Proof of Stake Managing your wallet
Scalibity
Initialization
Security and Privacy
Using DApps
2021-11-11
Red Boumghar – PhD;
parametry.ai 64