introduction to hyperledger composer · arium logistics employee debbie vda regulations...

15
1 Page Introduction to Hyperledger Composer Simon Stone, Maintainer, IBM @mrsimonstone

Upload: phungnhan

Post on 30-Nov-2018

228 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

1Page

Introduction toHyperledger Composer

Simon Stone, Maintainer, IBM@mrsimonstone

Page 2: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

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

Page 3: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

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

Page 4: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

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 Value

CAR_1 decf546257be19758776 …

CAR_2 06aad4d65205cedb0633 ...

CAR_3 33eee744edb6688bea68 …

Page 5: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

5

Smart contracts/chaincode today

• Too much boilerplate code, not enough focus on the important business logic.

Business logic

Data validation

Access control

RPC interface

Error handling

Page 6: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

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

Page 7: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

7

Extensive, familiar, and open development toolset

CLI utilities

Data modelling JavaScript

business logicWeb playground

Editor support Integration

$ composer

Client libraries

composer-client

composer-admin

Code generation

Page 8: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

Mike

Arium Logistics

Employee

Debbie

VDA Regulations

Administrator

Paul

Buyer/Owner

Tommen

Insurer

Vada

Police

Alex

Agency for Vehicle

Standards

B L O C K C H A I N

Page 9: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

Tommen

Insurer

Vada

Police

Alex

Agency for Vehicle

Standards

Mike

Arium Logistics

Employee

Debbie

VDA Regulations

Administrator

Paul

Buyer/Owner

B L O C K C H A I N

Page 10: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

Tommen

Insurer

Vada

Police

Alex

Agency for Vehicle

Standards

Mike

Arium Logistics

Employee

Debbie

VDA Regulations

Administrator

Paul

Buyer/Owner

Mobile

App

B L O C K C H A I N

Page 11: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

Tommen

Insurer

Vada

Police

Alex

Agency for Vehicle

Standards

Mike

Arium Logistics

Employee

Debbie

VDA Regulations

Administrator

Paul

Buyer/Owner

Mobile

App

Enterprise

Integration

Tools

ERP

IoT

B L O C K C H A I N

Page 12: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

Tommen

Insurer

Vada

Police

Alex

Agency for Vehicle

Standards

Mike

Arium Logistics

Employee

Debbie

VDA Regulations

Administrator

Paul

Buyer/Owner

Business

Rules

Analytics

Mobile

App

Enterprise

Integration

Tools

ERP

IoT

B L O C K C H A I N

Page 13: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

13

Links

• Hyperledger: https://www.hyperledger.org/

• Hyperledger Fabric: https://hyperledger-fabric.readthedocs.io/

• Hyperledger Composer: https://hyperledger.github.io/composer/

• Cloud playground: https://composer-playground.mybluemix.net/

Page 14: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

14

Community

• You can come and speak to us as well!

• Chat to us using Rocket.Chat at https://chat.hyperledger.org

– #fabric and #composer channels

• Ask questions on Stack Overflow

– hyperledger-fabric and hyperledger-composer tags

Page 15: Introduction to Hyperledger Composer · Arium Logistics Employee Debbie VDA Regulations Administrator Paul Buyer/Owner Tommen Insurer Vada Police Alex Agency for Vehicle Standards

16Page

Thank you!