首页 > 其他分享 >fabric sdk简介

fabric sdk简介

时间:2022-12-02 21:56:38浏览次数:64  
标签:family fabric pt 简介 style mso font margin sdk

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

相关文章

  • Isaac SDK & Sim 环境
    Isaac是NVIDIA开放的机器人平台。其IsaacSDK包括以下内容:IsaacApps:各种机器人应用示例,突出Engine特性或专注GEM功能IsaacEngine:一个软件框架,可轻松构建......
  • SA204GrA钢板期货订轧、SA204GrA力学性能及钢板简介
    1、SA204GrA钢板简介:SA204GrA钢板是压力容器用钼合金钢板,SA204系列钢板共有四个级别,分别是:SA204GrA、SA204GrB、SA204GrC、SA204GrE四个级别。执行美标ASMEA20/A20M标准。......
  • Qwt开发笔记(一):Qwt简介、下载以及基础demo工程模板
    前言  QWT开发笔记系列整理集合,这是目前使用最为广泛的Qt图表类(Qt的QWidget代码方向只有QtCharts,Qwt,QCustomPlot),使用多年,系统性的整理,本系列旨在系统解说并逐步更新其各......
  • Qwt开发笔记(一):Qwt简介、下载以及基础demo工程模板
    前言  QWT开发笔记系列整理集合,这是目前使用最为广泛的Qt图表类(Qt的QWidget代码方向只有QtCharts,Qwt,QCustomPlot),使用多年,系统性的整理,本系列旨在系统解说并逐步更新......
  • ArcObjects SDK开发 009 Map-Layer的结构
    1、Map-Layer主干结构一个mxd文件可以包含多个地图,但我们常用的大部分都是包含一个地图。一个地图可以包含多个图层组和图层,而图层指向的则是实际数据。图层可以控制数据......
  • 雪花算法简介
    雪花算法背景需要选择合适的方案去应对数据规模的增长,以应对逐渐增长的访问压力和数据量。数据库的扩展方式主要包括:业务分库、主从复制,数据库分表。数据库分表将不同......
  • SpringMVC01(SpringMVC的简介+入门案例)
    一、大纲二、springMVC的开发流程三、SpringMVC的操作"思路"3.1、对SpringMVC(n+1)代码块图片中的"config包"下的内容一个springMVC只要配置一次,"controller......
  • Android studio 安装过程中SDK的环境配置问题
    SDK的环境配置问题在之前的某一篇中,我也提到过在Ecplise里面的SDK的环境配置,二者确实不太一样!一、系统环境变量新增一个变量名为:ANDROID_HOME变量值为:浏览到下载SDK的......
  • CSS简介
    CSS(Cascading Style Sheet,层叠样式表)定义如何显示HTML元素。当浏览器读到一个样式表,它就会按照这个样式表来对文档进行格式化(渲染)。CSS的语法规范使用HTML时,要遵从一......
  • ShareSDK for Unity
    本文档使用Unity2019进行演示下载unitypackage从Mob的github地址下载ShareSDK.unitypackage:​​Git地址​​,如下图所示)![image.png]//download.sdk.mob.com/2022/06/22/15/......