Top Banner
© 2016 IBM Corporation Bluemix上的区块链
16

Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

Sep 08, 2019

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

© 2016 IBM Corporation

Bluemix上的区块链服务

Page 2: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

2Page© 2016 IBM Corporation

Agenda

– Bluemix上的区块链服务

– Bluemix上的区块链服务的创建

– Bluemix上的区块链服务的功能

Page 3: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

3Page© 2016 IBM Corporation

Bluemix上的区块链服务– 快速得到一个区块链网络 (Hyperledger Fabric v0.6.1)

– 快速部署智能合约示例,理解区块链的概念

– 编写自己的智能合约和应用,部署和联调– https://console.ng.bluemix.net/catalog/services/blockchain/

Page 4: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

4Page© 2016 IBM Corporation

Bluemix上的区块链服务的位置

– 注册Bluemix账户并登录

– “应用程序服务”目录中找到Blockchain服务

Page 5: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

5Page© 2016 IBM Corporation

Bluemix上的区块链服务的创建

– 输入服务名称

– 可选免费计划

– 创建服务

Page 6: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

6Page© 2016 IBM Corporation

Bluemix上的区块链服务的主页

– “启动仪表板”来管理区块链

Page 7: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

7Page© 2016 IBM Corporation

Bluemix上的区块链服务的服务凭证

– 区块链服务的API

Endpoint

– 区块链服务的用户认证信息

Page 8: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

8Page© 2016 IBM Corporation

Bluemix上的区块链服务被其他应用所引用

– 没有被引用 – 被CarLeasingYiChe (a Node.js App)引用

Page 9: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

9Page© 2016 IBM Corporation

Bluemix上的区块链服务的仪表板

– 4VP+1CA的区块链网路

• 查看网络状态

• 得到API

Endpoint

• 启停服务

– 有智能合约部署后,可以查看智能合约的日志

Page 10: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

10Page© 2016 IBM Corporation

Bluemix上的区块链服务的智能合约示例

– 3个开箱即用的智能合约示例

• 先部署

• 再执行交易和查询

– 查看• 结果

• 相应的REST

API调用

Page 11: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

11Page© 2016 IBM Corporation

Bluemix上的区块链服务的区块链统计– 区块链上各种交易的统计信息

Page 12: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

12Page© 2016 IBM Corporation

Bluemix上的区块链服务的API列表

– 提供了区块链的REST API列表

• 可以直接对API进行在线测试

Page 13: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

13Page© 2016 IBM Corporation

Bluemix上的区块链服务的日志

– 查看CA和VP的日志

Page 14: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

14Page© 2016 IBM Corporation

Bluemix上的区块链服务的状态跟踪

– 显示服务本身的在线状态记录

Page 15: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

15Page© 2016 IBM Corporation

Bluemix上的区块链服务的支持

– 一些有用的链接

Page 16: Hyperledger Fabric based Application Development · IBM Bluemix Cloud Foundry OpenWhisk Watson Internet of Things DevOps Business Rules IBM WebSphere Application 81uemix IBM Powering

© 2016 IBM Corporation

Thank you!