SlideShare una empresa de Scribd logo
1 de 24
Descargar para leer sin conexión
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Building your First BlockchainApplicationUsing
Amazon Managed Blockchain
Michael Edge
Senior Cloud Architect
Professional Services HKT
D A T 3 7 2
Michael Braendle
Enterprise Service Manager
Professional Services ASEAN
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Agenda
• Workshop agenda
 Introduction to Blockchain 10 min
 Amazon Managed Blockchain Service 10 min
 Workshop Introduction 10 min
 Self-paced workshop 90 min
• Instructor-led workshop. We highly recommend that you follow the instructions.
• Use a provisioned AWS account and AWS Cloud 9 as default IDE for the workshop
• Don’t waste money! Clean up all your resources before your leave the session!
• Instruction and repository: https://github.com/aws-samples/non-profit-blockchain
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
OverviewBlockchain
Linked transaction
data in encrypted,
redundant
databases,
or ledgers, hosted
across the Internet
What is it
Makes online
transactions
across enterprises
more secure and
trustworthy
Lowers cost by
eliminating the
need for traditional
intermediaries
What it does
No single entity
controls the data,
further reducing
risk
Who
Encrypted,
redundant data
prevents
destruction or
falsification of data
in any single
ledger
How
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
BlockchainValueProposition
Reliability
Immutability Trustworthiness
Security
Blockchain makes 3 core aspects
easier and built right out of the box
An integrated data store with
built in cryptographic security
A consensus mechanism to facilitate
trust in an otherwise untrusted
environment
A robust state machine that
executes implicit code and defines
how transactions are handled
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
TechnicalUseCases
Provenance of dataDecentralized
interactions
Disintermediation Integrated data
management
101010
01010
0100
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
BlockchainCustomerUseCases
Proof of Ownership
Digital SecurityTrading
Documents/Contracts
Enterprise Platforms
Financial
Insurance
Mortgage Loans
Voting Mechanisms
Patient Records
Corporate Governance
HCLS
Real Estate
Legal
Agriculture
Gaming
M & E
Transportation
DigitalAdvertising
Power/Utilities
Retail
Capital Markets
Cloud
OWNERSHIPPRIVATE MARKETS
DERIVATIVES
WAGERS
GLOBAL PAYMENTS
REMITTANCE
NOTARISATION
EQUITY
MICROFINANCE
INTELLECTUAL PROPERTY
TITLE RECORD
ESCROW
DIGITAL RIGHTS
E-COMMERCE
DEBT
CROWDFUNDING
P2P LENDING
HEALTHCARE
VOTING
TRUSTEES
SMART
CONTRACTS
DIGITAL
CURRENCY
SECURITIES
RECORD
KEEPING
Blockchain
Enterprise
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Managed Blockchain features
Low cost
Only pay for resources used
Open-source variety
Support for two frameworks
Integrated
Send data to Amazon QLDB
for secure analytics
Fully managed
Create a blockchain network in minutes
Reliable & scalable
Backed with Amazon QLDB technology
Decentralized
Democratically govern the network
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Hyperledger Fabric
• Createpermissionednetworkswith
channelstolimitthetransactionson
theledgereachmembercansee
• Chaincode(smartcontracts)writtenin
Go,Node.js&Javaandareexecutedin
Dockercontainers
• Endorsementpolicyforexecuting
chaincodeisconfigurable
• Doesnotrequireexpensivetoken
miningforconsensus
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon BlockchainServiceArchitecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon Managed Blockchain augments open-source
Fabric
Fabric ordering service
• Core component of a Fabric network to guarantee delivery and order of transactions
• Uses Amazon QLDB technology to increase reliability
Fabric certificate authority (CA)
• Open source uses a “soft” HSM
• Manage Blockchain backs the Fabric CA with AWS KMS technology
Voting API (coming soon)
• Members in a network can vote on who to invite or remove from a network
• Members can vote on the voting rules (e.g. majority rules or one member decides)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Amazon BlockchainServiceArchitecture
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
WorkshopGitHubrepository
Workshop tutorial:
https://tinyurl.com/y7h6369b
https://github.com/aws-samples/non-profit-blockchain)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
WorkshopObjectives
The objective of this workshop is to create an AWS Managed
Blockchain Fabric network, then deploy an application that interacts
with the Fabric network. You will do the following:
• Create an AWS Managed Blockchain Fabric network
• Create a peer node in the network
• Create a new channel, install and instantiate chaincode
• Query the chaincode and invoke transactions
• Deploy a RESTful API which connects to the Fabric network and
exposes the chaincode functions as REST endpoints
• Test the RESTful API using cURL
• Deploy a Node.js application that calls the RESTful API
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Getting started
 Look at the README here: https://tinyurl.com/y7h6369b
 Start with Part 1
 Use the AWS Console to create a Fabric network
 Create a AWS Cloud9 instance
 Use AWS Cloud9 to create a Fabric client node
 From the Fabric client node, install chaincode, test chaincode, etc.
 On the Fabric client node install the RESTful API
 On the AWS Cloud9 instance, install the Node.js application
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Comparing Blockchainto whatweknow
Ethereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum Node
John gives
Michael $100
Update BALANCE
set AMT=AMT + 100
where NAME=‘Michael’
Transaction Log –
the events
State – the
current state
Peer
Smart
Contract
Simulate & sign
transaction
Orderer
Order TX and
create blocks
Write block and
update world
state
$100
World state – the
current state
Genesis BlockPeer
ValidateOrderExecute
Ethereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum Node
Miners
Miners order via
PoW
Peer
Smart
Contract
Execute smart
contract
$100
World state – the
current state
Genesis Block
ExecuteOrder
RDBMS
Ethereum
Hyperledger
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Let’sGo & Have Fun!!!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
That’s it!
We hope you had fun discovering
theAmazon Managed Blockchain
and that you enjoyed the
workshop!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Be frugal!Clean up all your resources
before your leave the session!
Thank you!
Thank you!
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Michael Edge
edgema@amazon.com
Michael Braendle
braendle@amazon.com
Jonathan Fritz
jonfritz@amazon.com
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Más contenido relacionado

Más de Amazon Web Services

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsAmazon Web Services
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareAmazon Web Services
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSAmazon Web Services
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAmazon Web Services
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareAmazon Web Services
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWSAmazon Web Services
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckAmazon Web Services
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without serversAmazon Web Services
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...Amazon Web Services
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceAmazon Web Services
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSAmazon Web Services
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAmazon Web Services
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightAmazon Web Services
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotAmazon Web Services
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Amazon Web Services
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?Amazon Web Services
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksAmazon Web Services
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Amazon Web Services
 

Más de Amazon Web Services (20)

Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows WorkloadsMicrosoft Active Directory su AWS per supportare i tuoi Windows Workloads
Microsoft Active Directory su AWS per supportare i tuoi Windows Workloads
 
Computer Vision con AWS
Computer Vision con AWSComputer Vision con AWS
Computer Vision con AWS
 
Database Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatareDatabase Oracle e VMware Cloud on AWS i miti da sfatare
Database Oracle e VMware Cloud on AWS i miti da sfatare
 
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJSCrea la tua prima serverless ledger-based app con QLDB e NodeJS
Crea la tua prima serverless ledger-based app con QLDB e NodeJS
 
API moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e webAPI moderne real-time per applicazioni mobili e web
API moderne real-time per applicazioni mobili e web
 
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatareDatabase Oracle e VMware Cloud™ on AWS: i miti da sfatare
Database Oracle e VMware Cloud™ on AWS: i miti da sfatare
 
Tools for building your MVP on AWS
Tools for building your MVP on AWSTools for building your MVP on AWS
Tools for building your MVP on AWS
 
How to Build a Winning Pitch Deck
How to Build a Winning Pitch DeckHow to Build a Winning Pitch Deck
How to Build a Winning Pitch Deck
 
Building a web application without servers
Building a web application without serversBuilding a web application without servers
Building a web application without servers
 
Fundraising Essentials
Fundraising EssentialsFundraising Essentials
Fundraising Essentials
 
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
AWS_HK_StartupDay_Building Interactive websites while automating for efficien...
 
Introduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container ServiceIntroduzione a Amazon Elastic Container Service
Introduzione a Amazon Elastic Container Service
 
Come costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWSCome costruire un'architettura Serverless nel Cloud AWS
Come costruire un'architettura Serverless nel Cloud AWS
 
AWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei serverAWS Serverless per startup: come innovare senza preoccuparsi dei server
AWS Serverless per startup: come innovare senza preoccuparsi dei server
 
Crea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSightCrea dashboard interattive con Amazon QuickSight
Crea dashboard interattive con Amazon QuickSight
 
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker AutopilotCostruisci modelli di Machine Learning con Amazon SageMaker Autopilot
Costruisci modelli di Machine Learning con Amazon SageMaker Autopilot
 
Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows Migra le tue file shares in cloud con FSx for Windows
Migra le tue file shares in cloud con FSx for Windows
 
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
La tua organizzazione è pronta per adottare una strategia di cloud ibrido?
 
Protect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced AttacksProtect your applications from DDoS/BOT & Advanced Attacks
Protect your applications from DDoS/BOT & Advanced Attacks
 
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
Track 6 Session 6_ 透過 AWS AI 服務模擬、部署機器人於產業之應用
 

[NEW LAUNCH!] Building your first blockchain application with Amazon Managed Blockchain - Workshop (DAT372) - AWS re:Invent 2018

  • 1.
  • 2. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Building your First BlockchainApplicationUsing Amazon Managed Blockchain Michael Edge Senior Cloud Architect Professional Services HKT D A T 3 7 2 Michael Braendle Enterprise Service Manager Professional Services ASEAN
  • 3. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Agenda • Workshop agenda  Introduction to Blockchain 10 min  Amazon Managed Blockchain Service 10 min  Workshop Introduction 10 min  Self-paced workshop 90 min • Instructor-led workshop. We highly recommend that you follow the instructions. • Use a provisioned AWS account and AWS Cloud 9 as default IDE for the workshop • Don’t waste money! Clean up all your resources before your leave the session! • Instruction and repository: https://github.com/aws-samples/non-profit-blockchain
  • 4. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 5. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. OverviewBlockchain Linked transaction data in encrypted, redundant databases, or ledgers, hosted across the Internet What is it Makes online transactions across enterprises more secure and trustworthy Lowers cost by eliminating the need for traditional intermediaries What it does No single entity controls the data, further reducing risk Who Encrypted, redundant data prevents destruction or falsification of data in any single ledger How
  • 6. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. BlockchainValueProposition Reliability Immutability Trustworthiness Security Blockchain makes 3 core aspects easier and built right out of the box An integrated data store with built in cryptographic security A consensus mechanism to facilitate trust in an otherwise untrusted environment A robust state machine that executes implicit code and defines how transactions are handled
  • 7. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. TechnicalUseCases Provenance of dataDecentralized interactions Disintermediation Integrated data management 101010 01010 0100
  • 8. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. BlockchainCustomerUseCases Proof of Ownership Digital SecurityTrading Documents/Contracts Enterprise Platforms Financial Insurance Mortgage Loans Voting Mechanisms Patient Records Corporate Governance HCLS Real Estate Legal Agriculture Gaming M & E Transportation DigitalAdvertising Power/Utilities Retail Capital Markets Cloud OWNERSHIPPRIVATE MARKETS DERIVATIVES WAGERS GLOBAL PAYMENTS REMITTANCE NOTARISATION EQUITY MICROFINANCE INTELLECTUAL PROPERTY TITLE RECORD ESCROW DIGITAL RIGHTS E-COMMERCE DEBT CROWDFUNDING P2P LENDING HEALTHCARE VOTING TRUSTEES SMART CONTRACTS DIGITAL CURRENCY SECURITIES RECORD KEEPING Blockchain Enterprise
  • 9. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 10. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Managed Blockchain features Low cost Only pay for resources used Open-source variety Support for two frameworks Integrated Send data to Amazon QLDB for secure analytics Fully managed Create a blockchain network in minutes Reliable & scalable Backed with Amazon QLDB technology Decentralized Democratically govern the network
  • 11. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Hyperledger Fabric • Createpermissionednetworkswith channelstolimitthetransactionson theledgereachmembercansee • Chaincode(smartcontracts)writtenin Go,Node.js&Javaandareexecutedin Dockercontainers • Endorsementpolicyforexecuting chaincodeisconfigurable • Doesnotrequireexpensivetoken miningforconsensus
  • 12. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon BlockchainServiceArchitecture
  • 13. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon Managed Blockchain augments open-source Fabric Fabric ordering service • Core component of a Fabric network to guarantee delivery and order of transactions • Uses Amazon QLDB technology to increase reliability Fabric certificate authority (CA) • Open source uses a “soft” HSM • Manage Blockchain backs the Fabric CA with AWS KMS technology Voting API (coming soon) • Members in a network can vote on who to invite or remove from a network • Members can vote on the voting rules (e.g. majority rules or one member decides)
  • 14. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
  • 15. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Amazon BlockchainServiceArchitecture
  • 16. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. WorkshopGitHubrepository Workshop tutorial: https://tinyurl.com/y7h6369b https://github.com/aws-samples/non-profit-blockchain)
  • 17. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. WorkshopObjectives The objective of this workshop is to create an AWS Managed Blockchain Fabric network, then deploy an application that interacts with the Fabric network. You will do the following: • Create an AWS Managed Blockchain Fabric network • Create a peer node in the network • Create a new channel, install and instantiate chaincode • Query the chaincode and invoke transactions • Deploy a RESTful API which connects to the Fabric network and exposes the chaincode functions as REST endpoints • Test the RESTful API using cURL • Deploy a Node.js application that calls the RESTful API
  • 18. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Getting started  Look at the README here: https://tinyurl.com/y7h6369b  Start with Part 1  Use the AWS Console to create a Fabric network  Create a AWS Cloud9 instance  Use AWS Cloud9 to create a Fabric client node  From the Fabric client node, install chaincode, test chaincode, etc.  On the Fabric client node install the RESTful API  On the AWS Cloud9 instance, install the Node.js application
  • 19. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Comparing Blockchainto whatweknow Ethereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum Node John gives Michael $100 Update BALANCE set AMT=AMT + 100 where NAME=‘Michael’ Transaction Log – the events State – the current state Peer Smart Contract Simulate & sign transaction Orderer Order TX and create blocks Write block and update world state $100 World state – the current state Genesis BlockPeer ValidateOrderExecute Ethereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum NodeEthereum Node Miners Miners order via PoW Peer Smart Contract Execute smart contract $100 World state – the current state Genesis Block ExecuteOrder RDBMS Ethereum Hyperledger
  • 20. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Let’sGo & Have Fun!!!
  • 21. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. That’s it! We hope you had fun discovering theAmazon Managed Blockchain and that you enjoyed the workshop!
  • 22. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Be frugal!Clean up all your resources before your leave the session! Thank you!
  • 23. Thank you! © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. Michael Edge edgema@amazon.com Michael Braendle braendle@amazon.com Jonathan Fritz jonfritz@amazon.com
  • 24. © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.

Notas del editor

  1. Decentralized interactions – Enforce consensus across multiple independent, autonomous entities that need to interact and share information (N > 3). Reduce transaction costs, time and reconciliation efforts Provenance of Data - Appending only the nature of the data structure along with its cryptographic security leads to certifiably immutable records and retention of the full lifecycle of data Disintermediation – Remove third parties to enable participants to interact directly with one another. Integrated data management and manipulation – automated interaction of all data at the protocol layer with Smart Contracts. Optimize and automate information workflows
  2. Decentralized interactions – Enforce consensus across multiple independent, autonomous entities that need to interact and share information (N > 3). Reduce transaction costs, time and reconciliation efforts Provenance of Data - Appending only the nature of the data structure along with its cryptographic security leads to certifiably immutable records and retention of the full lifecycle of data Disintermediation – Remove third parties to enable participants to interact directly with one another. Integrated data management and manipulation – automated interaction of all data at the protocol layer with Smart Contracts. Optimize and automate information workflows
  3. RDBMS All statements that mutate or change data are written to a transaction log (i.e. the binary log in MySQL). Updates to the log are cached until the transaction is committed, at which point they are written to the transaction log. Databases can be rolled backwards and forwards using the events in the transaction log. Useful for point in time recovery. These logs are often used for replication, where the events are send to replicas who play the events in order. I still have a central copy of my master database, and I potentially have read replicas and slave databases Ethereum Uses an order-execute model My $100 transaction, along with other transactions happening right now, are sent to miners Transactions are sent to miners who group them into blocks and propose the next block in the chain The first miner to complete the PoW on a block with the required difficulty level, broadcasts the block to all other nodes on the network Each peer node receives the same blocks Each peer nodes loops through the transactions in the block and executes the smart contract (i.e. the Solidity code) against this transaction. The results of the smart contract are then applied to the World State, which is just a KV store, and the block is stored in the blockchain. The new block is cryptographically signed, and linked to the previous block See the parallels to an RDBMS? The results are similar in that we end up with a world state and an event store (i.e. a blockchain), but the process is different because we have to apply the change to thousands of nodes globally, rather than to just one node (in the case of an RDBMS). Hyperledger Uses execute-order-validate Each endorsing peer simulates the TX first, but does not update the blockchain or the world state. Then the TX is sent to the orderer where it is grouped into a block The block is then sent to all peer nodes Each peer node validates the block and stores the block in the blockchain The transactions in each block are processed and applied to the World State, which is just a KV store
  4. Decentralized interactions – Enforce consensus across multiple independent, autonomous entities that need to interact and share information (N > 3). Reduce transaction costs, time and reconciliation efforts Provenance of Data - Appending only the nature of the data structure along with its cryptographic security leads to certifiably immutable records and retention of the full lifecycle of data Disintermediation – Remove third parties to enable participants to interact directly with one another. Integrated data management and manipulation – automated interaction of all data at the protocol layer with Smart Contracts. Optimize and automate information workflows