SlideShare ist ein Scribd-Unternehmen logo
1 von 31
Downloaden Sie, um offline zu lesen
Azure Blockchain Service
(using Ethereum/Quorum)
philly.NET Code Camp 2019.2
What is Blockchain
Blockchain is a distributed database that is decentralized, immutable and transparent.
Data is stored in a growing list of records, called blocks, that are linked using
cryptography.
Why should you care?
Do you want Blockchain with that?
Gartner 2019 Hype Cycle for
Blockchain Business Shows
Blockchain Will Have a
Transformational Impact across
Industries in Five to 10 Years
https://www.gartner.com/en/newsroom/press-
releases/2019-09-12-gartner-2019-hype-cycl
e-for-blockchain-business-shows
https://www.slideshare.net/Chainstack/how-to-build-your-blockchain-project-with-chainstack
https://www.slideshare.net/Chainstack/how-to-build-your-blockchain-project-with-chainstack
Concepts & Terminology
(quick refresher)
Blockchain variants
- Bitcoin
- Ethereum
- Hyperledger
- Corda
Ethereum
Launched in 2015, Ethereum is the world’s leading programmable blockchain.
Like other blockchains, Ethereum has a native cryptocurrency called Ether (ETH).
ETH is digital money (like Bitcoin).
But unlike other blockchains, Ethereum can do much more. Ethereum is
programmable, which means that developers can use it to build new kinds of
applications.
https://www.ethereum.org/beginners/
Ethereum has a robust ecosystem! Partially shown here:
Ethereum Smart Contracts
Any program that runs on the Ethereum Virtual Machine (EVM) is commonly
referred to as a “smart contract”. The most popular languages for writing smart
contracts on Ethereum are Solidity and Vyper
https://www.ethereum.org/developers/#getting-started
Consensus Mechanisms
https://www.investopedia.com/terms/c/consensus-mechanism-cryptocurrency.asp
Popular Consensus Mechanisms
● Proof of Work (PoW) (used by Bitcoin, Ethereum 1.0)
● Proof of Stake (PoS) (Ethereum 2.0)
● Simplified Byzantine Fault Tolerance
● Practical Byzantine Fault Tolerance
● Proof of Elapsed Time (PoET)
● Proof of Burn
● Proof of Capacity
● Proof of Authority (PoA) (Hyperledger, Quorum, Azure Blockchain Service)
● Directed Acyclic Graphs (DAGs)
https://www.himss.org/library/consensus-blockchain
What is Blockchain used for?
- Decentralized Currency
- Decentralized Identity
- Registries (e.g. DNS)
- Document and Transaction proof
- Contracts
- Supply Chain Tracking
- Waiting for you to come up with a new application!
https://azure.microsoft.com/en-us/services/blockchain-service/
The Document Storage Example
The Document Storage Example
● Goal: Use Blockchain to save proof of a document
● Implementation:
○ Store a document elsewhere (e.g. Azure Blob Storage)
○ Calculate the hash of the document
○ Save the Hash in the blockchain
○ Provide methods to save and verify a hash
https://solidity.readthedocs.io/en/v0.5.12/
Smart Contract Code
pragma solidity ^0.5.0;
contract NotarizedDocument {
mapping (bytes32 => bool) documentProof;
function notarize(string memory documentSignature) public {
bytes32 signature = stringToBytes32(documentSignature);
storeDocumentProof(signature);
}
function storeDocumentProof(bytes32 signedDocument) private {
documentProof[signedDocument] =true;
}
function checkDocument (string memory documentSignature) public view returns (bool) {
bytes32 signature = stringToBytes32(documentSignature);
return hasProof(signature);
}
function hasProof(bytes32 signature) private view returns (bool) {
return documentProof[signature];
}
}
Smart Contract Code - 2
function stringToBytes32(string memory source) private pure returns (bytes32 result) {
bytes memory tempEmptyStringTest = bytes(source);
if (tempEmptyStringTest.length ==0) {
return 0x0;
}
assembly {
result := mload(add(source, 32))
}
}
Setup and Testing
● Create a Consortium
○ https://docs.microsoft.com/en-us/azure/blockchain/service/create-member
● Setup VS Code to interact with Azure Blockchain Consortium
○ https://docs.microsoft.com/en-us/azure/blockchain/service/connect-vscode
● Setup Metamask to interact with Azure Blockchain Service
○ https://docs.microsoft.com/en-us/azure/blockchain/service/connect-metamask
● Compile and Deploy the contract to Azure
● Test using Remix or MEW
Azure Blockchain Development Kit
https://marketplace.visualstudio.com/items?itemName=AzBlockchain.azure-blockchain
VS Code - Command Palette
https://marketplace.visualstudio.com/items?itemName=AzBlockchain.azure-blockchain
Deploying in VS Code
Testing
Demo
More tutorials
● Tutorial: Use Visual Studio Code to create, build, and deploy smart contracts
○ https://docs.microsoft.com/en-us/azure/blockchain/service/send-transaction
● Use the Ethereum Blockchain connector with Azure Logic Apps
○ https://docs.microsoft.com/en-us/azure/blockchain/service/ethereum-logic-app
● Common scenarios connecting Blockchain using Logic Apps
○ https://channel9.msdn.com/Shows/Blocktalk/Doing-more-with-Logic-Apps?term=logic%20apps%20blockchain&lang-en=
true
● Write Blockchain-Powered Azure Functions in Java leveraging Azure Key Vault
○ https://github.com/Azure-Samples/bc-community-samples/tree/master/akv-functions-java
Quorum
https://www.slideshare.net/Chainstack/getting-started-with-quorum-101-148828842
https://github.com/jpmorganchase/quorum
References and interesting reads
Blockchain on Channel9
https://channel9.msdn.com/Search?term=blockchain&lang-en=true
Blockchain concepts
https://www.slideshare.net/arunmurughan/blockchain-concepts
Azure Blockchain Workbench
https://www.slideshare.net/arunmurughan/azure-blockchain-workbench?from_action=save

Weitere ähnliche Inhalte

Was ist angesagt?

Token Governance in Blockchain Ecosystems
Token Governance in Blockchain EcosystemsToken Governance in Blockchain Ecosystems
Token Governance in Blockchain EcosystemsDr. Nikolaus Lipusch
 
Enterprise Blockchain Application Development using Azure Blockchain Service
Enterprise Blockchain Application Development using Azure Blockchain ServiceEnterprise Blockchain Application Development using Azure Blockchain Service
Enterprise Blockchain Application Development using Azure Blockchain ServiceJuarez Junior
 
The future of data security and blockchain
The future of data security and blockchainThe future of data security and blockchain
The future of data security and blockchainUlf Mattsson
 
Microsoft blockchain vision - enterprise smart contracts, coco framework and...
Microsoft blockchain vision  - enterprise smart contracts, coco framework and...Microsoft blockchain vision  - enterprise smart contracts, coco framework and...
Microsoft blockchain vision - enterprise smart contracts, coco framework and...Razi Rais
 
Get Rich with Blockchain & Cryptocurrency
Get Rich with Blockchain & CryptocurrencyGet Rich with Blockchain & Cryptocurrency
Get Rich with Blockchain & Cryptocurrencykeerthi678722
 
Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...
Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...
Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...Kaleido
 
Blockchain based Security Architectures - A Review
Blockchain based Security Architectures - A ReviewBlockchain based Security Architectures - A Review
Blockchain based Security Architectures - A ReviewGokul Alex
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureNuri Cankaya
 
Security Model of Blockchain
Security Model of BlockchainSecurity Model of Blockchain
Security Model of Blockchainsaficus
 
Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Financial Poise
 
Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance VIJAY MUTHU
 
Comparison Blockchain Developer vs. Blockchain Expert
Comparison  Blockchain Developer vs. Blockchain Expert Comparison  Blockchain Developer vs. Blockchain Expert
Comparison Blockchain Developer vs. Blockchain Expert Blockchain Council
 
Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...
Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...
Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...Tracy Kuhrt
 
Blockchain Primer - Founder Collective - December 2017
Blockchain Primer - Founder Collective - December 2017Blockchain Primer - Founder Collective - December 2017
Blockchain Primer - Founder Collective - December 2017Parul Singh
 
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...Edureka!
 
Banking on a Blockchain
Banking on a BlockchainBanking on a Blockchain
Banking on a BlockchainAltoros
 
Wp blockchain ilnas_e-version
Wp blockchain ilnas_e-versionWp blockchain ilnas_e-version
Wp blockchain ilnas_e-versionJonas Mercier
 

Was ist angesagt? (20)

Token Governance in Blockchain Ecosystems
Token Governance in Blockchain EcosystemsToken Governance in Blockchain Ecosystems
Token Governance in Blockchain Ecosystems
 
Enterprise Blockchain Application Development using Azure Blockchain Service
Enterprise Blockchain Application Development using Azure Blockchain ServiceEnterprise Blockchain Application Development using Azure Blockchain Service
Enterprise Blockchain Application Development using Azure Blockchain Service
 
Making blockchain real for business
Making blockchain real for businessMaking blockchain real for business
Making blockchain real for business
 
The future of data security and blockchain
The future of data security and blockchainThe future of data security and blockchain
The future of data security and blockchain
 
Microsoft blockchain vision - enterprise smart contracts, coco framework and...
Microsoft blockchain vision  - enterprise smart contracts, coco framework and...Microsoft blockchain vision  - enterprise smart contracts, coco framework and...
Microsoft blockchain vision - enterprise smart contracts, coco framework and...
 
Get Rich with Blockchain & Cryptocurrency
Get Rich with Blockchain & CryptocurrencyGet Rich with Blockchain & Cryptocurrency
Get Rich with Blockchain & Cryptocurrency
 
Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...
Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...
Enterprise Blockchain: Lessons from Global Innovators in Production (All Thin...
 
Blockchain based Security Architectures - A Review
Blockchain based Security Architectures - A ReviewBlockchain based Security Architectures - A Review
Blockchain based Security Architectures - A Review
 
Blockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on AzureBlockchain Essentials and Blockchain on Azure
Blockchain Essentials and Blockchain on Azure
 
Security Model of Blockchain
Security Model of BlockchainSecurity Model of Blockchain
Security Model of Blockchain
 
Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)Blockchain and Smart Contracts (Series: Blockchain Basics)
Blockchain and Smart Contracts (Series: Blockchain Basics)
 
Blockchain for the Enterprise
Blockchain for the EnterpriseBlockchain for the Enterprise
Blockchain for the Enterprise
 
Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance Blockchain : A Catalyst for New Approaches in Insurance
Blockchain : A Catalyst for New Approaches in Insurance
 
Blockchain Fundamentals Quickstart
Blockchain Fundamentals Quickstart Blockchain Fundamentals Quickstart
Blockchain Fundamentals Quickstart
 
Comparison Blockchain Developer vs. Blockchain Expert
Comparison  Blockchain Developer vs. Blockchain Expert Comparison  Blockchain Developer vs. Blockchain Expert
Comparison Blockchain Developer vs. Blockchain Expert
 
Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...
Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...
Code for America 2018 - Using Hyperledger Technologies to Deliver Government ...
 
Blockchain Primer - Founder Collective - December 2017
Blockchain Primer - Founder Collective - December 2017Blockchain Primer - Founder Collective - December 2017
Blockchain Primer - Founder Collective - December 2017
 
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training  ...
Blockchain Wallet | Blockchain Tutorial for Beginners | Blockchain Training ...
 
Banking on a Blockchain
Banking on a BlockchainBanking on a Blockchain
Banking on a Blockchain
 
Wp blockchain ilnas_e-version
Wp blockchain ilnas_e-versionWp blockchain ilnas_e-version
Wp blockchain ilnas_e-version
 

Ähnlich wie Azure blockchain service

IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...
IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...
IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...IRJET Journal
 
Hyperledger Fabric & Composer
Hyperledger Fabric & Composer Hyperledger Fabric & Composer
Hyperledger Fabric & Composer Dr. Ketan Parmar
 
IRJET-Block Chain based Cyber Security System for Data Transfer
IRJET-Block Chain based Cyber Security System for Data TransferIRJET-Block Chain based Cyber Security System for Data Transfer
IRJET-Block Chain based Cyber Security System for Data TransferIRJET Journal
 
IRJET- Different Blockchain Platforms and Algorithms
IRJET-  	  Different Blockchain Platforms and AlgorithmsIRJET-  	  Different Blockchain Platforms and Algorithms
IRJET- Different Blockchain Platforms and AlgorithmsIRJET Journal
 
REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...
REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...
REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...IRJET Journal
 
Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Dr. Ketan Parmar
 
Adoption Blockchain Smart Contracts in Developing Information Systems.pdf
Adoption Blockchain Smart Contracts in Developing Information Systems.pdfAdoption Blockchain Smart Contracts in Developing Information Systems.pdf
Adoption Blockchain Smart Contracts in Developing Information Systems.pdfMahdi_Fahmideh
 
Trusto Artificial Intelligence Blockchain platform 2018
Trusto Artificial Intelligence Blockchain  platform 2018 Trusto Artificial Intelligence Blockchain  platform 2018
Trusto Artificial Intelligence Blockchain platform 2018 Aurel Ispas
 
Decentralized Car Hailing Application
Decentralized Car Hailing ApplicationDecentralized Car Hailing Application
Decentralized Car Hailing ApplicationIRJET Journal
 
Blockchain Applications in Enterprises
Blockchain Applications in EnterprisesBlockchain Applications in Enterprises
Blockchain Applications in EnterprisesMinHsien Chang
 
Blockchain technology and logistics management
Blockchain technology and logistics managementBlockchain technology and logistics management
Blockchain technology and logistics managementJayakumar PP
 
Diseño del Smart Contract Blockchain: ejemplo para Real Estate
Diseño del Smart Contract Blockchain: ejemplo para Real EstateDiseño del Smart Contract Blockchain: ejemplo para Real Estate
Diseño del Smart Contract Blockchain: ejemplo para Real EstateJosé Luis Casal
 
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...IRJET Journal
 
Blockchain and its Scope in Retail
Blockchain and its Scope in RetailBlockchain and its Scope in Retail
Blockchain and its Scope in RetailIRJET Journal
 
Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...
Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...
Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...eraser Juan José Calderón
 
Blockchain on Azure
Blockchain on AzureBlockchain on Azure
Blockchain on AzureNuri Cankaya
 
Records management on the blockchain for the mortgage industry
Records management on the blockchain for the mortgage industryRecords management on the blockchain for the mortgage industry
Records management on the blockchain for the mortgage industryAjay Sharma
 
Application of Blockchain Technologies in Digital Forensics
Application of Blockchain Technologies in Digital ForensicsApplication of Blockchain Technologies in Digital Forensics
Application of Blockchain Technologies in Digital ForensicsMahdi_Fahmideh
 

Ähnlich wie Azure blockchain service (20)

IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...
IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...
IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN CLOUD COM...
 
Block chain technology
Block chain technologyBlock chain technology
Block chain technology
 
0045cbaf1480eb3d
0045cbaf1480eb3d0045cbaf1480eb3d
0045cbaf1480eb3d
 
Hyperledger Fabric & Composer
Hyperledger Fabric & Composer Hyperledger Fabric & Composer
Hyperledger Fabric & Composer
 
IRJET-Block Chain based Cyber Security System for Data Transfer
IRJET-Block Chain based Cyber Security System for Data TransferIRJET-Block Chain based Cyber Security System for Data Transfer
IRJET-Block Chain based Cyber Security System for Data Transfer
 
IRJET- Different Blockchain Platforms and Algorithms
IRJET-  	  Different Blockchain Platforms and AlgorithmsIRJET-  	  Different Blockchain Platforms and Algorithms
IRJET- Different Blockchain Platforms and Algorithms
 
REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...
REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...
REVIEW ON IMPLEMENTING BLOCKCHAIN ASSISTED PUBLIC KEY ENCRYPTION TECHNIQUE IN...
 
Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer Introduction of Hyperledger Fabric & Composer
Introduction of Hyperledger Fabric & Composer
 
Adoption Blockchain Smart Contracts in Developing Information Systems.pdf
Adoption Blockchain Smart Contracts in Developing Information Systems.pdfAdoption Blockchain Smart Contracts in Developing Information Systems.pdf
Adoption Blockchain Smart Contracts in Developing Information Systems.pdf
 
Trusto Artificial Intelligence Blockchain platform 2018
Trusto Artificial Intelligence Blockchain  platform 2018 Trusto Artificial Intelligence Blockchain  platform 2018
Trusto Artificial Intelligence Blockchain platform 2018
 
Decentralized Car Hailing Application
Decentralized Car Hailing ApplicationDecentralized Car Hailing Application
Decentralized Car Hailing Application
 
Blockchain Applications in Enterprises
Blockchain Applications in EnterprisesBlockchain Applications in Enterprises
Blockchain Applications in Enterprises
 
Blockchain technology and logistics management
Blockchain technology and logistics managementBlockchain technology and logistics management
Blockchain technology and logistics management
 
Diseño del Smart Contract Blockchain: ejemplo para Real Estate
Diseño del Smart Contract Blockchain: ejemplo para Real EstateDiseño del Smart Contract Blockchain: ejemplo para Real Estate
Diseño del Smart Contract Blockchain: ejemplo para Real Estate
 
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
Cryptographically Secured Communication With Extraterrestrial Intelligence Us...
 
Blockchain and its Scope in Retail
Blockchain and its Scope in RetailBlockchain and its Scope in Retail
Blockchain and its Scope in Retail
 
Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...
Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...
Blockchain Computing: Prospects and Challenges for Digital Transformation  Pr...
 
Blockchain on Azure
Blockchain on AzureBlockchain on Azure
Blockchain on Azure
 
Records management on the blockchain for the mortgage industry
Records management on the blockchain for the mortgage industryRecords management on the blockchain for the mortgage industry
Records management on the blockchain for the mortgage industry
 
Application of Blockchain Technologies in Digital Forensics
Application of Blockchain Technologies in Digital ForensicsApplication of Blockchain Technologies in Digital Forensics
Application of Blockchain Technologies in Digital Forensics
 

Mehr von Ravi Okade

Preparing for AWS certified solutions architect associate exam (saa-c02)
Preparing for AWS certified solutions architect associate exam (saa-c02)Preparing for AWS certified solutions architect associate exam (saa-c02)
Preparing for AWS certified solutions architect associate exam (saa-c02)Ravi Okade
 
Are you writing acceptance test yet?
Are you writing acceptance test yet?Are you writing acceptance test yet?
Are you writing acceptance test yet?Ravi Okade
 
License plate detection using cloud api's
License plate detection using cloud api'sLicense plate detection using cloud api's
License plate detection using cloud api'sRavi Okade
 
The twelve factor app
The twelve factor appThe twelve factor app
The twelve factor appRavi Okade
 
ZeroMq ZooKeeper and FlatBuffers
ZeroMq ZooKeeper and FlatBuffersZeroMq ZooKeeper and FlatBuffers
ZeroMq ZooKeeper and FlatBuffersRavi Okade
 
Optimizing Application Architecture (.NET/Java topics)
Optimizing Application Architecture (.NET/Java topics)Optimizing Application Architecture (.NET/Java topics)
Optimizing Application Architecture (.NET/Java topics)Ravi Okade
 
Sql Server 2014 In Memory
Sql Server 2014 In MemorySql Server 2014 In Memory
Sql Server 2014 In MemoryRavi Okade
 
Dot Net Application Monitoring
Dot Net Application MonitoringDot Net Application Monitoring
Dot Net Application MonitoringRavi Okade
 

Mehr von Ravi Okade (8)

Preparing for AWS certified solutions architect associate exam (saa-c02)
Preparing for AWS certified solutions architect associate exam (saa-c02)Preparing for AWS certified solutions architect associate exam (saa-c02)
Preparing for AWS certified solutions architect associate exam (saa-c02)
 
Are you writing acceptance test yet?
Are you writing acceptance test yet?Are you writing acceptance test yet?
Are you writing acceptance test yet?
 
License plate detection using cloud api's
License plate detection using cloud api'sLicense plate detection using cloud api's
License plate detection using cloud api's
 
The twelve factor app
The twelve factor appThe twelve factor app
The twelve factor app
 
ZeroMq ZooKeeper and FlatBuffers
ZeroMq ZooKeeper and FlatBuffersZeroMq ZooKeeper and FlatBuffers
ZeroMq ZooKeeper and FlatBuffers
 
Optimizing Application Architecture (.NET/Java topics)
Optimizing Application Architecture (.NET/Java topics)Optimizing Application Architecture (.NET/Java topics)
Optimizing Application Architecture (.NET/Java topics)
 
Sql Server 2014 In Memory
Sql Server 2014 In MemorySql Server 2014 In Memory
Sql Server 2014 In Memory
 
Dot Net Application Monitoring
Dot Net Application MonitoringDot Net Application Monitoring
Dot Net Application Monitoring
 

Kürzlich hochgeladen

Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxMatsuo Lab
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Brian Pichman
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7DianaGray10
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfinfogdgmi
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxGDSC PJATK
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdfPedro Manuel
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAshyamraj55
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024SkyPlanner
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8DianaGray10
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxUdaiappa Ramachandran
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostMatt Ray
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaborationbruanjhuli
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding TeamAdam Moalla
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioChristian Posta
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Adtran
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXTarek Kalaji
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...DianaGray10
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1DianaGray10
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDELiveplex
 

Kürzlich hochgeladen (20)

201610817 - edge part1
201610817 - edge part1201610817 - edge part1
201610817 - edge part1
 
Introduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptxIntroduction to Matsuo Laboratory (ENG).pptx
Introduction to Matsuo Laboratory (ENG).pptx
 
Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )Building Your Own AI Instance (TBLC AI )
Building Your Own AI Instance (TBLC AI )
 
UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7UiPath Studio Web workshop series - Day 7
UiPath Studio Web workshop series - Day 7
 
Videogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdfVideogame localization & technology_ how to enhance the power of translation.pdf
Videogame localization & technology_ how to enhance the power of translation.pdf
 
Cybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptxCybersecurity Workshop #1.pptx
Cybersecurity Workshop #1.pptx
 
Nanopower In Semiconductor Industry.pdf
Nanopower  In Semiconductor Industry.pdfNanopower  In Semiconductor Industry.pdf
Nanopower In Semiconductor Industry.pdf
 
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPAAnypoint Code Builder , Google Pub sub connector and MuleSoft RPA
Anypoint Code Builder , Google Pub sub connector and MuleSoft RPA
 
Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024Salesforce Miami User Group Event - 1st Quarter 2024
Salesforce Miami User Group Event - 1st Quarter 2024
 
UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8UiPath Studio Web workshop series - Day 8
UiPath Studio Web workshop series - Day 8
 
Building AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptxBuilding AI-Driven Apps Using Semantic Kernel.pptx
Building AI-Driven Apps Using Semantic Kernel.pptx
 
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCostKubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
KubeConEU24-Monitoring Kubernetes and Cloud Spend with OpenCost
 
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online CollaborationCOMPUTER 10: Lesson 7 - File Storage and Online Collaboration
COMPUTER 10: Lesson 7 - File Storage and Online Collaboration
 
9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team9 Steps For Building Winning Founding Team
9 Steps For Building Winning Founding Team
 
Comparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and IstioComparing Sidecar-less Service Mesh from Cilium and Istio
Comparing Sidecar-less Service Mesh from Cilium and Istio
 
Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™Meet the new FSP 3000 M-Flex800™
Meet the new FSP 3000 M-Flex800™
 
VoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBXVoIP Service and Marketing using Odoo and Asterisk PBX
VoIP Service and Marketing using Odoo and Asterisk PBX
 
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
Connector Corner: Extending LLM automation use cases with UiPath GenAI connec...
 
Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1Secure your environment with UiPath and CyberArk technologies - Session 1
Secure your environment with UiPath and CyberArk technologies - Session 1
 
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDEADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
ADOPTING WEB 3 FOR YOUR BUSINESS: A STEP-BY-STEP GUIDE
 

Azure blockchain service

  • 1. Azure Blockchain Service (using Ethereum/Quorum) philly.NET Code Camp 2019.2
  • 2. What is Blockchain Blockchain is a distributed database that is decentralized, immutable and transparent. Data is stored in a growing list of records, called blocks, that are linked using cryptography.
  • 4. Do you want Blockchain with that? Gartner 2019 Hype Cycle for Blockchain Business Shows Blockchain Will Have a Transformational Impact across Industries in Five to 10 Years https://www.gartner.com/en/newsroom/press- releases/2019-09-12-gartner-2019-hype-cycl e-for-blockchain-business-shows
  • 8. Blockchain variants - Bitcoin - Ethereum - Hyperledger - Corda
  • 9. Ethereum Launched in 2015, Ethereum is the world’s leading programmable blockchain. Like other blockchains, Ethereum has a native cryptocurrency called Ether (ETH). ETH is digital money (like Bitcoin). But unlike other blockchains, Ethereum can do much more. Ethereum is programmable, which means that developers can use it to build new kinds of applications. https://www.ethereum.org/beginners/
  • 10. Ethereum has a robust ecosystem! Partially shown here:
  • 11. Ethereum Smart Contracts Any program that runs on the Ethereum Virtual Machine (EVM) is commonly referred to as a “smart contract”. The most popular languages for writing smart contracts on Ethereum are Solidity and Vyper https://www.ethereum.org/developers/#getting-started
  • 13. Popular Consensus Mechanisms ● Proof of Work (PoW) (used by Bitcoin, Ethereum 1.0) ● Proof of Stake (PoS) (Ethereum 2.0) ● Simplified Byzantine Fault Tolerance ● Practical Byzantine Fault Tolerance ● Proof of Elapsed Time (PoET) ● Proof of Burn ● Proof of Capacity ● Proof of Authority (PoA) (Hyperledger, Quorum, Azure Blockchain Service) ● Directed Acyclic Graphs (DAGs) https://www.himss.org/library/consensus-blockchain
  • 14. What is Blockchain used for? - Decentralized Currency - Decentralized Identity - Registries (e.g. DNS) - Document and Transaction proof - Contracts - Supply Chain Tracking - Waiting for you to come up with a new application!
  • 17. The Document Storage Example ● Goal: Use Blockchain to save proof of a document ● Implementation: ○ Store a document elsewhere (e.g. Azure Blob Storage) ○ Calculate the hash of the document ○ Save the Hash in the blockchain ○ Provide methods to save and verify a hash
  • 19. Smart Contract Code pragma solidity ^0.5.0; contract NotarizedDocument { mapping (bytes32 => bool) documentProof; function notarize(string memory documentSignature) public { bytes32 signature = stringToBytes32(documentSignature); storeDocumentProof(signature); } function storeDocumentProof(bytes32 signedDocument) private { documentProof[signedDocument] =true; } function checkDocument (string memory documentSignature) public view returns (bool) { bytes32 signature = stringToBytes32(documentSignature); return hasProof(signature); } function hasProof(bytes32 signature) private view returns (bool) { return documentProof[signature]; } }
  • 20. Smart Contract Code - 2 function stringToBytes32(string memory source) private pure returns (bytes32 result) { bytes memory tempEmptyStringTest = bytes(source); if (tempEmptyStringTest.length ==0) { return 0x0; } assembly { result := mload(add(source, 32)) } }
  • 21. Setup and Testing ● Create a Consortium ○ https://docs.microsoft.com/en-us/azure/blockchain/service/create-member ● Setup VS Code to interact with Azure Blockchain Consortium ○ https://docs.microsoft.com/en-us/azure/blockchain/service/connect-vscode ● Setup Metamask to interact with Azure Blockchain Service ○ https://docs.microsoft.com/en-us/azure/blockchain/service/connect-metamask ● Compile and Deploy the contract to Azure ● Test using Remix or MEW
  • 22. Azure Blockchain Development Kit https://marketplace.visualstudio.com/items?itemName=AzBlockchain.azure-blockchain
  • 23. VS Code - Command Palette https://marketplace.visualstudio.com/items?itemName=AzBlockchain.azure-blockchain
  • 26. Demo
  • 27. More tutorials ● Tutorial: Use Visual Studio Code to create, build, and deploy smart contracts ○ https://docs.microsoft.com/en-us/azure/blockchain/service/send-transaction ● Use the Ethereum Blockchain connector with Azure Logic Apps ○ https://docs.microsoft.com/en-us/azure/blockchain/service/ethereum-logic-app ● Common scenarios connecting Blockchain using Logic Apps ○ https://channel9.msdn.com/Shows/Blocktalk/Doing-more-with-Logic-Apps?term=logic%20apps%20blockchain&lang-en= true ● Write Blockchain-Powered Azure Functions in Java leveraging Azure Key Vault ○ https://github.com/Azure-Samples/bc-community-samples/tree/master/akv-functions-java
  • 31. References and interesting reads Blockchain on Channel9 https://channel9.msdn.com/Search?term=blockchain&lang-en=true Blockchain concepts https://www.slideshare.net/arunmurughan/blockchain-concepts Azure Blockchain Workbench https://www.slideshare.net/arunmurughan/azure-blockchain-workbench?from_action=save