Introduction to Hyperledger Composer. Simon Stone, Maintainer,

Size: px
Start display at page:

Download "Introduction to Hyperledger Composer. Simon Stone, Maintainer,"

Transcription

1 Introduction to Hyperledger Composer Simon Stone, Maintainer, Page 1

2 Blockchain for business Blockchain builds on basic business concepts Business Networks connect businesses Assets flow over business networks Transactions describe asset exchange Participants submit transactions Contracts define the rules for transactions The ledger is a log of transactions Blockchain provides a shared, replicated ledger Consensus, immutability, finality, provenance 2

3 Hyperledger Fabric Hyperledger Fabric is a Blockchain technology that provides a technical foundation for transactional applications across business networks: Smart contracts (chaincode) are executed on a distributed network Transaction input goes into an immutable ledger Transaction output goes to a data store (world state) or is published via events Hyperledger Fabric v1.1 was released by the community in March 2018 Includes Node.js chaincode support, connection profile format, amongst other features. v1.2-rc1 released this week! Includes APIs for building smart contracts and client applications: Low level of abstraction; means that applications must be built from the ground up 3

4 Hyperledger Fabric Smart contracts can provide loosely defined function based interfaces: functionname, arg1, arg2, arg3 argx Untyped, meaning that application development is harder However, provides most flexibility to the solution developer Smart contracts can store data in the world state, a key/value map stored and managed by the blockchain network: Key CAR_1 Value decf546257be CAR_2 06aad4d65205cedb CAR_3 33eee744edb6688bea68 4

5 Smart contracts/chaincode today Too much boilerplate code, not enough focus on the important business logic. RPC interface Data validation Error handling Access control Business logic 5

6 Hyperledger Composer Hyperledger Composer is a framework to accelerate the development of applications built on top of Blockchain platforms such as Hyperledger Fabric: Emphasis on quick solution creation and business-centric vocabulary Start from the business level; model network assets, participants, and transactions Build applications that use business centric APIs to invoke transactions that create, update, and delete assets and transfer them between participants Assets, participants, and transactions are recorded on the Blockchain in the world state in registries Easily integrate Blockchain with existing business processes and systems of record 6

7 Extensive, familiar, and open development toolset composer-client composer-admin Data modelling JavaScript business logic Web playground Client libraries $ composer Editor support CLI utilities Code generation Integration 7

8 Alex Agency for Vehicle Standards Paul Buyer/Owner Debbie VDA Regulations Administrator B L O C K C H A I N Tommen Insurer Mike Arium Logistics Employee Vada Police

9 Alex Agency for Vehicle Standards Paul Buyer/Owner Debbie VDA Regulations Administrator B L O C K C H A I N Tommen Insurer Mike Arium Logistics Employee Vada Police

10 Mobile App Alex Agency for Vehicle Standards Paul Buyer/Owner Debbie VDA Regulations Administrator B L O C K C H A I N Tommen Insurer Mike Arium Logistics Employee Vada Police

11 Mobile App Alex Agency for Vehicle Standards Paul Buyer/Owner Debbie VDA Regulations Administrator B L O C K C H A I N Enterprise Integration Tools Tommen Insurer ERP IoT Mike Arium Logistics Employee Vada Police

12 Analytics Alex Agency for Vehicle Standards Mobile App Paul Buyer/Owner Business Rules Debbie VDA Regulations Administrator B L O C K C H A I N Enterprise Integration Tools Tommen Insurer ERP IoT Mike Arium Logistics Employee Vada Police

13 Links Hyperledger: Hyperledger Fabric: Hyperledger Composer: Cloud playground: 13

14 Community You can come and speak to us as well! Chat to us using Rocket.Chat at #fabric and #composer channels Ask questions on Stack Overflow hyperledger-fabric and hyperledger-composer tags 14

15 Thank you! Page 16