检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
区块链中间件接口 概述 链代码调用(公测) 链代码管理(公测) 分布式身份(公测) 可信数据交换(公测) 父主题: Hyperledger Fabric增强版管理
签发可验证凭证 功能介绍 签发可验证凭证,签发时间默认为当前时间。 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API Explorer可以自动生成SDK代码示例,并提供SDK代码示例调试功能。 URI POST /v1/identity/issue-vc
单击卡片上的“获取客户端配置”,勾选“Peer节点证书”。选择指定节点组织,勾选“用户证书”。 单击“下载”,下载相应组织的用户证书。 解压证书,其中msp文件夹中,keystore文件夹存储的是组织用户私钥,signcerts文件夹存储的是用户证书(公钥)。 响应消息 当opmethod
Number 区块数量 time String 时间 表5 bpm 参数 参数类型 描述 block Number 区块数量 time String 时间 表6 tph 参数 参数类型 描述 tx Number 交易数量 time String 时间 表7 tpm 参数 参数类型 描述 tx
String 错误码 error_message String 错误描述 error_msg String 错误描述 请求示例 POST https://192.168.0.90:30603/v2/agent/apis/chaincode/report { "chaincode_name"
String 加密方法,目前固定为SW cert 是 String 用户证书,每行末尾均需要增加显式换行符\n sk 是 String 用户私钥,每行末尾均需要增加显式换行符\n timestamp 是 String 时间戳 did 是 String 分布式身份标识 service 否 Array
String 加密方法,目前固定为SW cert 是 String 用户证书,每行末尾均需要增加显式换行符\n sk 是 String 用户私钥,每行末尾均需要增加显式换行符\n timestamp 是 String 时间戳 vcIndex 是 String 凭证索引 owner 是 String
expire_time Long 失效时间 状态码: 400 表3 响应Body参数 参数 参数类型 描述 error_code String 错误码 error_message String 错误描述 error_msg String 错误描述 请求示例 GET https://192.168.0
功能介绍 分布式身份注册方法。在使用该方法前需要先使用openssl工具生成每个用户的私钥和被fabric组织根证书签名的证书(或通过BCS区块链管理界面下载用户证书)。注册时需声明可提供的服务列表。 调试 您可以在API Explorer中调试该接口,支持自动认证鉴权。API
String 加密方法,目前固定为SW cert 是 String 用户证书,每行末尾均需要增加显式换行符\n sk 是 String 用户私钥,每行末尾均需要增加显式换行符\n timestamp 是 String 时间戳 vcIndex 是 String 凭证索引 响应参数 状态码:
String 加密方法,目前固定为SW cert 是 String 用户证书,每行末尾均需要增加显式换行符\n sk 是 String 用户私钥,每行末尾均需要增加显式换行符\n timestamp 是 String 时间戳 did 是 String 分布式身份标识 响应参数 状态码: 200
String 错误描述 请求示例 默认模式请求 GET https://192.168.0.90:30603/v2/agent/apis/channel/channel/blocks 分页模式请求 GET https://192.168.0.90:30603/v2/agent
通道id cryptoMethod 是 String 加密方法,目前固定为SW cert 是 String 证书 sk 是 String 私钥 timestamp 是 String 时间戳 consumer 是 String 订单申请者身份标识 orderSeq 是 String 订单序列号
通道id cryptoMethod 是 String 加密方法,目前固定为SW cert 是 String 证书 sk 是 String 私钥 timestamp 是 String 时间戳 consumer 是 String 订单申请者身份标识 orderSeq 是 String 订单序列号
String 错误描述 请求示例 默认模式请求 GET https://192.168.0.90:30603/v2/agent/apis/channel/channel/transactions 分页模式请求 GET https://192.168.0.90:30603/v2/ag
确保其是否有权限和资质开展后续业务。 使用方式 分布式身份中间件是部署在用户侧的一套微服务,简化用户调用区块链相关接口的复杂操作。因此接口调用时需要传入用户私钥和被fabric组织根证书签名的证书。 获取用户私钥和证书的方式有两种,BCS区块链管理界面下载和使用openssl工
_info->agent_portal_addrs字段的值获取,请求示例:https://192.168.0.90:30603/v2/agent/apis/tokens。 表1 概览 类型 描述 所属中间件 端口 链代码调用(公测) 通过标准接口的方式访问区块链系统,完成链代码方法(invoke和query)的调用。
transaction_id String 交易id chaincode_name String 链码名称 timestamp String 时间戳 channel_name String 通道名称 creator_msp String 身份信息 chaincode_version String
String 错误码 error_message String 错误描述 error_msg String 错误描述 请求示例 GET https://192.168.0.90:30603/v2/agent/apis/channel/channel/transactions/count
通道id cryptoMethod 是 String 加密方法,目前固定为SW cert 是 String 证书 sk 是 String 私钥 timestamp 是 String 时间戳 provider 是 String 数据集提供者身份标识 productID 是 String 数据产品id