Hyperledger Fabric SDK use case 1
///////////////////////////////////////////////////////////////////////
:End2endAndBackAgainIT
1.CreateChaincodID
ChaincodeID.newBuilder()....
2.check config
2.1 reset config
2.1.1 Use reflection to reset the static variable config as null
2.1.2 Build new config
2.2 Customize Config of fabric sdk
2.3 GetIntegrationTestsSampleOrgs
2.3.1 orgname
2.3.2 orgmspid
2.3.3 users--list
2.3.4 peerLocations--list
2.3.5 ordererlocations--list
2.3.6 eventHubLocations--list
2.3.7 domainName
2.3.8 peerAdmin
2.3.9 caLocation
2.3.10 Admin User
2.3.11 ca properties
2.3.12 create HFCAClient with ca location for every org
2.4 Setup
2.4.1 Store for persistence
2.4.2 setup peerAdmin,user,admin user
2.5 run fabirc test
2.5.1 new HFClient
2.5.2 set cryptosuite to HFClient
2.5.3 get one org from org list
2.5.4 reconstructchannel
2.5.4.1 channel name,HFClient,org
2.5.4.2 HFClient setUserContext
2.5.4.3 set client TLSProperties with client cert bytes
2.5.4.4 set client TLSProperties with client key bytes
2.5.4.5 use HFClient to new channel with name
2.5.4.6 use HFClient to new orderer with name, location and properties including sert bytes & key bytes
2.5.4.7 add all orderer of org into channel
2.5.4.8 add all peer of org into channel with peer name, peer location, peer properties,
2.5.4.9 for 1.0 add all event hub into channel with event hub name,location
2.5.4.10 for 1.1 peers should hava all roles,Do some sanity checks that they domainName
2.5.5 run channel with channel name & org with orderer,peers,users
2.5.5.1 set user context to HFClient
2.5.5.2 queryChaincodeForExpectedValue
2.5.5.2.1 newQueryProposalRequest from HFClient to get QueryByChaincodeRequest
2.5.5.2.2 use QueryByChaincodeRequest set args,Fcn,chaincodeID
2.5.5.2.3 use to channel to query proposals with QueryByChaincodeRequest
2.5.5.2.4 check every proposal response with isVerified,getpeer,payload,message,
2.5.5.3 moveAmount for v1.1
2.5.5.3.1 new newTransactionProposalRequest from HFClient
2.5.5.3.2 set TransactionProposalRequest with chaincodeID,Fcn,Args,ProposalWaitTime
2.5.5.3.3 set TransactionProposalRequest for user context
2.5.5.3.4 call HFClient to send TransactionProposalRequest
2.5.5.3.5 retrieved all ProposalResponse, check every one with transactionID,peer,status
2.5.5.3.6 if all is good, send transaction to orderer with HFClient
Hyperledger Fabric SDK use case 1的更多相关文章
- HyperLedger/Fabric SDK使用Docker容器镜像快速部署上线
HyperLedger/Fabric SDK Docker Image 该项目在github上的地址是:https://github.com/aberic/fabric-sdk-container ( ...
- hyperledger fabric超级账本java sdk样例e2e代码流程分析
一 checkConfig Before 1.1 private static final TestConfig testConfig = TestConfig.getConfig() ...
- 使用Node.JS访问Hyperledger Fabric的gRPC服务
在即将正式发布的Hyperledger Fabric SDK 1.0中,Hyperledger Fabric通过gRPC提供服务接口以取代现有的REST API.本文介绍了如何使用Node.JS访问H ...
- Hyperledger Fabric 1.0 从零开始(十二)——fabric-sdk-java应用【补充】
在 Hyperledger Fabric 1.0 从零开始(十二)--fabric-sdk-java应用 中我已经把官方sdk具体改良办法,即使用办法发出来了,所有的类及文件都是完整的,在文章的结尾也 ...
- Hyperledger Fabric 1.0 从零开始(十二)——fabric-sdk-java应用
Hyperledger Fabric 1.0 从零开始(十)--智能合约 Hyperledger Fabric 1.0 从零开始(十一)--CouchDB 上述两章,最近网上各路大神文章云集,方案多多 ...
- Hyperledger Fabric 实战(十): Fabric node SDK 样例 - 投票DAPP
Fabric node SDK 样例 - 投票DAPP 参考 fabric-samples 下的 fabcar 加以实现 目录结构 . ├── app │ ├── controllers │ │ └─ ...
- Hyperledger Fabric Node SDK和应用开发
Hyperledger Fabric 提供了多种语言的SDK版本,其中提出比较早.比较稳定而全面的是Node.js版本的SDK. 前面提到的fabric示例(如first-network和e2e-cl ...
- HyperLedger Fabric基于zookeeper和kafka集群配置解析
简述 在搭建HyperLedger Fabric环境的过程中,我们会用到一个configtx.yaml文件(可参考Hyperledger Fabric 1.0 从零开始(八)--Fabric多节点集群 ...
- 区块链Hyperledger Fabric 学习记录(一)开发环境搭建(ubuntu16.04/ubuntu18.04)
目录 Fabric开发环境搭建 更新说明 教程环境及软件版本 Docker 安装Docker 配置用户组 配置Aliyun Docker加速器 安装docker-compose Go 下载源码 安装源 ...
随机推荐
- 002 android studio 常用设置
1.改变字体 file--->setting --->font--->size 2.更改最小安卓版本 在project目录下,app下的build.gradle中修改 注意:buil ...
- ui-grid使用详解
HTML <pre name="code" class="html"><!--ui-grid css--> <link rel=& ...
- POJ_2010 Moo University - Financial Aid 【堆预处理】
一.题面 POJ2010 二.分析 堆预处理 首先可以考虑吧随便取一个点,判断两侧的最小的总费用是多少,然后相加判断是否满足条件.如果直接判断会超时,所以需要用大根堆预处理一下.先看从分数最小的往最大 ...
- 找出数组中的最小值(es5/es6)
1.命令式编程,只需要迭代数组,检查当前最小值是否大于数组元素,如果是更新最小值即可. var s = [2,3,4,5,6,7,8]; for(var i=0,m=s.length;i<m;i ...
- 鼠标拖动div,div跟随鼠标移动效果
<div id="boxDiv" style='width:20px;height:20px;position:absolute;background:red;'> ...
- highcharts去掉x轴,y轴,轴线以及刻度
var chart = null; $.getJSON('https://data.jianshukeji.com/jsonp?filename=json/usdeur.json&callba ...
- [转] 完全卸载删除gitlab
[From] https://yq.aliyun.com/articles/114619 完全卸载删除gitlab 1.停止gitlab gitlab-ctl stop 2.卸载gitlab(注意这里 ...
- my33_内存满导致mysqld被kill
监控报警发现MGR的一个节点故障,查看时发现LVS已经发生切换,LVS切到了MGR新的写节点上了,排查原因 /var/log/message Mar :: db10 kernel: crond inv ...
- C#中if和#if区别
if的作用是程序流控制,会直接编译.执行.#if是对编译器的指令,其作用是告诉编译器,有些语句行希望在条件满足时才编译. --------------------------------------- ...
- 游戏源码--Unity开源Moba游戏-服务器-客户端完整V1.0
http://www.manew.com/thread-111658-1-1.html