Bitcoin Blockchain technology. Mihail Nikulin, Co-founder & CTO, Lykke

Similar documents
Time, Bitcoin, and the Lightning Network

Lightning or How to Pay Quickly with Bitcoin. Karim Baghery

Bitcoin Lightening Network: a Distributed Network for Scalability of Bitcoin. Shahla Atapoor

L3. Blockchains and Cryptocurrencies

White Paper. Bizanc Blockchain

Accounting for crypto assets mining and validation issues

Level 2, HTLC, SegWit

Towards Bitcoin Payment Networks

Terms and Conditions of Lykke FX Colored Coins Issuance

DEV X. Deviant Decentralized Exchange. A hybrid exchange leveraging Smartcoins on the Bitshares (BTS) blockchain.

Atomic Swaptions: Cryptocurrency Derivatives

In the future, many kinds of cryptocurrencies will be born, and service competition will increase.

Introduction to Blockchains. John Kelsey, NIST

Surface Web/Deep Web/Dark Web

How much does it cost to create and maintain an account with Dukascopy Payments? Account opening is free of charge.

Bitcoin. CS 161: Computer Security Prof. Raluca Ada Poipa. April 24, 2018

Universal Payment Channels

Mimblewimble: Private, Massively-Prunable Blockchains

Bitcoin. Based on Bitcoin Tutorial presentation by Joseph Bonneau, Princeton University. Bonneau slides marked JB

A block chain based decentralized exchange

Cisco Live /11/2016

Bitcoin. CS 161: Computer Security Prof. Raluca Ada Popa. April 11, 2019

an introduction to Blockchain Technology

Technical Line. A holder s accounting for cryptocurrencies. What you need to know. Overview

Block This Way: Securing Identities using Blockchain

Lecture 23 Cryptocurrency. Stephen Checkoway University of Illinois at Chicago CS 487 Fall 2017 Slides from Miller s ECE 422

DEx.top Technical White Paper (V1.0)

LendLedger Technical Paper

BITCOINS and CRYPTOCURRENCIES How It Works. Principal Consultant CISA, CISSP

WHITE PAPER. Smart Investments Into Crypto Technologies and Blockchain

Crypto-Philanthropy: Virtual Currency and the Future of Charitable Giving

whitepaper Abstract Introduction Features Special Functionality Roles in DiQi network Application / Use cases Conclusion

Color Pay : Next Paradigm for Instant Payment

Blockchain Payments for Everyone

Blockchains. How crypto-currencies work. Luke Anderson. 19th May University Of Sydney.

Bitcoin and why it will change the world

Working with Blockchain at Proof of Concept Stage. Ildefonso Olmedo Rebecca Marvell

Proof of work and Proof of stake explanation

Edit on Github. Assets. Assets

Alethena. 14 May Abstract

Bitcoins and Blockchains

IOV: a Blockchain Communication System

Bitcoin, Blockchain Technology, Block Chain Ecosystem : What You Need to Know?

Anonymity of E-Cash Protocols. Erman Ayday

CONTENTS DISCLAIMER... 3 EXECUTIVE SUMMARY... 4 INTRO... 4 ICECHAIN... 5 ICE CHAIN TECH... 5 ICE CHAIN POSITIONING... 6 SHARDING... 7 SCALABILITY...

Blockchain and Smart Contracts: Relevance of Security Facts and Myths to Industrial Control

Abstract: grows, the more secure it becomes, the faster it operates, without any scaling issues no matter how many transactions occur.

CSCI 1800 Cybersecurity and International Relations. Bitcoins and Blockchains John E. Savage

ETPS. Company Profile & Overview

Blockchain, data protection, and the GDPR

Panxora Exchange. User s Manual C O N T A C T S U P P O R P A N X O R A. I O

BitShares is. a decentralized network. All About BitShares in Infographics

November 2018 Abstract

Blockchain Technology for Next Generation ICT

Whitepaper EXOSIS.ORG

CRACKING - Investigating one of the biggest - digital heists in history from the outside KIM NILSSON

An introduction. Dr Ken Boness

Instructor: Daniele Venturi (Slides from a series of lectures by Stefan Dziembowski)

XNODEFUND WHITEPAPER xnodefund xnodefund

Bitcoin Suisse AG. Use Case: International Settlements with Crypto- Currencies

FinTech Revolution What s ahead? Belvedere Capital Advisor

The Blockchain Trevor Hyde

Tezos Contribution and XTZ Allocation Terms and Explanatory Notes. 1. Principles

WIZBL WHITE PAPER 5th Generation of Blockchain Technology. v 0.8 content subject to change 2018 WIZBL. All rights reserved.

HOW TO PARTICIPATE IN THE MODL TOKEN SALE. Step-by-step guide

The BitShares Blockchain

TERMS AND CONDITIONS Contribution to PRIVATE PLACEMENT and MICROSHARE token allocation.

01. A fund with a unique platform and technological solution - simple and convenient solution to buy, sell, and manage crypto currencies. 02.

EVERYTHING YOU NEED TO KNOW ABOUT DIGITAL LEDGER TECHNOLOGY, THE BLOCKCHAIN AND CRYPTOCURRENCIESÓ (Part I June 2018)

Assurance in a blockchain world How you can prepare to address the risks

Cornell Blockchain. Sixth Meeting Education Series V: Exchanges, Wallets, and ICO

Blockchain Demystified

CARDHOLDER GUIDE WORLD CURRENCY CARD MASTERCARD. Let s get forex done

Blockchain 2.0: Smart Contracts

Crypto-assets and crypto-businesses a regulatory and legal issues

CHALLENGES AND RISKS OF BLOCKCHAIN TECHNOLOGY

International Journal of Computer Engineering and Applications, Volume XII, Special Issue, April- ICITDA 18,

A FINANCIAL ENGINE [ A DECENTRALIZED FINANCIAL SYSTEM ]

Computer Security. 13. Blockchain & Bitcoin. Paul Krzyzanowski. Rutgers University. Spring 2018

Genesis Crypto Blockchain Investment Bank. A Blockchain Platform for Cryptocurrency-based Financial Services

Blockchain and the Maritime Industry

Cryptocurrency and Blockchain Technology

Bitcoin Currency & Blockchain Technology

HOW TO CHARGE LIGHTNING

Table of contents. 2

Uniting Capital with Purpose. Unlock Blockchain

Metro: A peer-to-peer cross-chain digital asset exchange

Compact Multi-Signatures for Smaller Blockchains

Blockchain Developer TERM 1: FUNDAMENTALS. Blockchain Fundamentals. Project 1: Create Your Identity on Bitcoin Core. Become a blockchain developer

Transferring Data through an Ethereum Blockchain using Transactions

predictini Next-Generation Market Intelligence and Prediction Platform for Crypto Trading WHITEPAPER

Blockchain Investment Platform

The Blockchain Identity

FLASH TOKEN WHITE PAPER

Boon Coin Terms and Conditions

Your Own Crypto Bank

How Blockchain Technology Changes Marketing

The Blockchain Identity

PrivacyStake Whitepaper

The Blockchain Identity

Transcription:

Bitcoin Blockchain technology Mihail Nikulin, Co-founder & CTO, Lykke

What is money?

Copy protection consensus

Consensus based on top of proof of existence

Mining is burning electricity

Colored Coins BTC/ETH/Some tokens Colored coins/some tokens Issuer undefined Companies, Individuals Issuance limit limited Unlimited Price Defined by market Linked to the real asset Market risk Yes No Counterparty risk No (???) Issuer Protocol risk Miners/Smartcontract Counterparties/Smartcontract

Any centralized service is to be hacked

MultiSig wallet is needed

MultiSig wallets Multisignature wallets are used to deposit client s coins. The exchange does not take possession of the traded coins. 2-of-2 Multisig address requires two signature to spend coins from it: Client s signature Exchange signature Client 2-of -2 Multisig wallet Client + Exchange Exchange

MultiSig wallets advantages MultiSig wallet provides the following advantages: Coins flow control Exchange signature required for each transaction Client identification (KYC) registered clients only are allowed to trade Coins safety even if exchange is compromised clients will not lose their coins

MultiSig wallets refunds To guarantee funds recovery from the MultiSig wallet Exchange provides offchain «refund transaction» Client 2-of -2 Multisig wallet Client + Exchange Exchange Refund Offchain transaction nlocktime=31d Refund transaction can be broadcasted after 31 days

Bitcoin Scaling Issues 1 Mb blocks: 7 transactions per second (250 bytes/transaction) 220 mln transaction per year(!) Not enough for city, let alone the world

Bitcoin Scaling Issues 1 Billion transaction per day requires: 1.6 GB blocks 87 Tb/Year Centralization (!) 1 Billion people doing 2 transaction per day: 24 GB block 3.5 Tb/Day 1.27 Pb/Year Bigger block = Centralization Very few full nodes Very few miners De facto inability to validate blockchain

Bitcoin Scaling With Offchain Payment Channels Alice 1 000 USD 2-of -2 Multisig wallet Client + Bob Bob 0. Output Refund Offchain transaction nlocktime=31d

Bitcoin Scaling With Offchain Payment Channels 100 USD transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction nlocktime=31d Offchain send 0. Output: 900 USD 100 USD 1. Output: 100 USD

Bitcoin Scaling With Offchain Payment Channels 100 USD transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Bob Exchange Refund Offchain transaction nlocktime=31d Offchain send 0. Output: 900 USD 100 USD 1. Output: 100 USD

Bitcoin Scaling With Offchain Payment Channels more 100 USD transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction nlocktime=31d Offchain send 100 USD Offchain send 800 USD 200 USD 200 USD

Bitcoin Scaling With Offchain Payment Channels and more 100 USD transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction nlocktime=31d Offchain send 200 USD Offchain send 100 USD Offchain send 700 USD 300 USD 300 USD

Bitcoin Scaling With Offchain Payment Channels 1 000 USD Alice 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction nlocktime=31d Offchain send 700 USD 300 USD 300 USD

Closing Payment Channel Alice 1 000 USD 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction Offchain send nlocktime=31d 300 000 USD Reverse nlocktime=30d send 50 USD nlocktime=29d Onchain send no locktime 700 USD 300 USD

Bidirectional Payment Channel Alice 1 000 USD 1 000 USD 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction nlocktime=31d

Bidirectional Payment Channel 300 USD bidirectional transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Exchange Bob Refund Offchain transaction nlocktime=31d Offchain send 700 USD nlocktime=30d 300 USD

Bidirectional Payment Channel 50 USD reverse transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Exchange Bob Refund Offchain transaction nlocktime=31d Offchain send nlocktime=30d Reverse send 750 USD nlocktime=29d 250 USD

Bidirectional Payment Channel 10 USD reverse transfer 1 000 USD Alice 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction nlocktime=31d Offchain send nlocktime=30d Reverse send nlocktime=29d Reverse send 760 USD nlocktime=29d 240 USD

Closing Bidirectional Payment Channel Alice 1 000 USD 2-of -2 Multisig wallet Client + Bob Bob Refund Offchain transaction Offchain send nlocktime=31d 300 000 USD Reverse nlocktime=30d send 50 USD nlocktime=29d Onchain send no locktime 760 USD 240 USD

Infinite Bidirectional Payment Channel OP_CHECKSECVENCEVERIFY (BIP-0112) relative lock-time is available on Bitcoin blockchain from May 2016 Alice 1 000 USD 500 USD 2-of -2 Multisig wallet 500 USD Client + Bob Bob Revocable refund provided by Bob 0. Output: 500 USD to Bob sig 1. Output: 500 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day

Infinite Bidirectional Payment Channel 50 USD transfer Alice 1 000 USD 500 USD 2-of -2 Multisig wallet 500 USD Client + Bob Bob Revocable refund provided by Bob 0. Output: 450 USD to Bob sig 1. Output: 550 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day

Infinite Bidirectional Payment Channel 100 USD transfer Alice 1 000 USD 500 USD 2-of -2 Multisig wallet 500 USD Client + Bob Bob Revoced refund provided by Bob 0. Output: 450 USD to Bob sig 1. Output: 550 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day Revocable refund provided by Bob 0. Output: 550 USD to Bob sig 1. Output: 450 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day How Alice can assure Bob that previous transaction will never be broadcasted?

Penalty Channel Transaction 100 USD transfer Alice 1 000 USD 500 USD 2-of -2 Multisig wallet 500 USD Client + Bob Bob Revoked refund has been broadcasted 0. Output: 450 USD to Bob sig 1000 USD 1. Output: 550 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day Revocable refund provided by Bob 0. Output: 550 USD to Bob sig 1. Output: 450 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day Penalty onchain transaction Bob has Alice key

Mirrored Refunds for Payment Channel Alice 1 000 USD 500 USD 2-of -2 Multisig wallet 500 USD Client + Bob Bob Revocable refund provided by Bob 0. Output: 550 USD to Bob sig 1. Output: 450 USD to Alice +Bob multisig OR Alice sig OP_CHECKSECVENCEVERIFY 1 day How can Bob close the channel?

Mirrored Refunds for Payment Channel Trader 1 000 USD 500 USD 2-of -2 Multisig wallet 500 USD Client + Bob Hub Revocable refund provided by Hub 0. Output: 500 USD to Hub sig 1. Output: 500 USD to Trader +Hub multisig OR Trader sig OP_CHECKSECVENCEVERIFY 1 day Revocable refund provided by Trader 0. Output: 500 USD to Trader sig 1. Output: 500 USD to Trader+Hub multisig OR Hub sig OP_CHECKSECVENCEVERIFY 1 day

3 Party Channels 100 USD 100 USD Bob Alice Carol

Offchain payments 14 / 25 Alice 1 000 USD 100 000 USD 100 000 USD 10 USD Lykke Lykke Bob 300 USD Alice 700 USD 100 300 USD 99 700 USD 310 USD Lykke Lykke Bob

3 Party Channels Trust Issue Hm 100 USD I think I ll keep this 100 USD Bob Alice Carol

3 Party Channels Hash Locks Bob & H 100 USD to Bob & H Bob Alice H Carol 1. Generating random secret R 2. Public H=Hash(R) Hash-Locked contracts: 1. Using one-way hash functions Alice can prove that she sent funds to Carol off-chain 2. Alice pays to Contract (output: Bob & H) Bob needs to know R to spend the funds.

3 Party Channels Hash Locks Bob & H 100 USD to Bob & H Bob 100 USD to Carol & H Carol& H Alice Carol 1. Generating random secret R 2. Public H=Hash(R)

3 Party Channels Hash Locks Bob & H 100 USD to Bob & H Bob 100 USD to Carol & H Requires Carol signature and R Carol& H Alice Carol

3 Party Channels Hash Locks 100 USD to Bob & H Hub & H Requires Hub signature and R 100 USD to Carol & H Exchange & H Alice Hub Exchange 1. Generating random secret R 2. Public H=Hash(R)

3+ Party Channels Bob Carol Alice H Dave

Lightning Network Alice Dave 1. Generating random secret R 2. Public H=Hash(R) Alice wants to pay to Dave. Dave says: 1. Here is my H 2. If you know R consider payment fulfilled

Lightning Network Topology

Offchain Settlement 7 / 25 B T C C H AN N E L S S N AP S H O T 0 4 J U L 2 0 1 7 Multisignature address Client Liquidity Hub 34i3ozADy8yknSPow4hfZevVUHE1gDEBMt 0.03073017 37.16926983 37zGsNecseFBYUEt2Q79vq5R4RJDsAjR7G 2.20091438 26.38003815 3GAkHd3dZhowFHqzQgmWGtCdKa1LDfQ9wT 6.75324318 22.24675682 35RgpgT11WJRW8vSqCTvny66eipGgYKWwz 2.53595479 17.46404521 3CN3UqxgZybCsEitdkMp8YUVmLaSweYvYH 0.00604847 14.99395153 3BFHeiYAo3BeGmzagQCzDobguVp7i6D5iR 0.00002917 0 3B73AV9i9EiVyuYYyTEWV55M3NfnTbjrpR 0.00002892 0 TOTAL in 2249 BTC CHANNELS 726.5220753 1104.964189

Offchain Settlement Statistics 7 / 25 N U M B E R O F O P E R AT I O N S 2 8 J U N 2 0 1 7 0 4 J U L 2 0 1 7 Operation ONCHAIN OFFCHAIN TOTAL BUY SETTLEMENTS 1140 1991 3131 SELL SETTLEMENTS 163 2176 2339 BLOCKCHAIN CASH OUT (BTC, LKK) 520-520 CASHIN (fiat ) 104 414 518 BLOCKCHAIN CASHIN (BTC, LKK) 289-289 HUB S CHANNEL WITHDRAWALS 76-76 CASHOUT (fiat ) 0 65 65 2292 4646 6938

Offchain Settlement Statistics 7 / 25 N U M B E R O F O P E R AT I O N S 2 8 J U N 2 0 1 7 0 4 J U L 2 0 1 7 Asset ONCHAIN OFFCHAIN TOTAL BTC 1249 642 1891 USD 156 1498 1654 LKK 622 760 1382 CHF 40 722 762 EUR 33 422 455 TIME 35 222 257 LKK1 Y 81 167 248 SLR 25 82 107 GBP 16 78 94 HCP 28 25 53 JPY 2 23 25 HKD 0 3 3 XAU 2 0 2 XPT 1 0 1 XAG 0 1 1 RUB 1 0 1 RRB 0 1 1 ILS 1 0 1 TOTAL 2292 4646 6938

Offchain Settlement Statistics 7 / 25 N U M B E R O F O P E R AT I O N S 2 8 J U N 2 0 1 7 0 4 J U L 2 0 1 7 Asset BUY SETTLEMENT OFFCHAIN BUY SETTLEMENT ONCHAIN SELL SETTLEMENT OFFCHAIN SELL SETTLEMENT ONCHAIN BTC 291 461 351 5 USD 533 26 654 68 LKK 340 497 420 25 CHF 362 11 316 15 EUR 181 11 194 6 TIME 106 11 76 21 LKK1Y 59 78 94 1 SLR 51 21 15 0 GBP 34 5 37 6 HCP 19 13 6 15 JPY 12 1 11 1 HKD 1 0 2 0 XAU 0 2 - - XPT 0 1 - - XAG 1 0 - - RUB 0 1 - - RRB 1 0 - - ILS 0 1 - - TOTAL 1991 1140 2176 163

Offchain Fees 7 / 25 1. Offchain Fees 2. Onchain fees (closing 2000 channels takes ~8 BTC) 3. Interest rates for lending Bitcoins

Offchain Settlement ToDo List 7 / 25 1. Public offchain transaction history 2. Offchain coinholders structure 3. Public commitment transactions 4. Public service for the channels monitoring`

Ethereum multisig

MultisigWithdrawal function function Withdraw( address from, address to, amount, client s signature ) onlyowner hash = sha3( address from, address to, amount); CheckClientSign(hash, client s signature); MakeWithdrawal( );

MultisigWithdrawal function function Withdraw( address from, address to, amount, client s signature ) onlyowner Can not be changed hash = sha3( address from, address to, amount); CheckClientSign(hash, client s signature); MakeWithdrawal( );

StateChannel contract function PendingChannelClose( channel id channel state id, address1 to, address2 to, amount1, amount2, penalty2 hash, client1 signature client2 signature )

Private key backup

Private Key Backup Issue 9 / 25 1. Digital key converted to 12 words Risk: Client may loose the paper backup 2. The key is stored on Lykke server It is protected by the encryption client s password so Lykke s staff can t steal it. Risk: The client can forget his / her password. 3. The key is stored on client s device Risk: The device can be wiped, stolen or broken.

Social Backup (competition finished) 9 / 25 1. Request for backup are to be send to trustees (relatives and friends) using personal contacts (sms or emails) 2. Parts of the private key distributed over the trustees 3. Trustee would need to install the LykkeWellet to save the backup

Social Backup Recovery 9 / 25 + + = 1. sms 2. email 3. selfie + + + =