the applications of blockchain and crypto currencies

31
the applications of blockchain and crypto currencies Grzegorz Gawron Arini Labs marketics at arini.biz

Upload: grzegorz-gawron

Post on 23-Jan-2017

216 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: The applications of blockchain and crypto currencies

the applications of

blockchainand crypto currencies

Grzegorz GawronArini Labs

marketics at arini.biz

Page 2: The applications of blockchain and crypto currencies

Agenda- RIP bitcoin, long live the blockchain?- crypto protocols

- escrow, offline payments-green addresses, micropayments- timestamping, but no clairvoyance- smart property - using OpenAssets- cryptographic randomness beacon- multi party lotteries- prediction markets- financial uses

- smart coins- bonds

- Stellar

Page 3: The applications of blockchain and crypto currencies

RIP bitcoin long live the underlying

tech: blockchain?

“...It’s time to admit that the current Bitcoin needs to be scrapped and to take advantage of the innovations behind the technology that underlies Bitcoin, the blockchain...”

* [6]

Page 4: The applications of blockchain and crypto currencies

bitcoin ‘experiment’

* [7], [5]

● (Mike Hearn) would you use a payment system which: ○ Couldn’t move your existing money○ Had wildly unpredictable fees that were high and rising fast

○ Allowed buyers to take back payments they’d made after walking out of shops, by simply pressing a button (...) RBF/scorched earth

○ Is suffering large backlogs and flaky payments○ … which is controlled by China

○ … and in which the companies and people building it were in open civil war?

● main cause = community failure?○ miner concentration○ limited throughput

Page 5: The applications of blockchain and crypto currencies

blockchainand

“crypto protocols”

Page 6: The applications of blockchain and crypto currencies

bitcoin scripts’ applications● escrow● green addresses● efficient micro-payments

* [3]

Page 7: The applications of blockchain and crypto currencies

TRANSACTION

10 BTC

from Alice

to MULTISIG(2 out of 3)

Escrow

Arbitrator

Alice

2x sign

Bob

sign

2x sign

1 2a

2c 2b

Page 8: The applications of blockchain and crypto currencies

Bob

TRANSACTION

10 BTC

from Bank

to Bob

Green Addresses

Alice

‘Bank’

1

sign2

3

4

Page 9: The applications of blockchain and crypto currencies

Bob

TRANSACTION B<lock time>

1 BTC

from TRANS A

to Alice

Micropayments

Alice

2asign

TRANSACTION k

0.0001 BTC

from TRANS A

to Bob

TRANSACTION 2

0.0002 BTC

from TRANS A

to Bob

TRANSACTION 3

0.0003 BTC

from TRANS A

to Bob

TRANSACTION A

1 BTC

from Alice

to MULTISIG (2 out of 2)

1sign

sign

2b

3signsignsign

4 5

6

Page 10: The applications of blockchain and crypto currencies

Timestamping- proof of something without revealing it

- Alice and Bob both sign a hash of a patent

- not proof of clairvoyance- corrupt FIFA case

Page 11: The applications of blockchain and crypto currencies

Timestamp bitcoin implementation- ‘burn’ coins by sending to the time-hash

- but you burn coins and the output needs to be tracked forever, not good

- encode the time-hash in the private key- send back money 2x with the same randomness key- this allows reconstructing the private key- but a bit complex

- ‘burn’ using OP_RETURN with the time-hash- it costs (<1GBp), but you can batch the commitments in a merkle tree

for instance

side note: illicit content: eg illegal links embedded

Page 12: The applications of blockchain and crypto currencies

Smart property- ownership of any real-world property

- tickets, cars, stocks, domain names

- OpenAssets protocol- based on OP_RETURN with instructions

- pass the coin through a special publicised P2SH address

splitting/combining the coins in a tx with a burned bitcoin encoding the split config

- downsides- burn

- need to validate the full history of a coin to make sure it’s really ‘coloured’

Page 13: The applications of blockchain and crypto currencies

Cryptographic beacon- the need: envelopes

- bent edges- cold envelope- video rigged

- bitcoin beacon- treat the hash found as a random bit- miner can withhold (<4000$)

Page 14: The applications of blockchain and crypto currencies

Multiparty lotteries

Page 15: The applications of blockchain and crypto currencies

Secure, multi-party lotteries

● untrusting counterparties● sensitive inputs● and yet - auto transfer money according to rules

Page 16: The applications of blockchain and crypto currencies

The lottery rounds- round 1

- everyone picks a random value- everyone shares hash of their random value

- round 2- everyone shares the random value- all the values are combined into one (eg sum mod n)

Page 17: The applications of blockchain and crypto currencies

How to make a fair lotterywhat if alice got all the real numbers in round 2 and knows she lost? a collateral should help here

● alice creates tx in round 1:○ to alice/bob OR to alice (with hash)

● alice/bob sign time-locked collateral transaction● alice reclaims collateral by providing the data

Page 18: The applications of blockchain and crypto currencies

Prediction Markets

Page 19: The applications of blockchain and crypto currencies

Prediction markets● let people earn from their ‘dispersed’ knowledge● get a prediction at the same time● proposed operation

○ create/buy/sell○ arbitration○ data feeds

Page 20: The applications of blockchain and crypto currencies

Prediction markets in bitcoin● simple wager

○ with Reality Keys ○ tx to: < bob&YES OR alice&NO >

■ YES/NO - a private key for the yes/no-scenario

● market API○ OpenMarket/Close_○ BuyCompleteSet/Sell_○ BuySingle/Sell_

Page 21: The applications of blockchain and crypto currencies

Deal structures● go long:

○ enter: buySingle (buyComplete/sellSingle*)○ exit: sellSingle (buySingle*/sellComplete)

● go short: ○ enter: buyCompleteSet/sellSingle○ exit: buySingle/sellComplete

● arbitrage○ if (sum sellSingle* < complete price)○ buy all / sellComplete○ ... and vice versa

Page 22: The applications of blockchain and crypto currencies

External exchange - need a broker

* 20/1/2016 http://www.jbonneau.com/doc/CBEKMN14-WEIS-decentralizing_prediction_markets.pdf

Page 23: The applications of blockchain and crypto currencies

Bitshares

Page 24: The applications of blockchain and crypto currencies

Bitshares - a bit more finance● smart coins

○ long: spend BTx, get BTgold○ short: put collateral margin, produce BTgold

● smart bonds○ put BTx as collateral○ produce a BTbond, get BTS○ pay BTS interest○ if not: your collateral gets paid to BTbond buyer

Page 25: The applications of blockchain and crypto currencies

Stellar

Page 26: The applications of blockchain and crypto currencies

Stellar - blockchain platform● comparison to bitcoin

○ no POW, Federated Byzantine Agreement instead■ 2 seconds between ‘blocks’

○ ledger of accounts, not transactions

● life cycle○ client: create tx, sign, submit○ core: preliminary checks, propagate, scp

Page 27: The applications of blockchain and crypto currencies

Multi-signatures● security thresholds

○ low - allow trust○ medium○ high - modify signers, options

● eg - any 3 employees can sign anything○ thresholds: low/medium/high: 3/3/3○ master key weight: 0○ Employee x key weight: 1

Page 28: The applications of blockchain and crypto currencies

Stellar consensus protocol

* 20/1/2016 https://www.stellar.org/

Page 29: The applications of blockchain and crypto currencies

Consensus based on ‘federated’ trust

* 20/1/2016 https://www.stellar.org/

Page 31: The applications of blockchain and crypto currencies

THANK YOU