检测到您已登录华为云国际站账号,为了您更好的体验,建议您访问国际站服务网站 https://www.huaweicloud.com/intl/zh-cn
不再显示此消息
/{blockchain_id}/status bcs:fabricInstance:getStatus √ √ 查询实例信息 GET /v2/{project_id}/blockchains/{blockchain_id} bcs:fabricInstance:getDetail
type Chaincode interface { Init(stub ChaincodeStubInterface) pb.Response Invoke(stub ChaincodeStubInterface) pb.Response } 2.2风格(使用
}/huaweicloudchain/instances/{instance_id}/chain bcs:huaweiCloudChainChain:getChain - √ √ 查询区块列表 GET /v2/{project_id}/huaweicloudchain/instances
getChainConfig(String chainId) public Block buildGenesisBlock(String chainId, ChainConfig chainConfig) public void addChainNode(String name,
Chaincode implementation public class SimpleChaincode extends ChaincodeBase { private static Log logger = LogFactory.getLog(SimpleChaincode.class
]visitInterface Fail,/api/v2/projects/xxx/clusters response state not OK,code:500 CCE服务异常 CreateBlockchainService]DeleteKubeResource failed,
String 操作详情 sub_steps Map<String,SubDetail> 子操作, "map[string][SubDetail] key:子操作名 value:子操作结果" serial_num Long 序列号 表9 SubDetail 参数 参数类型 描述 substep_name
400 BCS.4001109 Operation failed. Failed to obtain the peer organization status. Try again later. 操作失败,获取节点组织状态失败,请稍后再试 稍后重试。
400 BCS.4001109 Operation failed. Failed to obtain the peer organization status. Try again later. 操作失败,获取节点组织状态失败,请稍后再试 稍后重试。
发送balanceinfo到交易Chaincode。
2.1.0.6.41 <dependency> <groupId>com.huawei.wienerchain</groupId> <artifactId>wienerchain-java-sdk</artifactId> <version>2.1.0.6.41
>> Success 表4 ShowTransactionDetailRes 参数 参数类型 描述 read_set Map<String,Array<KVRead>> 读集 "map[string][]KVRead key:chaincode value:键值对数组" write_set
onChainStore 否 String 数据密文是否在链上存储,可设置为“true”或“false”,默认为“false”。
返回值 类型 说明 WienerChainNode WienerChainNode对象。 获取交易ID 交易ID作为交易的标识,是交易哈希的十六进制字符串形式。以下获得交易ID的方法是通过计算交易哈希,然后转化为十六进制字符串获得的。
"bcs:huaweiCloudChain*:create*", "bcs:huaweiCloudChain*:install", "bcs:huaweiCloudChain*:download*"
https://{{domain}}/v1/e2ee/org/encrypt { "message" : "hello, this test message", "target_org_ids" : [ "organization2-kdkvs88qk" ], "up_to_chain
docker build -t tongtaidemotest:byl1 . docker save tongtaidemotest:byl1>tongtaitest.tar 请确保本地有euleros:2.2.5镜像,否则将会打包失败。 上传镜像。
同态加密链代码IDChaincode.go:在同态加密的场景下,用户在部署应用前需要下载安装并且实例化此链代码至区块链实例。 Chaincode库:提供零知识证明功能,用于在密文条件下,校验用户交易的证明,并生成交易后的数据,使背书者无需解密用户交易的数据,达到余额范围的判断。
同态加密 概述 同态加密库的使用 AHE Lib库接口 Chaincode库接口 IDChaincode 链代码示例 应用示例 同态加密交易验证Demo 父主题: 附录
request InstallChaincodeRequest []*txn.TransactionPropos lResponse, string, error InstallChaincode 安装链码的接口,安装链码到区块链中。