Essential Crypto Mechanics and DeFi�for Computer Science Engineers
Michael A. Ramalho, Ph.D.�FWCS SP/COMM Society Chair & FWCS IEEE Blockchain Community Chair�mar42@cornell.edu
March 3, 2023
Florida West Coast Section
IEEE Aerospace and
Electronics
Systems Society
Florida West Coast Section�(Michael Mayor / michael.mayor@ieee.org)
Florida West Coast Section
(Michael A Ramalho / mar42@cornell.edu)
USF Student Branch Chapter�(Mateus A. Fernandes A. / mateusf1@usf.edu)
DISCLAIMER:
Primarily a technical talk on blockchain mechanics, operation, and theory.
In Other Words: Analysis and Opinion Only - Use at your own risk.
2
© 2023 FWCS IEEE SP/COMM. All rights reserved.
OBJECTIVES:
3
© 2023 FWCS IEEE SP/COMM. All rights reserved.
TALK OUTLINE
4
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Blockchains and Cryptocurrency Essentials
5
© 2023 FWCS IEEE SP/COMM. All rights reserved.
What are Blockchains?
Blockchains are software-defined data structures in which:�
HEADER
PAYLOAD
Misconception #1: Blockchain = Database (Not!)
Blockchain is a shared, immutable ledger that facilitates recording “transactions”, ”assets” and optionally smart contracts (and state associated with them).
Virtually anything of value can be tracked or traded on a blockchain network.
Key Blockchain Elements:
RESULT: If a transaction includes an error – a new transaction must be added to the ledger/blockchain�to reverse – and both are then visible by all participants.
Blockchain ≠ Database!
Misconception #2: Blockchain = Crypto (Not!)
* -Example: NIST Report 8419 (https://doi.org/10.6028/NIST.IR.8419 ).
This is today’s Focus.
Please Do Not Equate “Blockchain and Database” or “Blockchain and Crypto”!
Blockchain ≠ Database!�&�Blockchain ≠ Crypto!
[Don’t ever equate blockchain as a database in a discussion with others!]
Today’s Focus:
Public Permissionless Blockchains�&�Blockchain/Cryptocurrency Mechanics�&�Foundational DeFi Components (implemented on blockchains)
Essential Technologies for Blockchains
You would also need to know Public Key Cryptography and Digital Signatures if this was a longer lecture! 😁
10
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Essential Technology 1: Consensus Algorithms For Public, Permissionless Blockchains
Blockchains aim to produce an immutable distributed ledger where some of the participants ...
�Thus, fault-tolerant consensus mechanisms are used in both distributed computing and blockchains to�arrive at the state of the network/blockchain among the distributed processing system participants.
�Since nefarious behavior on a crypto network may result in huge (and immutable) crypto losses - permissionless, public blockchains place a very high importance for secure, fault-tolerant consensus!�Both reward and penalty mechanisms are employed in most crypto blockchains.
�There are many such algorithms: Proof-of-Work, Proof-of-Stake, Proof-of-Authority, Proof-of-Space/Storage,�Proof-of-Elapsed-Time – and many yet to come.
�We will focus on the two most popular of these: “Proof-of-Work” and variants of “Proof-of-Stake”.
Essential Technology 2: Random Number Generator Use in Blockchain
Cryptographic Secure Pseudo Random Number Generators (CSPRNG/CPRNG) are used in computer science for:
Issues / Problems:
1: Is a given / 2: Is solved for many fields / 3: Is a given / 4: One way to solve is described later
Optional: Uniform pdf to�Desired pdf Mapping
N-bit Output (N<<M)
(Non-Uniform pdf)
Seed
CPRNG
Clock
M-bit Output
(Uniform pdf)
0
[2M-1]
~
f(x)
~
2M
1
Essential Technology 3: Cryptographic Hash Functions (SHA-256, p/o SHA-2 family from NSA*)
Input_Data
“One-Way” Hash Function (SHA-256)
Output_Hash (256 bits for SHA-256)
Arbitrary Length Input
Advanced Encryption Standard (AES) (FIPS PUB 197)
Deterministic value, but appears random relative to similar looking inputs.
Fixed-length Output (256 bits for SHA-256)
Example: Output_Hash = HashSHA-256(Input_Data)
0x7F83B1657FF1FC53B92DC18148A1D65DFC2D4B1FA3D677284ADDD200126D9069
0x451CAE5B3608B3556D46E41809AFBF80C1ADBEC092504D6FE86FA31A22795525
Hello World!
Hello Vorld!
“W” and “V” have only LSB different in ASCII encoding!
On average, 128 of the 256 bits will be different. For ANY difference in input!!�Often called “The Avalanche Effect” of hashing.
HASHSHA-256
HASHSHA-256
Designed to be virtually impossible to go this way.
“One-Way Functions”
Easy to go this way. Output only “appears random”.
https://doi.org/10.6028/NIST.FIPS.197
* - Others commonly used are RIPEMD, WHIRLPOOL, SWIFFT
Essential Technology 3: Cryptographic Hash Functions (Continued)
Input_Data1 : Input_Data2
HashSHA-256
Output_Hash1,2
Deterministic 256 bit value, but appears random relative to�Hash(Input_Data1)�OR�Hash(Input_Data2).
Note: Concatenation often written as hash(x1 + x2) in hash documentation (do not confuse with linear addition of vectors). We will use this notation henceforward.
Concatenation of Inputs (of arbitrary length)
This ”concatenation property” is often used in situations requiring hashing.
Concatenation of the Inputs to the Hash Function
Input_Data2 : Input_Data1
HashSHA-256
Output_Hash2,1
Deterministic 256 bit value, but appears random relative to�Hash(Input_Data1)�OR�Hash(Input_Data2)�OR�Hash(Input_Data1 :Input_Data2)
Concatenation of Inputs in different order!
Essential Technology 3 (Continued): Merkel Tree & Merkel Root (Binary Hash Chain)
Binary Hash Tree of 4 Data Blocks
00
1
0
01
10
11
000
001
011
010
101
100
110
111
Data�Block 0�Hash
Data�Block 1�Hash
Data�Block 7�Hash
Data�Block 3�Hash
Data�Block 2�Hash
Data�Block 4�Hash
Data�Block 5�Hash
Data�Block 6�Hash
Merkel�Root
Merkel Tree with 8 Data Blocks
Hold on ... hashing is used in at least two additional applications in blockchain!
ANY data under the “top hash” changes – and the top hash (called the “Merkel Root”) changes!
Crypto Blockchain Basics By Example
16
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Bitcoin – Most Famous Public Permissionless Blockchain for Cryptocurrency
“What is needed is an electronic payment system based on cryptographic proof instead of trust, allowing any two willing parties to transact directly with each other without the need for a trusted third party.”�
NOTE:�1 - Original intent was NOT to be an investment!�2 – True, but parties need to TRUST THE CODE!
How Blockchains are Formed – Bitcoin Version 2 Example
Diagram and block decode from: https://www.oreilly.com/library/view/mastering-bitcoin/9781491902639/ch07.html
To “Genesis Block” (Block at Height 0)
Side Note: “Block Height” is not stored anywhere – as it is not always a unique identifier.
Expand
Block at Height 277315
Block�Header
Hash of Block Header is: ”0000000000000002a7bbd25a417c0374cc55261021e8a9ca74442b01284f0569”
This is the�“chaining”�mechanism
The “previousblockhash” element is the “header hash” of the prior block in the chain.
Merkle Tree Root Hash (of transactions below header)
4 Bytes: The size of the block after this field.
”Unix time” (uint: seconds from Jan 1, 1970)
Version 2 rules used (for encoding of this block)
KEY TO BITCOIN: WILL EXPLAIN SHORTLY!
“Proof-of-Work” (PoW) Based Consensus:�
19
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Proof-of-Work (PoW) Consensus Algorithm: Bitcoin’s “Computationally Intensive Puzzle”
* - There are exceptions to be described later.
Proof-of-Work: Let’s talk about that NONCE [Bitcoin/Ethereum 1.0/Original Dogecoin/Litecoin]
HASHSHA-256{[Bitcoin Block Header without Nonce field] + [Nonce]} = 256-bit Result*
* - When used for signature/verification purposes, result also called a “message digest”
Block Header
Transactions
Nonce
A Bitcoin Block
Key Result: If you want to try nonces (e.g., 0, 1, 2 ...) to produce ....
exactly k leading zeros in the result (i.e., 0b{k-zeros}{(256-k)-don’t cares}) ...
then ON AVERAGE we expect to try 1/(1/2k) = 2k trials to obtain this result.
Question: How many “random Nonces” do you have to try if you want the hash result to begin with a binary zero?�(Desired 256 bit result in binary to be 0b0XXXXXXXXX ...XX, where X is “don’t care”; that is value < 2255).��Partial Answer: Since the result is expected to be random, there is a 50% probability of the first bit being a “0” (p = 1/21).
255 bits don’t care
one zero bit
Full Answer: The probability distribution of the number X of Bernoulli trials needed to get one success is a�geometric distribution where the mean of the distribution is 1/p. So ON AVERAGE we expect to need 2 trials.
Proof-of-Work: Let’s talk about that NONCE & DIFFICULTY (continued)
HASHSHA-256{[Bitcoin Block without Nonce field] + [Nonce*]} = 256-bit Result
* - Extra Credit: The Bitcoin Nonce field is only 32 bits. Why is this a problem? How to fix it?
If we want the result to 0b{k-zeros}{(256-k)-don’t cares}), ON AVERAGE we expect to try 1/(1/2k) = 2k Nonces.
Now suppose:
IF we were limited to hash results numbers having the form of 0b{k-zeros}{(256-k)-don’t cares},�THEN we would find k so as to produce a block every 10 minutes (again, on average).��We need to set 2k to be approximately equal to 600X, that is: k ⋍ log2[600*X].
200 Million, Tetra hashes/sec
(200*106) (1*1013) = (2*1021)
(84.8*106) (1*1013) = (8.48*1020)
Block 730466 (mined on April 04, 2022 at 7:10 PM EDT) hash is ...�0x00000000000000000002a24e1b956496a6f6c7d1eae6342488a257c9ade1909d�... which had 78 leading (binary) zeros (4*19+2).
Approximate hash rate in April 2022 is (2*1021),�so log2[(6*102)*(2*1021)] = 79.98 ... 79 leading zeros needed
In July 2021, hash rate was (8.48*1020) ... 78 leading zeros needed.
Homework: Playing with “Proof of Work” Blockchains – Go to https://demoblockchain.org/tokens*
Same�transactions�different�order
Different�Nonces�needed�for�four, hex�zeros
Miners don’t�all work on the�“same hash problem”�(e.g., transactions�can be recorded�in a different order).��Demo goal here is�for a hash result�to have form of�0x0000{XXXX}�(16 leading zeros,�65,536 tries on average).
Create your own blockchain.
* - This is a commercial site. Not an endorsement. Demo may be taken down at any time.
Possible Chain 1
Possible Chain 2
139,359 tries (~2x avg)
23,136 tries (~35% avg)
Proof-of-Work: What is the Target? How is DIFFICULTY Adjusted?
�Block 730466 (mined on April 04, 2022 at 7:10 PM EDT) hash is ...�0x00000000000000000002a24e1b956496a6f6c7d1eae6342488a257c9ade1909d�... which had 78 leading (binary) zeros (4*19+2).��Note: Wanting a result to be 0b{k-zeros}{(256-k)-don’t cares}) ... is equivalent to saying ...�the value must be less than or equal to 0b{k-zeros}11111111111111...111 (i.e., < 2(256-k))��Bitcoin specifies that the hash must be less than a specific target value (a specific 256 bit unsigned integer)�... thus not limited to power of 2 changes in our examples prior.�
Simplified, the Bitcoin’s target value is adjusted approximately every 14 days as follows:
Bitcoin’s “Difficulty Adjustment” is an Adaptive Control System
* - Bitcoin Goal is block every 10 minutes. (1 block/ten-minutes)*(6 ten-min periods/hour)*(24 hours/day)*(14 days/epoch) = 2016 blocks/epoch�** - Due to an error, actually 2015 blocks. See details at https://minerdaily.com/2021/how-are-bitcoins-difficulty-and-hash-rate-calculated�*** - With hard adaptation limit/clipping at 4x or ¼ X at each target value epoch update.
Previous�Example
Details:
Bitcoin Difficulty – The Game Is Rigged!
The Details:
Image Credit: https://wdrfree.com/stock-vector/carrot-man-carrots
INDEPENDENT OF HOW MANY MINERS ARE WORKING ON THE SOLUTION!
Nonce & Difficulty Bitcoin Header Fields -�Now you know ALL fields in Bitcoin v2 Header!
Average 24 hour�Minting time�(365 data points here)
The average time for each�2 week (2016 block) epoch�(26 data points here)
Sichuan�Bitcoin Mining�Shutdown
How Much Does It Cost to Mine Bitcoin? – It Depends!
Miner #1 has�10% of hashpower
Miner #1�Doubles GPUs
Miner #1 now has 18% of hashpower
Miner #1 almost doubles their chances of�producing a Bitcoin block!
If Miner #1’s mining costs are low relative to�the average miner, this is a winning strategy!
But what happens if ALL MINERS double their mining capacity?
Miner #1 has�10% of hashpower
All Miners�Double GPUs
Miner #1 has SAME 10% of hashpower!
Thus, same chance winning as before ...�but Miner #1’s mining costs double!
But what happens if ALL MINERS collude to halve their capacity?
All Miners�Halve GPUs
Miner #1 has SAME 10% of hashpower!
Thus, same chance winning as before ...�but Miner #1 mining costs halve!
Bitcoin’s “Tragedy of the Commons”:�Low-cost miners have incentive to increase hashpower and waste energy!
The Economics of Bitcoin (to be continued ...)
IF� {“Mining cost for a given miner” > “their expected profit”}; // Profit ~= (Bitcoin Price – Mining Costs)�THEN
{The miner will stop mining};
END
The Genius of Bitcoin’s “Proof of Work” – Consensus Algorithm Resolves Conflicts!
2 different miners “solve hash problem” at nearly the same time
A
B
Transactions on abandoned Fork A but not yet on Fork B�will be introduced onto a future Fork B block.
“Nakamoto Consensus” - A Natural Fit for Open Permissionless Systems (any node can join at any time).
Z
C
The Horrible Downside of “Proof of Work” – ESG Waste!
To increase your chances of successful mining in a cost-effective manner you must:
14 Th/s, 1190 Watts
99.9%* of compute cycles (and thus electric power) is devoted to solving the Proof-of-Work hash “puzzle”!�Bitcoin hash operations today consume the equivalent of 2x the power needs of Switzerland. This is unsustainable!�There must be more ESG-friendly ways to building blockchains!
“Bitcoin Mining” isn’t “mining” or “puzzle solving” in Traditional Sense: It is “Purposeful Random Guessing”!
Traditional Mining�(mine where gold was found before)
Puzzles Involve Skill�(would not try this piece in middle)
X
BITCOIN:�Idiocy of Random Digging�(dog without sense of smell)
ESG == “Environmental, Social, Governance”
Can We Choose the Next Block Host Without the Purposeful ESG Waste Used in “Proof of Work”?
Statistically, We already know the answer!
Let’s simplify the problem (we will later relax these assumptions):
Benevolent Ramalho�Random Choosing�Machine
1
2
3
4
5
6
7
8
N
Problems:
METHOD 1: FAIL
Cryptographically Secure�Pseudo Random�Number Generator
1
2
3
4
5
6
7
8
N
Seed
Clock
Challenges:
Hash�(what�else?)
S1
S2
S3
S4
S5
S6
S7
S8
SN
Enroll with�your secret�random number
Seed
Problem:
Last CPU to send their�secret (after seeing all�others) can bias seed.*
METHOD 2: FAIL
H1
H2
H3
H4
H5
H6
H7
H8
HN
Step 1: Enroll with�a hash of your secret�random number
ENROLL
S1
S2
S3
S4
S5
S6
S7
S8
SN
Step 2: After enrollment�is complete, then send�secret random number
VERIFY PREVIOUSLY�SENT HASHES
Step 3: Verify previously�sent hash is correct�for secret sent.
WORKS: “RanDAO commit-reveal scheme”*
* - Ethereum uses this. There are other schemes as well.
S1
S2
S3
S4
S5
S6
S7
S8
SN
Seed
Hash
Step 4: Hash as before
* - Also called “grinding”.
“Proof-of-Stake” (PoS) Consensus:�
31
© 2023 FWCS IEEE SP/COMM. All rights reserved.
“Proof-of-Stake” architectures “appoint” the next block creator without ESG waste in PoW
Loose Definition of “Proof of Stake”
Proof-of-Stake (PoS): Some Popular Variants
Highest Chance�of Being Chosen�for Pure PoS
Pure Proof of Stake (PPoS): Algorand
Other criteria for PoS weighting other than amount staked:
Delegated PoS (e.g., EOS) and Leased PoS (e.g. Waves) – Are variations on the above.
Proof of Importance (e.g., PoI, XEM)
Liquid PoS (e.g., Tezos)
Bonded PoS (e.g., Cosmos)
I use the term “Probabilistic Validator Selection” for these techniques.
Blockchain Hygiene: Incentives and Disincentives for “Proof-of-Work” and “Proof-of-Stake”
PoW (Bitcoin and “Altcoins”) – Uses “Nakamoto Consensus”:
* Bitcoin/Litecoin expectation is circa 2140.
PoS (and other PoS derivatives) – Use an Economics-Based Consensus Algorithm:
Answer to PoW ESG Wastefulness ... Is PoS and PoS Derivatives
Public Permissionless Blockchain Nodes (validators) are not autonomous! Major departure from Bitcoin principles.
Image Credit:�https://www.coindesk.com/tech/2022/09/06/the-final-countdown-to-the-ethereum-merge-has-officially-begun/
Proof of Stake
Proof of Work
"Ethereum 1.0”
“Difficulty Bomb” triggered (PoW difficulty set too hard – no one can mint a block – PoW died).
“THE MERGE” - Ethereum's Transition from Ethereum 1.0 (PoW) to Ethereum 2.0 (PoS)
... BUT THIS IS DEBATABLE ... BECAUSE ...
Binance CEO requested validators to stop a valid smart contract to stop a hack�(https://www.cnbc.com/video/2022/10/07/binance-ceo-changpeng-zhao-breaks-down-570-million-cryptohack.html).
Ethereum “Merge” from PoW to PoS – Quick Look at Block Headers
Ethereum�Pre-Merge�(similar to Bitcoin header)
Ethereum�Post-Merge
Fundamentally Straightforward�(despite the hype/analogies�of changing jet engines�on jet while in flight)
A lot of testing to�ensure the merge�went smoothly!
Ethereum PROVED that�(energy-wasting) PoW�blockchains can�transition to PoS!
Extra header fields�mostly due to Ethereum�Virtual Machine State�(we discuss this later)
SUMMARY: Proof-of-Stake (PoS) vs Proof-of-Work (PoW)
”Proof-of-Work” Properties (“The Genius of Satoshi Nakamoto’s Bitcoin”):
“Proof-of-Stake” Properties:
Note: Blockchain Governance and future Blockchain Regulation are extremely important topics!�We will address some of these issues later.
A Quick Note on Other Forms of Blockchain Consensus (for completeness):
PoW and PoS are the two dominant consensus algorithms for public permissionless blockchains, but there are others.�
We are still “Early Adopter/Early Majority” phase of the crypto technology life cycle!
Blockchain Virtual Machines and Smart Contracts – Ethereum Example Code
39
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Ethereum Virtual Machines (EVMs) ⋍ {Bitcoin-like transaction chain + Smart Contracts}
A smart contract is a computerized transaction protocol that executes the terms of a contract. The general objectives of�smart-contract design are to satisfy common contractual conditions (such as payment terms, liens, confidentiality, and even enforcement), minimize exceptions both malicious and accidental, and minimize the need for trusted intermediaries.
All parties MUST TRUST smart contract!
Smart Contract Execution isn’t free ... It costs “gas”.
Ethereum Virtual Machines (EVMs) – A Deeper Look
Gas fees are paid in Ethereum's native currency, ether (ETH).�Gas prices are denoted in gwei (1 gwei = 0.000000001 ETH).
Image Credit: https://ethereum.org/en/developers/docs/gas/
Smart Contact is interpreted code – executed upon an ”event”.
Point 1: Only use external storage when absolutely required.
Point 2: Pass enough gas!
Ethereum Smart Contracts – Solidity Example
The first time this smart contract is called, the “constructor” instantiates the state needed on the blockchain (part of�“world state”). There is a cost (in gas) to instantiate state that will forever be on the blockchain – so don’t ever instantiate�local/temporary state on the blockchain!
Here, three things are required. If not met, the call/method�terminates and “reverts” any blockchain state to where it�was prior - but gas fees still consumed (as EVM executed it)!
Smart Contract execution can trigger other “events” and “errors”.
Default uint is uint256. Operations with unit32 cost more gas!
Widely-Held Crypto Beliefs or Lies�(ahem ... I meant misunderstandings )
😁
43
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Crypto Supply Limits – A Bitcoin Example (Part 1)
Original Bitcoin Money Supply Design (it has not changed!)
Total BTC Limit = 10,500,000 [ 1 + 1/2 + 1/4 +1/8 + 1/16 ... ]
First four years
Next four years
... and so on ...
= 1
Total BTC Limit = 21,000,000 BTC
Crypto Supply Limits – A Bitcoin Example (Part 2)
Question: Why 21 Million BTC Cap? ..... Bitcoin’s Answer: Designed-in BTC scarcity.
93% of the 21 Million BTC has been mined already.
One Epoch
Bitcoin’s monetary supply is open-source, for everyone to see and review.
Integer Truncation (result is “Reward Era” – 1)
Initial/original code DID NOT have this if statement!�[On some 64-bit machines “>> by 65” is same as “>>1” ... Bad, would restart Reward Era 1 again!]�Thus, with enough lead-time before a potential future event – the code CAN BE CHANGED/UPGRADED!
“Epoch” (210,000)
Block Height
nSubsidy is Block Reward, halved by reward era (via right shifts)
Apparently everyone doesn’t know that Bitcoin Governance can vote to change code in the future.*
* https://sports.yahoo.com/jamie-dimon-thinks-bitcoin-supply-214026462.html
Bitcoin Supply Limit - Just One “Blockchain Governance” Issue
El Salvador President Nayib Bukele quotes “Bitcoin Scarcity”
"A gigantic price increase is just a matter of time" ... He centered his case on bitcoin's supply cap and his estimate�that there are 50 million millionaires in the world.
�"Imagine when each one of them decides they should own at least ONE #Bitcoin ...�But there will ever be only 21 million #Bitcoin," he said. "No[t] enough for even half of them."
The ARK chief [Cathy Wood] also pointed to the increasing institutional embrace for Bitcoin, and said that if institutions were�to allocate around 5% of their funds to Bitcoin the way they have with asset classes like real estate or emerging markets,�that would lift the price to $400,000 or $500,000.
At those levels, Bitcoin would be worth roughly the same as all of the gold in the world. That fits with another argument for�Bitcoin's value, as many backers claim it's digital gold due to it being capped at 21 million coins, which creates artificial scarcity.
Cathie Wood ARK Invest CEO also mentions “Bitcoin Scarcity”
Solana: No limit. But targets a long-term inflation rate (of 1.5%). Will create/burn SOL to accomplish goal.
[This is, in essence, a money supply POLICY (not unlike US Federal Reserve targets). Interesting!]
Litecoin: Limit. Similar to Bitcoin, has 84 Million LTE cap.
If Cryptocurrency is a “currency” (not a commodity) ... Why is a capped Bitcoin Money Supply the right answer?
Dogecoin: No Limit. ~5 Billion DOGE per year (doubling its supply over 20 years).
The money supply of a given cryptocurrency SHOULD be a factor in it’s potential worth in the future.
Do You REALLY Own Crypto?
47
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Do You Really Own Crypto? ... Let’s Talk About Crypto Ownership – Part 1
Crypto Transactions on the Crypto Blockchain Require Cryptographic Key Pairs (Private/Public Keys):�
Cryptocurrency Mantra: “Not your Keys – Not your Crypto!”
The two prevalent ways crypto is “owned” are:�
Do You Really Own Crypto? ... Let’s Talk About Crypto Ownership – Part 2
Self-Custody: The entity “owing” the crypto has direct responsibility for their keys!
Keeping track of the needed public/private key pairs is usually facilitated by a “wallet”.
Exchange-Custody: The entity “owing” the crypto is really the exchange (NOT YOU).
Blockchain Governance and Regulation
50
© 2023 FWCS IEEE SP/COMM. All rights reserved.
A Short Note on Blockchain Governance ....
A Decentralized Autonomous Organization (a DAO) is a organization - represented by rules encoded as a computer program (smart contract) or in blockchain governance structure - that is:
[Member-directed communities without centralized leadership used for ANY purpose.]
Bitcoin’s Original Goal: To eliminate the need of a mutually acceptable trusted third party. Just trust the code.
But the blockchain code can be changed by the blockchain’s governance!
IMPLICATION:
By participating in any of the above – you are agreeing to the terms the DAO or Web2 provider set!��Cryptocurrency & Layer 2 networks have significantly different governance than regulated entities.� Caveat Emptor!
TALK SUMMARY
Blockchain and Cryptocurrency Fundamentals & Blockchain Misconceptions
Cryptographic Hash Functions & Cryptographic Random Number Generators
Detailed Bitcoin v2 Blockchain Mechanics & Ethereum Virtual Machines & Smart Contracts
Major Consensus Algorithms: Proof-of-Work vs Proof-of-Stake
ESG / Incentives and Disincentives for PoW & PoS & Costs to Mine Bitcoin
Debunking Widely-Held Beliefs: Crypto Supply & How Crypto is Held
Cryptocurrency/Blockchain Governance & Regulation
You have better understanding than 98% of the crypto journalists!
52
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Florida West Coast Section
53
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Bonus Material��
54
© 2023 FWCS IEEE SP/COMM. All rights reserved.
Economics of PoW/PoS: “Solo Mining/Minting” vs “Pooled Mining/Minting”
Solo Mining (PoW):
Solo Minting (PoS):
Pooled Mining (PoW):
Pooled Staking (PoS) or “Centralized Exchange Staking” (PoS):
This is the “crypto staking” you often hear about.�”Custodial custody” of crypto discussed later.
(https://coinmarketcap.com/alexandria/article/crypto-staking-guide)
Role of “Layer 2 Crypto” Networks: Transaction Scale/Latency/Cost Tradeoffs
Scaling:
Goal: Increase transaction speed/throughput & minimize delay (without sacrificing decentralization or security).
Layer 2 Downsides:
Layer 2 Networks (aka “sidechains” or “off-chain solutions”):
Fiat-Currency vs Crypto Currencies / What are “StableCoins”? / Crypto Supply Limits?
Fiat Currencies: US Dollar, Euro, Yuan ...
Crypto Currencies: Bitcoin, Ethereum, Litecoin, Dogecoin ...
StableCoins: Tether (USDT), USD Coin (USDC), TerraUSD (UST), Binance USD (BUSD), ...
* - Due to control dynamics, some miners might exit – allowing remaining to become profitable.
May 13,�2022
(was 3rd�largest)