smart contrat blockc kchain as aspect ects te techniques
play

Smart contrat & blockc kchain : As Aspect ects te techniques - PowerPoint PPT Presentation

Smart contrat & blockc kchain : As Aspect ects te techniques Une approche calidoscopique des Smart Contracts en droit suisse Neuchtel, 13. Septembre 2018 Jrn Erbguth joern@erbguth.ch +41 787256027 Agenda Blockchain Hash


  1. Smart contrat & blockc kchain : As Aspect ects te techniques Une approche caléidoscopique des Smart Contracts en droit suisse Neuchâtel, 13. Septembre 2018 Jörn Erbguth joern@erbguth.ch +41 787256027

  2. Agenda Blockchain • Hash functions • Electronic signatures • Consensus mechanisms Smart Contracts • What is the essence of a Smart Contract ? • Transparency & Trust • Example & use cases Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #2

  3. Blockchain Stores data, mostly transactions and hashes • Immutable • Existing blocks are never deleted or modified • Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #3

  4. Blockchain Stores data • Immutable • Distributed worldwide • Decentralized • Every node is a complete copy Special consensus mechanism Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #4

  5. Blockchain Stores data • Immutable • Distributed worldwide • Rules in program code • Rules determine which transactions are permitted to be • integrated into new blocks. Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #5

  6. Why Blockchain ? Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #6

  7. Why Blockchain? Trust Trust Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #7

  8. How does Blockchain create trust ? Cryptography + Decentralization Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #8

  9. Cryptography Hash functions + Electronic signatures Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #9

  10. Hash functions • Serve as digital finger prints • Unique • Same length • For digital objects of any size • Cannot be calculated backwards Demo 2 Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #10

  11. Example for hash values • Switzerland 2275583196D791405892AACA0D87743C872F3FC0CF3308A6C3EF82528918AA8A • Switzerland. 43CF6F3ECA7253FFAB1FD5104172280189B91FDD5FA26774FCA6475FFA1E2EC9 • A 8C4B4C4E211BA8C1A62DE2A3A6CA5AC8BFF501C14410100DD90D5077A0AC061E Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #11

  12. Using a hash-function to chain blocks 010110101010100 111010100101101 101010001010100 010101000101010 010101000101010 010101000100100 001001000010010 001010100010010 001001010011100 100111001010101 000100101001110 101010111011010 Changing an old block requires to change all subsequent blocks Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #12

  13. Using a hash-function to time-stamp an object Hash: F4D38DFFE4304CB887587E3FC6B15717328E23471BECD259F58E0F3CB63722D2 Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #13

  14. From encryption to electronic signatures Symmetric encryption Asymmetric encryption Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #14

  15. From encryption to electronic signatures Asymmetric encryption Electronic signature Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #15

  16. Use of electronic signatures in Blockchains • Assets are connected to at least one public key • Assets can be transferred to another public key • Asset transactions need to be signed with the corresponding private key of the current owner Alice’s public key Bob’s public key Signed with Alice’s private key Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #16

  17. Energy consumption of proof of work Source: Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #17

  18. Consensus mechanisms • Cryptographic signatures only ensure that no unauthorized transaction can be added. • Consensus mechanisms ensure that no transaction can be removed “Double Spending” Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #18

  19. Putting a Transaction on a Blockchain Signing the transaction 1. Distribution to the mining nodes 2. Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #19

  20. Putting a Transaction on a Blockchain Signing the transaction 1. Distribution to the mining nodes 2. Every miner collects new transactions for a new block 3. Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #20

  21. Putting a Transaction on a Blockchain Signing the transaction 1. Distribution to the mining nodes 2. Every miner collects new transactions for a new block 3. Every miner tries to be the first to find a suitable Nonce 4. Nonce: ??? Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #21

  22. Mining Mining means, finding a Nonce value so that the hash value starts with the required number of zeros 010110101010100 000000000000000000002f345d3ab230101251217fd8419034678bb4bc0231b5 010101000101010 001001000010010 100111001010101 Nonce 43785 Creating a block takes time and energy Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #22

  23. Mining – Proof of Work A transaction is signed and distributed to the miners Transaction Tra Transaction Tra nsaction Transa nsaction Transa ction Transactio ction Transactio n Transaction Tr n Transaction Tr Transaction Tra nsaction Transa ction Transactio n Transaction Tr Transaction Tra Transaction Tra nsaction Transa nsaction Transa ction Transactio ction Transactio n Transakcon Tr n Transaction Tr Weblaw Brown Bag 16.8.2017 Smart Contracts auf der Blockchain Jörn Erbguth, joern@erbguth.ch #23

  24. Mining – Proof of Work Miners are trying to find a matching Nonce-value Transaction Tra Transaction Tra Transaction Tra Transaction Tra Transaction Tra ✓ ✓ ✓ ✓ nsaction Transa nsaction Transa nsaction Transa nsaction Transa nsaction Transa ction Transactio ction Transactio ction Transactio ction Transcktio ction Transactio n Transaction Tr n Transaction Tr n Transaction Tr n Transaction Tr n Transaction Tr Transaction Tra nsaction Transa ction Transactio n Transaction Tr Transaction Tra Transaction Tra nsaction Transa nsaction Transa ction Transactio ction Transactio n Transaction Tr n Transakcon Tr Weblaw Brown Bag 16.8.2017 Smart Contracts auf der Blockchain Jörn Erbguth, joern@erbguth.ch #24

  25. Mining – Proof of Work The miner who found a matching Nonce first, gets the reward and distributes the block to the other miners. They will start mining the next block on top of this block. Transaction Tra ✓ ✓ nsaction Transa ction Transactio n Transaction Tr Transaction Tra Transaction Tra Transaction Tra Transaction Tra Transaction Tra nsaction Transa nsaction Transa nsaction Transa nsaction Transa nsaction Transa ction Transactio ction Transactio ction Transactio ction Transactio n Transaction Tr n Transaction Tr n Transaction Tr n Transakcon Tr ction Transactio n Transaction Tr Weblaw Brown Bag 16.8.2017 Smart Contracts auf der Blockchain Jörn Erbguth, joern@erbguth.ch #25

  26. Proof of Work – voting by computing power Smart contrat & blockc kchain : A : Aspects ects techni techniques ues Neuchâtel, 13. Septembre 2018 Jörn Erbguth, joern@erbguth.ch #26

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend