e-government revolution - BCS - The [PDF]

Dec 5, 2016 - Claimed to be more vulnerable to attack (http://bitfury.com/content/5-white-papers-research/pos-vs-pow-1.0

0 downloads 14 Views 2MB Size

Recommend Stories


PDF The Running Revolution
Life isn't about getting and having, it's about giving and being. Kevin Kruse

[PDF] The Running Revolution
Life isn't about getting and having, it's about giving and being. Kevin Kruse

eGovernment in
You have survived, EVERY SINGLE bad day so far. Anonymous

Review PdF The Antitrust Revolution
Almost everything will work again if you unplug it for a few minutes, including you. Anne Lamott

PDF The Real Meal Revolution
If you want to go quickly, go alone. If you want to go far, go together. African proverb

PdF The Personalized Medicine Revolution
We may have all come on different ships, but we're in the same boat now. M.L.King

[PDF] The Real Meal Revolution
Ask yourself: How can you make your life more meaningful, starting today? Next

pdf The Real Meal Revolution
Ask yourself: How do you feel about growing old someday? Next

eGovernment in IS
Don’t grieve. Anything you lose comes round in another form. Rumi

PDF Self-Hypnosis Revolution
It always seems impossible until it is done. Nelson Mandela

Idea Transcript


The Blockchain e-commerce/e-government revolution The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 1

© Zühlke 2016

Vision

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 2

© Zühlke 2016

From Internet of Information to Internet of Value •

Internet of Information

– – – – •

Internet of Value

– – – – •

TCP/IP = communication protocol Revolutionised the way we exchange information 1st use case: e-mail Evolved to: Web 2.0, streaming, push notifications… Blockchain = value exchange protocol Decentralised trust: shared single source of truth Promises to fundamentally transform business, economy, politics, public services and more 1st use case: Bitcoin

Blockchain replaces “trusted 3rd party” concept

– People / organisations / systems can collaborate despite having no particular confidence in each other – No neutral central authority required – Though having some may confer performance advantages •

Why distribute trust?

– Faster (e.g. Bitcoin transactions complete in around 10 minutes vs. some days using bank clearing systems) – Cheaper (e.g. Bitcoin charges average around US $10 per transaction, vs. 5-10% bank commission) – Fewer errors / more secure (too early to tell?) The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 3

© Zühlke 2016

History

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 4

© Zühlke 2016

Bitcoin First successful (i.e. widely adopted) cryptocurrency • Launched in January 2009 following November 2008 publication on the Internet • Combines tried and tested technologies successfully to achieve synergy:

– Peer to peer networks: every node is a client as well as a server, holding identical copies of application state – Cryptography: distributed hash trees for both security and privacy – Proof of work: transaction validation is distributed to achieve consensus about which transactions to accept

• • • • •

Peak value of $1216.73 per coin reached on Mt. Gox exchange on 17 November 2013 Reputation tarnished: FBI closed Silk Road in October 2013; Mt. Gox shut early 2014 Low point: $177 in Jan 2015; $749 in mid-June 2016 Mining reward halves every ~4 years (next: July 2016) Invention ascribed to “Satoshi Nakamoto”

– Recently Australian entrepreneur Craig Wright claimed to be he – ? • •

2015/16: leading developers Garzik and Hearn bail out Bitcoin ATMs & Visa cards rolling out across USA

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 5

© Zühlke 2016

Bitcoin ATM

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 6

© Zühlke 2016

Other Cryptocurrencies and Blockchain applications •

1998: “b-money” paper published by Wei Dai, followed by “Bit Gold” by Nick Szabo



April 2011: Namecoin launch, leading to NameID launch in June 2013

– Flagship use-case: censorship-resistant control of the “.bit” TLD, independent of ICANN – Registration fees are paid in Namecoin •

October 2011: Litecoin launch

– And hundreds more cryptocurrencies since then, notably Ethereum’s Ether •

March 2012: Hypernet – “next generation Internet powered by the blockchain”

– Incorporates all the web sites and services of the wired and mobile Internet plus additional ones •

May 2014: Monegraph links Twitter accounts with digital assets to prove ownership



September 2015: Blockstack launch

– – – – –

The first implementation of a decentralised Domain Name System on top of the Bitcoin blockchain Being developed by engineers from academia and industry Released as open source Currently the largest non-financial system (by transaction volume) using the Bitcoin blockchain Applications include OpenBazaar, which provides human-friendly names for stores in the “.id” TLD

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 7

© Zühlke 2016

Theory

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 8

© Zühlke 2016

Distributed Ledger Ledgers have existed since the dawn of civilisation to record assets and transactions.

Until now, there could only be one definitive copy of each entry. Blockchain lets distributed individuals and organisations access and update a ledger without needing a central registry. The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 9

© Zühlke 2016

Underlying Model A database shared across a network with multiple sites, in which all participants have an identical copy of the ledger. All updates are reflected in all copies within minutes or less. •

Shared Ledger

– Generic term for any database / application accessed by multiple organisations; may be private or public •

Distributed Ledger

– Spread across multiple sites / institutions / countries – Typically public; may be permissioned or unpermissioned •

Permissioned

– One or more owners – Limited consensus check by trusted actors (e.g. government departments, banks) – Lower compute cost, hence higher performance •

Unpermissioned (like Bitcoin)

– – – –

No owner Global consensus check: anyone with the appropriate computing power and algorithms can enter information Censorship-resistant Global, unalterable record

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 10

© Zühlke 2016

Taxonomy of digital ledgers How many copies of the ledger? Many

One

Who can use these copies? Anyone

Distributed Ledger

The Blockchain e-commerce/e-government revolution

Traditional ledger (e.g. bank account) Owner group Who maintains

Distributed the integrity of Ledger the ledger? Any user, by untrusted consensus

9th November 2016

Permissioned, private shared ledger (e.g. Bankchain clearing & settlement network)

See note

Trusted ledger owners or actors, by validation Permissioned, public shared ledger (e.g. Ripple global financial transaction system) Unpermissioned, public shared ledger (e.g. Bitcoin) Slide 11

© Zühlke 2016

How it Works (i) Cryptographic hashes are arranged in a Merkle Tree. •

Hash (A+B)+C

Hash algorithms include

– – – – – –

SHA-256 (the early favourite, used by Bitcoin) CryptoNight Blake SHA-3 X11 scrypt (the current dominant choice, with at least 480 confirmed implementations including Litecoin)

The Blockchain e-commerce/e-government revolution

Hash A+B

Hash A

Hash B

Transaction A

Transaction B

9th November 2016

Slide 12

Hash C

Transaction C

© Zühlke 2016

What is a transaction? A transaction is a representation of an atomic change to the system state •

Transactions can be represented as directed acyclic graphs with four kinds of nodes

– – – –

Input nodes Output nodes Input/output nodes Transformation nodes



Explore the block chains for examples



Bitcoin Animation: http://dailyblockchain.github.io/



Transactions have a time ordering

– Determined by the consensus mechanism •

Transactions are organised into blocks

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 13

© Zühlke 2016

How it Works (ii) A distributed ledger consists of a series of blocks, each up to some maximum size. • Each block is a list of transactions (e.g. payments, grants of permission or ownership) • Each block is cryptographically linked to its predecessor in a continuous chain • Each full participant in the system has a replica of every transaction since the beginning • Each transaction on the chain is validated by all nodes – If the majority agrees that a candidate transaction is true, a new block is created and added to the chain



As the chain builds up, it becomes effectively impossible to rewrite older blocks

Genesis Block Header Hash of Previous Header Merkle Root

Block 2 Header Hash of Previous Header Merkle Root

Block 3 Header Hash of Previous Header Merkle Root

Block 4 Header Hash of Previous Header Merkle Root

Block 1 Transactions

Block 2 Transactions

Block 3 Transactions

Block 4 Transactions

Transaction F Transaction G Transaction H

Transaction I

Transaction A Transaction B Transaction C The Blockchain e-commerce/e-government revolution

Transaction D Transaction E

9th November 2016

Slide 14

© Zühlke 2016

How it Works (iii) The consensus mechanism ensures that only one possible continuation of the chain becomes definitive.

Genesis Block

Candidate Orphan Block Block

Candidate Orphan Block Block

Candidate Block 3 Block

Candidate Orphan Block Block

Candidate Orphan Block Block

Candidate Block 7 Block

Candidate Block 2 Block

Candidate Block 4 Block

The Blockchain e-commerce/e-government revolution

Candidate Block 5 Block

9th November 2016

Candidate Block 6 Block

Candidate Orphan Block Block

Candidate Orphan Block Block

Candidate Orphan Block Block

Slide 15

© Zühlke 2016

Consensus mechanisms •

In a nutshell

– In PoW systems, you trust the chain with the greatest amount of computing effort invested in it – In PoS systems, you trust the chain with the greatest amount of money (collateral) staked on it •

Proof-of-Work (block mining)

– Intrinsic part of the Bitcoin protocol – Highly compute-intensive – deliberately so to avoid any one party dominating the consensus process – In practice, today there are a handful of bitcoin mining companies in China that do dominate the process – Fair – a miner with fraction p of total compute resources has probability p of creating any given candidate block and winning the bitcoin reward – Claimed to be less vulnerable to attacks than alternatives •

Proof-of-Stake (block minting)

– Probability of creating a block is proportional to the user’s ownership stake in the blockchain system – Stake is measured in terms of the proportion of the total cryptocurrency supply owned by the user – This can erode over time as more cryptocurrency is released or created – Rationale: users who own the most cryptocurrency have the greatest interest in maintaining a secure network – Claimed to be more vulnerable to attack (http://bitfury.com/content/5-white-papers-research/pos-vs-pow-1.0.2.pdf) – Ethereum’s planned variant, Casper, uses consensus-by-bet: malicious validators lose part of their stake (https://blog.ethereum.org/2015/12/28/understanding-serenity-part-2-casper/)

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 16

© Zühlke 2016

Derivatives and Add-Ons Almost anything that currently exists on paper or in a database could be represented by a distributed ledger. To gain the full benefit of that, distributed Ledgers need •

E-Wallets



Digital Signatures



Cryptographic reconciliation of replica copies



Rules and Smart Contracts – code that executes the contract directly



Tooling: integrated development environments, testing frameworks, DevOps (ALM etc)

Optional Extras •

Granular access control, transparency and privacy (using multiple keys and signatures)



Side Chains – networks isolated from the block chain until confirmed on the block chain

– Fewer manual operations – Data subjects can control who gets access to their data (e.g. onename.io) – Applications include regulatory compliance, product traceability, service management, fake/fraud detection The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 17

© Zühlke 2016

Cost Cryptography is energy intensive: •

Transactions are aggregated in blocks that are attached to an existing chain of blocks using a cryptographic signature



Anyone can add a block of transactions if they can solve a new cryptographic “puzzle”

– – – –

In the Bitcoin protocol, fraudsters can’t certify their own transactions thanks to a compute-intensive algorithm Certifying a transaction therefore has a cost and is rewarded in bitcoin (increasingly raised as transaction fee) Winning bitcoin in this way is known as “mining” Rewards diminish over time, so the money supply is strictly limited



In the case of unpermissioned distributed ledgers, no other authorisation is required



The UK Government Chief Scientific Adviser’s report on distributed ledger technology quotes an estimate that the operation of the Bitcoin system requires electrical power equivalent to the entire generating capacity of the Republic of Ireland

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 18

© Zühlke 2016

Some Unique Properties of Cryptocurrencies •

Everything has a unique address

– – – –

Every user (users may have multiple addresses in their e-wallets) Every transaction Every block The smallest subdivision of every coin – Bitcoins are divided into 100 cents, each of which is 1 million satoshi – bits (0.001 BTC) and millibits are also used – Ethers are progressively divided by 1000 as follows – finney, szabo, Gwei, Mwei, Kwei, wei (10-18 ether) – Each address is a very long hex string generated using the hashing algorithm



Transactions and even particles of “coin dust” are programmable

– Thus they can represent any real or virtual asset – other currencies, land, intellectual property, precious items •

Transactions have a precise and usually limited cost

– But if they invoke other transactions, those have to be financed too – to the Nth degree •

Transactions are visible to all, but can be anonymised

– Zerocoin – anonymises transactions via temporary cryptographic value-tokens – As a Bitcoin extension, could support money laundering – Implemented in cryptocurrencies Moneta, Zerocash (now Zcash) and CredaCash The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 19

© Zühlke 2016

Example Applications

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 20

© Zühlke 2016

Colu Bitcoin “dyeing” to represent assets of any kind, especially local currencies

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 21

© Zühlke 2016

Everledger 1 million diamonds registered on the block chain to provide indisputable evidence of provenance and ownership – moving on to do the same for fine art The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 22

© Zühlke 2016

R3 and Barclays Smart Contract Templates: https://vimeo.com/168844103

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 23

© Zühlke 2016

Fully Distributed Real Estate Ledger Switzerland, based on Ethereum blockchain and toolset •

Zühlke project, partnering with Validity Labs

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 24

© Zühlke 2016

Technologies

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 25

© Zühlke 2016

Vendors and Organisations As in the early days of dotcom, there are thousands of start-ups and open source projects. These are just a small selection. •

Chain: https://chain.com – provides blockchain networks to partners such as NASDAQ



Blockstream: https://blockstream.com – specialise in developing sidechain innovations



HyperLedger: https://www.hyperledger.org – developing distributed ledger standards



OpenLedger: https://www.openledger.info – exchange platform; many cryptocurrencies



Guardtime: https://guardtime.com/ksi-technology – blockchain-based cybersecurity



Ethereal Homestead: https://www.ethereum.org

– Implements smart contracts: computer can verify or auto-enforce any type of business / legal agreement •

Eris: https://erisindustries.com – smart contract application platform based on Ethereum



BTL: http://btl.co/ – building a next generation of business applications



Billon: http://billon.cash/ – a digital cash solution for government fiat currencies

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 26

© Zühlke 2016

Possible Impacts

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 27

© Zühlke 2016

Challenges and Risks We’re at the very early stages of building the protocol layers (remember the explosion of competing web services protocols 10-15 years ago) • Security

– A cyber attack would have to modify multiple shared copies of the database at once, making exploits more difficult – However, anyone who can find a way to legitimately update one copy of the ledger will be able to tamper with all copies simultaneously – see non-reentrancy exploit that drained up to $60M worth of Ether from the DAO – Robust authentication and authorisation protocols are as vital to building trusted relationships as ever – Most common fraud attempt on Bitcoin’s blockchain: Double Spend – simultaneously submitting payments to different replicas of the blockchain

• •

Education Scalability

– Storage limits (Bitcoin’s blockchain has grown exponentially to over 72GB as of mid-June 2016) – Block size limits (Bitcoin is artificially restricted to 1MB, an average of under 1000 transactions per block) – Transaction frequency limits (Bitcoin peaks at 2-3 tps and there is frequently a large backlog) • •

Privacy Business models

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 28

© Zühlke 2016

Banking and Finance Digital currencies (cryptocurrencies) such as Bitcoin combine the censorship resistance of physical cash with the instantaneous remote value transfer of financial networks. •

Ideal currency for criminal networks (viz. Silk Road, a digital black market, now closed)

– But not as anonymous or uncontrollable as people initially feared •

Forrester (April 2016) forecasts that mainstream adoption by banks is 10 years away (http://www.computerweekly.com/news/450294191/Mainstream-adoption-of-Blockchain-by-banks-is-10-years-away)

– Recommends treating blockchain as a “lab project” – Predicts phased evolution of the technology: irrational exuberance, rational assessment, practical deployment – Significant “network effect” – a critical mass of industry players need to participate in order to gain benefits •

In 2016, the central securities depository of the Russian Federation (NSD) announced a pilot project that will provide bond owners with a prototype electronic voting system (http://www.coindesk.com/russia-national-settlement-depository-blockchain-voting/)

• •

Swiss bank Vontobel’s tracker certificate lets investors bet on the BTC/$ exchange rate Many institutions researching and running pilot projects, e.g. reconciliation (a better FPS)

– Santander InnoVentures published The Fintech 2.0 Paper: Rebooting Financial Services in mid-2015 with Oliver Wyman and Anthemis (http://santanderinnoventures.com/wp-content/uploads/2015/06/The-Fintech-2-0-Paper.pdf) The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 29

© Zühlke 2016

Retail Insurance Concept: https://vimeo.com/164542378

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 30

© Zühlke 2016

Plant A linked Internet of Things, with a block chain as the framework to facilitate transaction processing and co-ordination among interacting devices •

Example: a farm tractor

– Can authorise access to multiple farmers in an area, enabling a pay-per-use model – Can discover and pay for climate data – Can notify its manufacturer about necessary maintenance or repairs •

Example: industrial equipment

– Can order new parts for itself with the guarantee that the device is genuine and has a maintenance contract – Can support new ways of financing such equipment – Can support new marketplaces based on the equipment’s performance •

Example: hire-purchase agreement (Visa / DocuSign pilot)

– Fail to keep up the payments on your car, and the engine won’t start until you make up the missed payment

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 31

© Zühlke 2016

Commerce •

Black markets

– Silk Road keeps springing back up – Plenty of competitors – Organised crime and terrorist networks can use exchange platforms to transfer cash almost untraceably •

NASDAQ Linq introducing dealing in as-yet unlisted shares using blockchain in 2016



Commodity exchanges – Thanks to far lower overheads, trading premiums on small quantities can be minimised – For example, DigixDAO trades gold digitally on the Ethereum platform: https://dgx.io/



Digital asset exchanges – E.g. OpenLedger launched trading in DGX tokens (see above) on 28 April 2016 – We will probably see the emergence of completely novel digital assets in the near future, based on e.g. digital rights to original works, laying off risks, carbon credits etc.



Peer-to-peer betting / gaming with payout guaranteed by smart contracts – See exercise, later on



Ticket sale and exchange

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 32

© Zühlke 2016

Novel applications •

Secure key and certificate distribution (with escrow arrangements via smart contracts)



Identity management (e.g. single sign-on for public web/mobile apps)



Notaries are likely to go out of business

– Anyone can record an agreement between any number of parties via the international Bitnation Public Notary •

Decentralised crowd-funding

– Swarm – www.swarmbot.io – Koinify – recently closed down •

Next-generation social networks

– Twister – http://twister.net.co – Synereo – http://www.synereo.com/ •

LaZooz – decentralized real-time social ride sharing: http://www.lazooz.net/



Rent cloud computing resources by the microsecond instead of by the hour



One philosophical problem for any non-financial application – The underlying blockchain technology will always depend on its own cryptocurrency (e.g. bitcoin, ether) as a means of regulating supply and demand of the distributed computing resources

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 33

© Zühlke 2016

Government UK is one of the ‘Digital5’ group of nations, which also includes Estonia, Israel, New Zealand and South Korea. Governments see opportunities in at least the following areas: • Collecting taxes (Estonia’s e-Tax system is based on Keyless Signature Infrastructure) •

Delivering benefits (including tracing and transparency of how international aid is spent)



Electronic voting



Issuing passports and other official documents (e.g. licences)



Registering ownership of land



Assuring the supply chain of goods



Authenticating and improving the delivery of public services (e.g. health)



Sharing records securely according to published and precise rules



Ensuring the integrity of government records



Allowing individuals to control and check who has access to their personal information

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 34

© Zühlke 2016

Trust Landscape •

Security and privacy of data held in distributed ledgers is a vast field of research



KSI is probably the only widely trusted alternative to PKI available today

– – – – •

Quantum proof Easy revocation Sub-second verification No need for a certification authority

Various regulatory bodies in the music industry have started testing models that use block chain technology for royalty collection and management of copyrights around the world

– E.g. MUSE being used as a peer-to-peer royalty payment platform by PeerTracks, a music streaming service

(http://www.forbes.com/sites/rogeraitken/2016/01/23/muse-leveraging-blockchain-technology-to-revolutionize-music-industry)

– Considered “third generation” blockchain with faster transaction speeds, confirmations and scalability – Uses smart contracts to assert copyright and ensure that artists receive 95% of sales income •

The Chinese authorities are reported to be making efforts to establish their own digital currency (presumably with regulatory back doors)

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 35

© Zühlke 2016

Organisational and personal development •

We all need to understand the technology at some basic level

– – – –

Opportunities and threats Competitive landscape Leading toolkits Where to find the latest information



Part of the business innovation portfolio



Formulate a strategy – review and update it regularly as the field is developing rapidly

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 36

© Zühlke 2016

Smart Contracts

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 37

© Zühlke 2016

Smart Contract Basics •

Contracts can be written in many languages and compiled down to a common bytecode



Each contract has

– A unique address – Allocated memory, called a storage file, which persists across invocations and can potentially be very large – An account balance based on the history of transactions in which it has been involved •

Contracts “live” on the blockchain

– Their bytecode is stored there (source code usually in a git repository) – The contract’s code is executed by the distributed virtual machine – i.e. blockchain miners – The contract’s state (“storage file”) also resides in the blockchain virtual machine •

A contract’s code is executed whenever it receives a message (transaction)

– – – –

Either from a user or from another contract Each contract can have multiple entry points (just like methods of a class) While executing, a contract may read and/or update its storage, and send transactions to other parties Include a method to cancel the contract and collect its remaining account balance, i.e. a termination clause

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 38

© Zühlke 2016

Exercise (i) Paper, Scissors, Stone game played for a cryptocurrency stake • Individually or in teams, point a browser at https://ethereum.github.io/browser-solidity •

Create a new document (top left button) and write a ScissorsPaperStoneGame contract



Two functions are needed:

– addPlayer(uint8 move) – provided the player limit has not been exceeded, accept the player’s stake of 1000 wei and store their choice of paper, scissors or stone (for simplicity, use values 1, 2 or 3 respectively) – NB in a real application, you would conceal each player’s bid (see universally composable commitments) – revealPlays() – determine who has won (if anyone) and pay out the stakes accordingly •

In case you need help with the rules or your strategy, try reading this:

http://telegraph.co.uk/men/thinking-man/11051704/How-to-always-win-at-rock-paper-scissors.html •

Hints:

– – – – –

Given that the stake is a fixed amount, you don’t strictly need to track the contract’s account balance You will need a storage file comprising the the current number of players and the data about each player The constructor function can be used to initialize the contents of the storage file If you reject a transaction, you must return the value attached to it to its sender, otherwise the money is lost The simplest way to determine the winner is a static 3x3 matrix

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 39

© Zühlke 2016

Exercise (ii) •

When you’ve written the code and eliminated all error messages

– Select the Transaction tab in the right-hand pane (paper plane icon) – Set the transaction origin (sender) – Click the red CREATE button on the right-hand pane

– If your constructor takes arguments, there will be text fields to fill in first to supply their values

– This will calculate the cost in “gas” of deploying and executing the function – Each function within the transaction can be invoked similarly – – – –

Fill in the global message parameters at the top of the screen: sender address and value (1000 wei) Fill in any function arguments Click the function name You cannot see messages sent by the contract, so use public variables to mirror transaction state, display debug messages etc



Show a game being executed and paying out either party (or both if it’s a draw)



Try to break the game

– – – – •

Stake the wrong amount Use the same origin address for both players Add a third player Play the game again: what happens?

Model answer: https://ethereum.github.io/browser-solidity/#gist=40042ea67d7ea0693c6ce0c0ca07b7f7

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 40

© Zühlke 2016

Five Contract Types Like any well architected application, a distributed app (DApp) is decomposed into layers – but note, there is no presentation layer •

Database Contracts

– Check permissions – Store data on behalf of clients •

Controller Contracts

– Operate on the database contracts – Can add sophisticated optimisations, such as batching and distributed transactions •

Contract Managing Contracts (CMCs)

– Track components of the system and handle communication between them to aid modularity •

Application Logic Contracts (ALCs)

– Domain- and solution-specific business logic – Typically a client of multiple controller and application logic contracts •

Utility Contracts

– Library functions, usually without dependencies or permission restrictions The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 41

© Zühlke 2016

More Information

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 42

© Zühlke 2016

Web Sites A small selection •

Blockchain Hub: http://blockchainhub.net/



Coindesk news: http://www.coindesk.com/



Coin telegraph news: http://cointelegraph.com/



Bitcoin and Cryptocurrency news: https://www.cryptocoinsnews.com/



R3 Weekend Read (monthly): https://www.r3cev.com/blog/?category=Weekend+Read



Social gateway to cryptocurrencies: https://www.cryptocompare.com/



Blockchain info: https://blockchain.info/

– Graphical tools to help understand what’s going on with the Bitcoin blockchain •

Ethereum statistics: https://ethstats.net/



Summary statistics and charts for many cryptocurrencies: https://bitinfocharts.com/



Smart Contracts the Ethereum way: https://solidity.readthedocs.io and https://docs.erisindustries.com/tutorials/solidity/

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 43

© Zühlke 2016

Books •

Andreas Antonopoulos Mastering Bitcoin: Unlocking Digital Cryptocurrencies (Dec 2014)



Melanie Swan Blockchain: Blueprint for a New Economy (February 2015)



Tim Swanson Great Chain of Numbers: A Guide to Smart Contracts, Smart Property and Trustless Asset Management (May 2014) – ignore the technical, use to find applications



Paul Vigna, Michael J. Casey Cryptocurrency: How Bitcoin and Digital Money are Challenging the Global Economic Order (January 2016)



Will Martin Anonymous Cryptocurrencies: The rise of bitcoin alternatives that offer true anonymity (June 2014)



Alex Gorale How to Program a Block Chain Explorer with Python and Bitcoin



BBVA Innovation Centre Innovation Edge issue 9: Cryptocurrencies (July 2015)



BBVA Innovation Centre Fintech Series: Blockchain Technology (2015)



William Mougayar The Business Blockchain (May 2016)

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 44

© Zühlke 2016

Articles and Reports •

UK Government Office for Science Distributed Ledger Technology: beyond block chain



Wikipedia Block chain (database) (https://en.wikipedia.org/wiki/Block_chain_(database))



Goldman Sachs The Blockchain could disrupt everything (video)



Roland Berger Could the Blockchain replace all trusted third parties? (January 2016)

(https://www.gov.uk/government/uploads/system/uploads/attachment_data/file/492972/gs-16-1-distributed-ledgertechnology.pdf)

(http://www.goldmansachs.com/our-thinking/pages/what-if-i-told-you-full/index.html?videoId=141040) (http://www.rolandberger.be/media/pdf/Roland_Berger_Blockchain_20160122.pdf)



Vimi Grewal-Carr, Stephen Marshall, Deloitte Blockchain: Enigma, Paradox, Opportunity (early 2016) (http://www2.deloitte.com/uk/en/pages/innovation/articles/blockchain.html)



William Mougayar The Global Landscape of Blockchain Companies in Financial Services (Oct 2015) (http://startupmanagement.org/2015/10/22/the-global-landscape-of-blockchain-companies-in-financial-services)



Mike Hearn The resolution of the Bitcoin experiment (January 2016) (https://medium.com/@octskyward/the-resolution-of-the-bitcoin-experiment-dabb30201f7)

– claims that Bitcoin’s blockchain has ended up essentially worthless, and explains why The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 45

© Zühlke 2016

Events Lots of conferences take place worldwide. Upcoming ones in or close to London include • ChainConf London (5-6 Dec 2016) (http://skillsmatter.com/conferences) •

Block Chain Con London (Jan 2017) (https://blockchainlondon.com)



European Blockchain Congress (April 2017, London) (http://europeanblockchain.com)



Blockchain Dublin (June 2017?) (http://www.blockchaindublin.com/)



Blockchain Amsterdam (June 2017?) (http://www.blockchainamsterdam.com/)



Euromoney Blockchain Forum (June 2017?, London)



Blockchain and Distributed Ledgers in Financial Institutions (London, dates tbc)

(http://www.euromoneyseminars.com/details/8968/the-euromoney-blockchain-forum/details.html) (http://www.marcusevans-conferences-paneuropean.com/marcusevans-conferences-event-details.asp?EventID=22821)



London Fintech Week (July 2017) (www.fintechweek.com)



Marketforce – the Blockchain Summit (Oct 2017, London) (http://www.marketforce.eu.com/events/financial-services/blockchain-summit)

The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 46

© Zühlke 2016

Comments and Questions The Blockchain e-commerce/e-government revolution

9th November 2016

Slide 47

© Zühlke 2016

Smile Life

When life gives you a hundred reasons to cry, show life that you have a thousand reasons to smile

Get in touch

© Copyright 2015 - 2024 PDFFOX.COM - All rights reserved.