Skip to content

Latest commit

 

History

History
1123 lines (765 loc) · 26.3 KB

File metadata and controls

1123 lines (765 loc) · 26.3 KB

Cryptocurrencies 101

Basic concepts to get started



Wifi Info

Network: cubantech

Password: meet-ups


Goals

  • Cuban Central Bank issues informative note about crypto
    • Discourage joining crypto investment schemes
    • Bitcoin logo everywhere
  • Stop the F.U.D

F.U.D

  • Fear
  • Uncertainity
  • Doubt

Outline - Day 1

  • Q&A
    • Cryptocurrencies are they real money ?
    • What's a cryptocurrency all about?
    • How can I trust cryptocurrencies if I can't see them coins?
    • Crypto are not regulated. I trust my bank and my government

No previous knowledge to understand

--

Outline - Day 2

  • How #cryptocurrency could work from #Cuba ?

--

Outline - Day 3

  • How #cryptocurrency could work from #Cuba ?
    • continued ...
  • How Bitcoin price is determined?
    • How Google determines Bitcoin price?
  • Is Bitcoin obsolete?

--

Outline - Day 4

  • I'll use cryptocurrencies once I understand what they doing ...
  • How do cryptocurrencies work?
  • What's the difference between cryptocurrency , banks and accounting bookkeping?

--

Outline - Day 5

  • Gimme them crypto ! Do I need a bank account?
  • How do I actually use crypto?

--

Outline - Day 6

  • What does the Cuban cryto law says? Implications?
  • What does the Cuban cryto law says? Implications?
  • Do I always need a wallet ? What's the best one ?
  • Can anybody confiscate my crypto ?
  • Who can see how many crypto coins I have ?

--

Outline - Coming soon

  • Q&A
    • Financial freedom vs Bitcoin vs Government
    • All crytpocurrencies are fraud 'cause invented by Ponzi
    • Hey Mom! John Doe offered me crypto. Is he a criminal?
    • Gimme them crypto ! Do I need a bank account?
    • How do I actually use crypto?
    • Do I always need a wallet ? What's the best one ?
    • How can I make money by mining crypto?

--

Outline - Coming soon

  • Q&A
    • How much expensive are Bitcoin transactions ? Higher than 3% fee in ATM ?
    • If I buy crypto and its price sinks ... do I lose my money?
    • I want crypto no more ... can I get my money back? ... I'm Cuban ...
    • Where do people mine Bitcoin?
    • Is any special equipment needed to mine crypto?
    • Does crypto mining pollute the environment ?
  • How to launch a decentralized #cryptocurrency from #Cuba ?

--

Outline - Coming soon

  • Q&A
    • Who can see how many crypto coins I have ?
    • Can anybody confiscate my crypto ?
    • How to implement crypto in Cuba for country-level money transfer?
      • ... circumvecting the embargo ...?
    • ... what if I buy a quantum computer? ... hein !
    • Is there anybody really using this ?

No previous knowledge to understand

--

Outline - Coming soon

  • What's volatility ?
  • If Satoshi Nakamoto gives away its/their crypto ( ≈ 1M BTC) what would happen to Bitcoin price?
  • Beyond cryptocurrencies ...

Q: Cryptocurrencies is it real money ?


What is money ?

  • Medium of exchange
  • Unit of account
    • Relative value of goods and services
  • Store of value
    • Stable, save, store, and retrieve

Cryptocurrencies design: medium of exchange

Fetichism of exchange


Types of money

  • Commodity
    • gold, silver, salt, conch shells
  • Cash
    • Paper money
    • Coinage
  • Representative
    • Face value
    • Backed by commodity, not being the commodity

Types of money - Fiat

  • Value by government regulation
    • Maintains value
  • No intrinsic value
  • No use value
  • First use in China 11th century
  • 1971 - Nixon decoupled US from gold
    • Progressively adopted world-wide

Types of money - Commercial bank money

  • Demand deposit account
  • Funds can be withdrawn at any time by check or cash withdrawal
  • No prior notice to the bank or financial institution.
  • ATM & payment cards
    • Credit cards
    • Debit cards
    • Gift cards
    • Fleet cards

Digital money

  • Money represented digitally
  • 1990 - In USA all money transferred between central bank and commercial banks was electronic

Practical aspects of money

  • Central bank-issued
  • Peer-to-peer
  • Electronic
  • Universally accessible

Money flower

--

Commodity Money - Examples

--

Money in Cuba

  • Commodity money None (that I know)
  • Cash CUP only
  • Cryptocurrency : All ( no legislation )
  • Central-bank issued crypto None
  • Wholesale crypto markets None . US embargo

--

Money in Cuba

  • Central bank reserves
  • Central bank digital currency MLC
  • Vrtual currency unknown
  • Bank deposits

Q: What's a cryptocurrency all about?


Money flower explained

  • Cryptocurrencies are
    • Peer-to-peer
    • Electronic money
    • Retail vs wholesale
    • Decentralised vs regulated

What's wholesale money

  • Large sums of money lent by financial institutions in money markets
    • Large corporations
    • Financial institutions
  • Short-term financing
  • It is critical to the U.S. and global financial systems
  • U.S., new money market regulations came into force in 2016

Wholesale cryptocurrency desks

  • Voice OTC : directly with trader e.g. via Bloomberg, Skype, or Slack
  • Electronic OTC : via an API e.g. FIX , REST

What are cryptocurrencies ?

  • Digital asset for medium of exchange
  • Coin ownership records
  • Computerized database ledger
  • Strong cryptography
    • Secure transaction records
    • Control the creation of additional coins
    • Verify the transfer of coin ownership
  • Unless otherwise noted, let's talk #Bitcoin

Q: Crypto is not regulated

I trust my bank and my government

  • Should crypto be legally regulated in Cuba?
  • What key aspects would that include?
  • What institutions should lead the process?

SEC-regulated cryptocurrencies

--

J.P. Morgan Cryptocurrency Exposure Basket

Ticker Share Value Stock Weight Stock Type
MicroStrategy Inc MSTR $0.001 20% Class A
Square, Inc. SQ $0.0000001 18% Class A
Riot Blockchain, Inc RIOT - 15% Common
NVIDIA Corporation NVDA $0.001 15% Common
PayPal Holdings, Inc. PYPL $0.0001 10% Common
Advanced Micro Devices, Inc. AMD $0.01 5% Common

--

J.P. Morgan Cryptocurrency Exposure Basket

Ticker Share Value Stock Weight Stock Type
Taiwan Semiconductor Manufacturing Company Ltd TSM NT$10.00 5% American depositary shares 1x5 common shares
Intercontinental Exchange, Inc. ICE $0.01 4% Common
CME Group Inc. CME $0.01 4% Class A
Overstock.com, Inc. OSTK $0.0001 2% Common
Silvergate Capital Corp. SI $0.01 2% Class A

Initial coin offer (ICO)

  • One of many models
  • Based on Initial Public Offering
  • Regulation of ICOs depends on how an ICO is categorized.
    • Varies according to jurisdiction
  • Taxation

--

ICO - New Zealand

  • Depends on whether the token offered is categorized as
    • Debt security
    • Equity security
    • Managed investment product
    • Derivative

--

ICO - Netherlands

Netherlands, the rules applicable to a specific ICO depend on whether the token offered is considered a security or a unit in a collective investment, an assessment made on a case-by-case basis

--

Taxation

  • Israel : taxed as asset
  • Bulgaria : taxed as financial asset
  • Switzerland : taxed as foreign currency
  • Argentina & Spain : subject to income tax
  • Denmark : subject to income tax and losses are deductible
  • United Kingdom:
    • corporations pay corporate tax
    • unincorporated businesses pay income tax
    • individuals pay capital gains tax

Legal Status of Cryptocurrencies

 legal  regulated  indirect ban  hostile  no record


Central-Bank regulated crypto

Library of Congress, 2018

--

Central-Bank regulated crypto

--

Central-Bank regulated crypto - Marshall Islands


Q: How to implement crypto in Cuba for country-level money transfer?


Cryptocurrency in Cuba

  • Decentralised (community) vs centralised (government)
  • Regulatory framework for crypto
  • Legal ramifications

Poll via @cubantech


Cuban crypto - "enterprise" stocks

  • 3 votes ... 1%
  • Exactly what ICO's all about

What about ICO's in Cuba?

  • No Stock Exchanges , it's ilegal
  • ... in few words , FORGET IT !
  • Will change with forthcoming enterprise law and regulation ?
  • Socialism vs capitalism ?

--

Major Stock Exchanges

source Statista.com, Feb 2021

China's 3 in top ten, plus


Venezuela

  • Caracas Stock Exchange
    • Completely electronic since Feb 1992
    • SIBE (Sistema Integrado Bursátil Electrónico) since July, 1999
  • Ticker: BVC
  • Currency: VES

Cuban crypto as legal reserve

  • 5 votes ... 1%
  • Regulated
  • Enerprise can use it ONLY in case of not having profit
  • Accumulates 10% of enterprise profit
  • Central-bank issued cryptocurrency wholesale

Wholesale cryptocurrency in banking

  • Payment between central banks
  • Domestic payments between commercial banks
  • Cross-border payments between commercial banks
  • Needs consensus among national states

Project Aber - Saudi Arabia and UAE

UC1 - Payment between central banks


Project Aber - Saudi Arabia and UAE

UC2 - Domestic payments between commercial banks


Project Aber - Saudi Arabia and UAE

UC3 - Cross-border payments between commercial banks


Project Aber

Stated benefits DLT for wholesale CBDC's
  • Architectural infrastructure resilience
    • Decentralizaton => no single point of failure
    • Failure of single not will not lead to whole country collapse
  • Improved security
    • CDBC as a backup to RTGS
    • DLT fundamentally different technology
    • Attack vectors to core system cannot be reproduced
  • on-boarding of non-bank participant easier and lower costs
  • Solve Delivery vs Payment problem
    • Atomic swap of assets for CBDC

CDBC France

  • Call for applications to experiment CBDC for interbank settlement
  • Wholesale vs retail
  • Interbank use cases
    • Delivery vs payment
    • Payment vs payment
    • Payment vs delivery of digital assets
  • Results

Cuban crypto for intellectual property

  • 5 votes ... 1%
  • Non-fungible tokens
  • ICO's ... coming soon
  • Fidelity

Cuban legal tender cryptocurrency

  • 22 votes ... 5%
  • Stablecoins
    • USD (i.e. MLC) vs CUP
    • Exchange => CADECA
  • Solve many problems
    • Double spending in TuEnvio.cu, EnZona, etc ...
    • No paper money or coinage needed
    • DApps on top

Types of stablecoins

Fiat-Collateralized

  • Pegged to fiat
  • Regulated reserve for fintech apps: USDC and VISA
  • Used by exchanges: BUSD, BGBP

Types of stablecoins

Crypto-Collateralized

  • Backed by other cryptocurrencies
    • Over-collaterized
  • Mirror tokens => e.g. DEX

Types of stablecoins

Non-Collateralized (algorithmic)

  • No reserve
  • Working mechanism for stable price
    • ... like central banks do
  • Complicated for regulators
    • Basecoin shut down by SEC on Dec 2018

Retail CDBC


Cuban crypto for goods & services

  • 24 votes ... 5%
  • Awesome for boosting manufacturing sector
  • Power (generation , distribution , comsumption)
  • Water
  • Supply chains (tracking)

Cryptocurrency as non-national money

  • 57 votes ... 12%
  • Local development !!!
    • Recently approved in Cuba
    • Pegged to local dev fund assets
    • Transparency
  • Social cryptocurrency

Social cryptocurrency

  • Lebrija, Sevilla, Spain => Elio
  • Girona, Catalonia, Spain => Eurakos
  • Belgium => RES
  • Bilbao, Euskadi, Spain => Ekhi
  • Bristol, England => Bristol Pound
  • Bay Bucks, San Francisco, USA

Cryptocurrency case-by-case regulation

  • 58 votos ... 12%
  • Solomonic solution
  • I voted for it !!!

Cryptocurrency as personal property

  • 86 votes ... 18%
  • Regulated by current legislation
    • What would be the regulation framwework?

Cryptocurrency truly decentralized

  • 208 votes ... 48%
  • Original intent
  • Open debate
    • Pros
    • Cons
    • Really?

Q: How Bitcoin price is determined


Cryptocurrency price factors

  • Exchanges
    • Coin supply vs market demand
      • Consumer fidelity
    • Speculation
  • Mining
    • 1 BTC cost
    • Miner rewards
  • Regulations governing its sale
  • Competing cryptocurrencies
  • Its internal governance

--

Bitcoin supply

  • Total : 2,100,000,000,000,000 satoshi
  • In circulation 86% (Dec 2020)
  • Emission : on a regular basis
    • algorithmic

--

Bitcoin in numbers

How much BTC for me?

  • 21.000.000 BTC x 100.000.000
  • 2,100,000,000,000,000 satoshi / 7,900,000,000 people
  • 26,582 satoshi / 100,000,000
  • 0.00026582 BTC x 36,765.10 USD/BTC
  • $9.77 USD per person in the world
  • BTC market cap $653,000,000,000.
  • ... equivalent to just 1.7% of the world's money.
  • ... about 5.3% of the world's gold supply.
  • if Bitcoin captures 15% of the global currency market
    • Total price roughly $514,000 USD.

--

Bitcoin inflation and supply

--

Bitcoin supply and demand

  • Scarcity
  • No backdoors (e.g. no national debt bonds for CUP )
  • Well-understood chrystal-clear rules
    • No fraudulent schemes
    • No minting machines to inject coins into the system

Q: Bitcoin price by Google

Read between the lines


Q: I'll use cryptocurrencies once I understand what they doing ...


Cryptocurrency Banks Bookkeeper
Address Card number Client name
Output Cheque (rather than cash) Money In/Out
Input Cancellation Money Out
Transaction Transaction Money In/Out
Mempool Order queue OTC sheet
Block - Signed page
Blockchain Database Ledger book

Bookkeeping template


Bitcoin - Sample transaction

blocktrail.com


Banking system structure

  • Scalability
    • Users
    • Transactions / operations
  • Branching
    • Hierarchy
    • Distribution

Functional hierarchy

US bank structure


China commercial banks

Distribution


US federal banks

District hierarchy


Scale of the Bitcoin blockchain


Bitcoin peer-to-peer network


What does the Cuban cryto law says? Implications?


Cuban crypto law

Text intro
  • First paragraph
    • Money laundry
    • Terrorism financing
    • Mass destruction weapons
  • Now we are talking ... :D
  • National currency stability
    • Control inflation
    • Crypto under control

Cuban crypto law

el pollo del arroz con pollo

  • FACT : Crypto beyond Central bank control
  • Handling implies a risk
    • ... to financial stability (think of decentralisation)
    • Volatility
    • "Cyberspace" data networks
    • Decentralization is a threat

Cuban crypto law

... back to the chicken

  • What's key (i.e. must haves)
    • Minting control (none for BCC)
    • Regulation of usage
    • Official supervision
    • Punishments
    • Financing of "criminal" activities
    • (Excessive) anonymicity and neutrality

Cuban crypto law

Zoom to real targets

  • Control money and exchange market
    • Surveillance and monitoring
    • i.e. hard to think of community crypto assets
  • Regulation and control of all payment gateways in use in #Cuba
  • Respect Cuban legal tender
    • iow stable coins bound 1x1 to either CUP or MLC
  • ... but open the window to viryual assets

Cuban crypto law

Scope of the law

  • Decreto-Ley 362 2018/09/14 about financial (fintech) nstitutions
  • May be applied to any person
    • ... not explicitly mentioned in the body of thhe law
  • Central bank authorisation required
    • ... transactions performed in Cuban soil
    • ... high volumes or finance, exchange, credit policies

Cuban crypto law

What's this all about ?

  • Keep crypto inside he (legal) box
    • Crypto service providers will require a license
      • i.e. centralisation
    • License under current fintech institution terms Decreto ley 362/2018
      • quite restricted ... legal person
      • not just any legal person ...
  • Any crypto transaction has to be authorized by BCC

Cuban crypto law

Who are service providers

  • Anyone / anything that :
    • does business
    • participates in money exchange
    • transfers transactions
    • holds assets under custody
    • who owns financial instruments (fintech)
    • middlemen participating in fintech services between issuer and consumer

Q: Gimme them crypto ! Do I need a bank account?


Inform yourself

  • Understand what it is
  • Determine if you actually need it
  • Learn to use it securely
    • Avoid common pitfalls
  • What is a wallet? Why do I need it?

Full-Service wallet

  • CRITICAL: Receive and spend coins (e.g. satoshi)
    • Not necessarily both of them
    • Generate privete / public key pairs
    • Distribute public keys
    • Sign transactions
  • Scan blockchain to determine "account" balance
  • Interact with the P2P network
    • Read blockchain incrementally
    • Broadcast transactions for confirmation

Offline and Watch-Only Wallet

  • Watch-only wallet
    • Connects to P2P network
  • Offline
    • Do the rest ...

Operating modes

  • Full node
    • Download the whole blockchain and verify
    • Fooling becomes expensive after 6 confirmations
    • Only a single honest P2P node needed
  • SPV client
    • Initial sync headers only, delay transactions
    • Scalability 4.2 MB per year
  • API layer over blockchain

Signing-Only Wallets

  • Increase security
  • Private keys stored in a more secure environment
  • Separate networked wallet for P2P

Hardware wallets

  • Dedicated plug-and-play device
  • Hardened firmware and hardware
  • True random number generator
  • Standardized tes suites
    • e.g. NIST
  • Immune to viruses

--

Skywallet

--

Skywallet #MadeInCuba


Distributing-Only Wallets

  • Run in difficult-to-secure environments, such as webservers
  • Designed to distribute public keys and nothing more.
  • Two implementations
    • Pre-populated database (public keys or addresses)
    • Pubkey generator

Deterministic key creation

  • BIP-32 HD protocol
  • No repeated communication between multiple programs
  • Child accounts
  • Simplify wallet backups

Multi-currency HD derivations


Root seed entropy

Entropy Bits Words
128 12
160 15
192 18
224 21
256 24

Hardware wallet security

  • PIN protects device from being used
  • Passphrase prevents seed/wallet from being used
    • Impervious to physical attack
    • Protects Bitcoins if recovery seed (mnemonic) stolen
    • Hidden wallets
      • Gun point $5 wrench attack

Q: Do I always need a wallet ? What's the best one ?


YES!


Full desktop wallets


Mobile wallets

  • Improved UX
  • Facilitate payments in physical stores
    • NFC
    • Touch-to-pay
    • QR code scanning
  • Prone to malware

Web wallet

  • Zero-conf ubiquitous access to Bitcoins
  • Built on HTTP(S) client server architecture
  • By default stores your private keys in the server.
    • SECURITY RISK
  • Examples


Q: Can anybody confiscate my crypto ?


DoJ vs DarkSide


Official version of facts

... based on affidavit
  • FBI reviewed the Bitcoin public ledger
    • ... hence the 63.7 BTC amount
  • Sequence of Bitcoin transactions
  • FBI follows the money ...
  • ... until it reaches a said Subject Address
  • FBI claims they had the private key

Probable methods

  • Only speculations
  • FBI penetrated DarkSide infra
  • DarkSide used a service that owned the private key
  • Never imagine ECDSA was broken

Q: Who can see how many crypto coins I have?


Crypto and privacy

  • Ledger is public
    • Can anyone see?

Bitcoin - Sample transaction

blocktrail.com