SourceURL:file:///media/john/disk-500G/备份/桌面/监控技术预研结果.doc
https://hyperledger.github.io/fabric-sdk-node/
https://github.com/hyperledger/fabric-sdk-node
The Hyperledger Fabric Client SDK makes it possible to use APIs to interact with a Hyperledger Fabric blockchain. This readme is directed towards a current or future contributor to this project, and gives an overview of setting up the project locally and running tests. For more information on the SDK, including features and an API reference, please visit the SDK documentation.
This project publishes the following npm packages:
fabric-ca-client - client for the optional component in Hyperledger Fabric, fabric-ca. The fabric-ca component allows applications to enroll Peers and application users to establish trusted identities on the blockchain network. It also provides support for pseudonymous transaction submissions with Transaction Certificates. If the target blockchain network is configured with standard Certificate Authorities for trust anchors, the application does not need to use this package.
fabric-common - encapsulates the common code used by all fabric-sdk-node packages supporting fine grain interactions with the Fabric network to send transaction invocations
fabric-network - This package encapsulates the APIs to connect to a Fabric network, submit transactions and perform queries against the ledger at a higher level of abstraction than through the fabric-common.
fabric-protos - This package encapsulates the protobuffers that are used to communicate over gRPC
@font-face{ font-family:"Times New Roman"; }@font-face{ font-family:"宋体"; }@font-face{ font-family:"Courier New"; }@font-face{ font-family:"Calibri"; }@font-face{ font-family:"文泉驿微米黑"; }@font-face{ font-family:"Segoe UI"; }@font-face{ font-family:"Consolas"; }@font-face{ font-family:"SimSun"; }p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-hyphenate:none; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; }p.p{ mso-style-name:"普通\(网站\)"; margin-top:5.0000pt; margin-right:0.0000pt; margin-bottom:5.0000pt; margin-left:0.0000pt; mso-margin-top-alt:auto; mso-margin-bottom-alt:auto; mso-hyphenate:none; mso-pagination:none; text-align:left; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:12.0000pt; }span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; }span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; }div.Section0{page:Section0;}
SourceURL:file:///media/john/disk-500G/备份/桌面/监控技术预研结果.doc
一、监控SDK测试
应用程序通过sdk和区块链网络进行交互,需要连接的节点包括排序节点、对等节点。
(一)SDK组成
名称 |
作用 |
备注 |
fabric-ca-client |
CA模块的客户端 |
|
fabric-common |
通用代码封装,工具模块 |
|
fabric-network |
网络连接,提交交易,执行查询比fabric-common提供的更高级 |
|
fabric-protos |
封装gRPC协议 |
|
参考文章:
https://www.jianshu.com/p/1224f504bf9e?appinstall=0
SDK接口,使用SDK完成对区块链网络运行概况的监控,需要用到系统链码,系统链码包如下五大类型。
系统链码名称 |
功能 |
备注 |
cscc |
配置管理 |
账本和链 GetChannels |
escc |
背书签名过程 |
|
lscc |
链码生命周期管理 |
GetChaincodes 链码
|
qscc |
账本和链码的信息查询 |
GetBlockByNumber 区块 GetChainInfo 链信息
|
vscc |
验证系统链码 |
|
(二)SDK接口测试
Sdk使用前需要准备以下材料:
(1) 连接配置文件
(2) 身份信息(证书,私钥)
注意事项:
调用时配置参数,自动发现为真,作为本地主机为假。
2.2版本的SDK去掉了queryInfo接口
@font-face{ font-family:"Times New Roman"; }@font-face{ font-family:"宋体"; }@font-face{ font-family:"Arial"; }@font-face{ font-family:"黑体"; }@font-face{ font-family:"Calibri"; }@font-face{ font-family:"文泉驿微米黑"; }@font-face{ font-family:"SimSun"; }@font-face{ font-family:"Segoe UI"; }p.MsoNormal{ mso-style-name:正文; mso-style-parent:""; margin:0pt; margin-bottom:.0001pt; mso-hyphenate:none; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; font-size:10.5000pt; mso-font-kerning:1.0000pt; }h1{ mso-style-name:"标题 1"; mso-style-next:正文; margin-top:17.0000pt; margin-bottom:16.5000pt; margin-left:0.0000pt; mso-para-margin-top:0.0000gd; mso-para-margin-bottom:0.0000gd; text-indent:0.0000pt; mso-hyphenate:none; page-break-after:avoid; mso-pagination:lines-together; text-align:justify; text-justify:inter-ideograph; mso-outline-level:1; line-height:240%; font-family:Calibri; mso-fareast-font-family:宋体; mso-bidi-font-family:'Times New Roman'; mso-ansi-font-weight:bold; font-size:22.0000pt; mso-font-kerning:22.0000pt; }h2{ mso-style-name:"标题 2"; mso-style-noshow:yes; mso-style-next:正文; margin-top:13.0000pt; margin-bottom:13.0000pt; margin-left:0.0000pt; mso-para-margin-top:0.0000gd; mso-para-margin-bottom:0.0000gd; text-indent:0.0000pt; mso-hyphenate:none; page-break-after:avoid; mso-pagination:lines-together; text-align:justify; text-justify:inter-ideograph; mso-outline-level:2; line-height:172%; font-family:Arial; mso-fareast-font-family:黑体; mso-bidi-font-family:'Times New Roman'; mso-ansi-font-weight:bold; font-size:16.0000pt; mso-font-kerning:1.0000pt; }span.msoIns{ mso-style-type:export-only; mso-style-name:""; text-decoration:underline; text-underline:single; color:blue; }span.msoDel{ mso-style-type:export-only; mso-style-name:""; text-decoration:line-through; color:red; }table.MsoNormalTable{ mso-style-name:普通表格; mso-style-parent:""; mso-style-noshow:yes; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-padding-alt:0.0000pt 5.4000pt 0.0000pt 5.4000pt; mso-para-margin:0pt; mso-para-margin-bottom:.0001pt; mso-pagination:widow-orphan; font-family:'Times New Roman'; font-size:10.0000pt; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400; }table.MsoTableGrid{ mso-style-name:网格型; mso-tstyle-rowband-size:0; mso-tstyle-colband-size:0; mso-padding-alt:0.0000pt 5.4000pt 0.0000pt 5.4000pt; mso-border-top-alt:0.5000pt solid windowtext; mso-border-left-alt:0.5000pt solid windowtext; mso-border-bottom-alt:0.5000pt solid windowtext; mso-border-right-alt:0.5000pt solid windowtext; mso-border-insideh:0.5000pt solid windowtext; mso-border-insidev:0.5000pt solid windowtext; mso-para-margin:0pt; mso-para-margin-bottom:.0001pt; mso-pagination:none; text-align:justify; text-justify:inter-ideograph; font-family:'Times New Roman'; font-size:10.0000pt; mso-ansi-language:#0400; mso-fareast-language:#0400; mso-bidi-language:#0400; }div.Section0{page:Section0;}
标签:family,fabric,pt,简介,style,mso,font,margin,sdk From: https://www.cnblogs.com/jiftle/p/16945730.html