TL; DR- History, background - Solved problems - How it works wallets, transactions, mining - Ethereum, Smart contracts - Profit... All confirmed transactions are included in the block ch
Trang 1Blockchain, smart contracts
introduction
©Lukasz Jarmulowicz 2016
Trang 2TL; DR
- History, background
- Solved problems
- How it works (wallets, transactions, mining)
- Ethereum, Smart contracts
- Profit
Trang 3Why bitcoin?
Trang 4A general ledger contains all the accounts for recording transactions relating to a company's assets, liabilities, owners' equity, revenue, and expenses
Purpose: To have financial statement
Trang 5Double spending Byzantine Generals Problem
More generally, the B.G.P poses the question
of how to establish trust between otherwise
unrelated parties over an untrusted network
like the Internet
The problem to be solved is:
● All loyal generals need to decide upon
the same plan of action
● A small number of traitors cannot cause
the loyal generals to adopt a bad plan
Trang 6In October 2008, “Satoshi Nakamoto” published a paper describing the bitcoin digital currency In January 2009, Nakamoto released the first bitcoin software that launched the network and the first units of the bitcoin cryptocurrency,
called bitcoins.
Trang 7Distributed ledger - Blockchain
The block chain is a shared public ledger on which the entire Bitcoin network
relies All confirmed transactions are included in the block chain This way, Bitcoin wallets can calculate their spendable balance and new transactions can be verified to be spending bitcoins that are actually owned by the spender.
Trang 8A mysterious new technology emerges, seemingly out of nowhere, but actually the result of two decades of intense research and development by nearly anonymous
Trang 10Davos 2016 - big attention
Trang 11Even in Russia
https://www.youtube.com/watch?v=BXlAH2fhyoU
Trang 12Ok, ok but how it works ?
Trang 13Wallet
Trang 14Transactions
Trang 15Transaction signing - scripts inside
Small program inside each transaction that gets
executed to decide if a transaction is valid
Trang 16Transaction chain gives balance
Trang 17Confirming transactions - mining
Trang 18Mining - blocks
Bitcoin mining is the process that puts
transactions into a block, to make sure everyone
has a consistent view of the transaction log
Mining is also the mechanism for new bitcoins to enter the system When a block is successfully mined, new bitcoins are generated in the block and paid to the miner
This mining bounty is large - currently 25 bitcoins per block (~ $14,000)
Trang 19This is blockchain
Trang 22Ethereum, smart contracts
Trang 23Ethereum was initially proposed by Vitalik Buterin in late 2013 and in 2014 he described it as
"A Next-Generation Cryptocurrency and Decentralized Application Platform"
Ethereum's live blockchain was launched on 30 July 2015 The Ethereum software project was initially developed by a Swiss company, Ethereum Switzerland GmbH (EthSuisse) and a Swiss non-profit foundation, the Ethereum Foundation
Trang 24Ethereum Virtual Machine
Programmable blockchain - Rather than give
users a set of pre-defined operations (e.g
bitcoin transactions), Ethereum allows users to
create their own operations of any complexity
they wish
Bitcoin blockchain was purely a list of
transactions, Ethereum’s basic unit is the
account The Ethereum blockchain tracks the
state of every account, and all state transitions
on the Ethereum blockchain are transfers of
value and information between accounts
Platform for many different types of decentralized blockchain applications, including but not limited to cryptocurrencies
Trang 25Smart contracts
● Contracts lives on the Ethereum blockchain
● Have own Ethereum address and balance
● Can send and receive transactions
● “Activated” when you send a transaction to it
Trang 26Smart contracts
● 4 Ethereum high level languages
○ Solidity (similar to js)
● Compile (Mix IDE)
● Deploy (you pay for
execution gas - > eth)
● Interacting with smart
contracts
● Mining - little different than bitcoin (few changes)
Trang 27Plans for smart contracts usage
Trang 28ETHEREUM AS A ‘WORLD
COMPUTER’
Computation on Ethereum is slow
and expensive
(currently similar to smartphone?!)
For computation, there are better,
cheaper and faster alternatives that
don’t require blockchains and all
that.
Ethereum can create various forms of economic alignment, shared purpose and coordination between thousands of anonymous people, at a fraction of a cost compared to
alternatives (legal frameworks)
Sharing economy (ex uber, airbnb) will be everywhere.
Trang 29Decentralized autonomous organizations (“DAO”)
● Best comparable to a digital company, but without an attached legal entity
● The Owner (kind of admin) can add (or remove) voting members to the organization
● Any member can make a proposal (by sending transaction or execute contract)
● People vote on proposals
● Allows people to participate in risks & rewards of digital ventures
Trang 32Thank you.
Questions?
©Lukasz Jarmulowicz 2016