hyperledger

Hyperledger Fabric Java SDK Use GRPCS for peer and orderer connections

て烟熏妆下的殇ゞ 提交于 2021-02-19 07:00:35
问题 I have a Spring Boot project using the fabric-java-sdk pointing to the BYFN network that I've stood up locally. The BYFN network does not have a CA container. I am trying to connect to the peer and orderer with grpcs since tls is enabled on my local BYFN network. Grpc fails. However, it appears that it doesn't like the CN or some other field in the cert presented by the peer during the initial TLS handshake. I think it doesn't like that I am pointing to localhost for the grpcs url, but the CN

Sawtooth Transaction error: “Tried to set unauthorized address”

两盒软妹~` 提交于 2021-02-19 05:28:19
问题 I am trying to write my custom Transaction processor. I am writing for simple Account class class Account: def __init__(self, name, ac_number, balance): self.name = name self.ac_number = ac_number self.balance = balance My TP is working fine for a single account. Now I want to improve it for multiple accounts. To get a different state for each account number I have changed _'_get_account_address_' function. I am following @danintel 's Cookiejar and XO_python projects. I am following xo code

Sawtooth Transaction error: “Tried to set unauthorized address”

跟風遠走 提交于 2021-02-19 05:28:10
问题 I am trying to write my custom Transaction processor. I am writing for simple Account class class Account: def __init__(self, name, ac_number, balance): self.name = name self.ac_number = ac_number self.balance = balance My TP is working fine for a single account. Now I want to improve it for multiple accounts. To get a different state for each account number I have changed _'_get_account_address_' function. I am following @danintel 's Cookiejar and XO_python projects. I am following xo code

The Name of Hyperledger Fabric Test Network is not detected by an Application given in the samples

假如想象 提交于 2021-02-15 07:43:45
问题 I just reinstalled Fabric Samples v2.2.0 from Hyperledger Fabric repository according to the documentation. But when I try to run asset-transfer-basic application located in fabric-samples/asset-transfer-basic/application-javascript directory by running node app.js the wallet is created and an admin and user is registered. But then it tries to invoke the function as given in app.js and shows this error error: [Transaction]: Error: No valid responses from any peers. Errors: peer=peer0.org1

区块链应用,成就不一样的保险行业

梦想与她 提交于 2021-02-14 18:56:05
当发生一起轻微交通事故的时候, 往往最令我们头疼的 是要与保险公司、清查人员和其他驾驶员交涉。 因为这样会花费我们大量的时间和精力。 即使事情进展得相对顺利, 仍然会严重打乱我们的日程安排。 如果您是一位开发人员, 那么或许您可以扭转乾坤, 不仅可以改进自己的体验, 还可以改进全球数百万同样遭遇的人的体验, 实际改进保险行业。 区块链给我们带来了这样的机会。 它为保险业提供了全新的交换数据、 处理索赔和预防欺诈的方式。 它可以汇集来自保险公司、警察、修理厂等的处理信息 , 创建一种宝贵的新型保险管理资产, 让保险行业有机会提高其运营效率, 降低事务处理成本, 增强客户体验,提高数据质量, 并增加各方之间的信任。 今天这个 Code Pattern,我们将展示如何使用 Hyperledger Fabric 实现一个基于 Web 的区块链应用程序,以方便保险销售和理赔。该应用程序将有 4 个参与者或对等节点: Insurance:为产品提供保险并负责处理索赔的公司 Police:负责核查事故或被盗索赔 Repair shop:负责修理产品 Shop:向用户销售产品 相关组件介绍: Hyperledger Fabric v1.0 即刻点击 “ 阅读原文 ” get 完整文章,获得免费开发代码,还有精彩的视频演示哦~ 来源: oschina 链接: https://my.oschina

超级账本HyperLedger:Fabric nodejs SDK的使用(附视频讲解)

自古美人都是妖i 提交于 2021-02-13 07:34:29
作者: 李佶澳 转载请保留: 原文地址 发布时间:2018/04/25 11:11:00 说明 准备合适的node版本 用npm管理依赖包 Example 参考 说明 这是“网易云课堂 IT技术快速入门学院 ”使用的素材。 操作、配置文件和代码讲解视频在 网易云课堂《HyperLeger Fabric进阶实战课》第五章 中。 当前(2018-04-25 11:16:23)fabric的SDK只有java和node是正式的,他倆的文档也是最丰富的。当前支持的node版本是v8.9.0~v9.0,v9.0以上版本不支持(2018-07-15 14:11:01)。 Hyperledger Fabric SDK for node.js 准备合适的node版本 当前支持的node版本是v8.9.0~v9.0,v9.0以上版本不支持(2018-07-15 14:11:01)。 在mac上可以用brew安装node8: $ brew install node@8 $ echo 'export PATH="/usr/local/opt/node@8/bin:$PATH"' >> ~/.bash_profile $ source ~/.bash_profile $ node --version v8.11.3 或者直接下载安装: nodejs download 用npm管理依赖包

Hyperledger fabric on AWS, peers get crash after anchor peer update

亡梦爱人 提交于 2021-02-11 12:47:26
问题 I have deployed hyperledger fabric on aws ec2 instances. peer0.sales.billerxchange.com (ec2 instance 1) peer1.sales.billerxchange.com (ec2 instance 2) peer0.employee.billerxchange.com (ec2 instance 3) peer1.employee.billerxchange.com (ec2 instance 4) ca.sales.billerxchange.com (ec2 instance 5) ca.employee.billerxchange.com (ec2 instance 6) orderer.billerxchange.com (ec2 instance 7) all peers,ca and orderer are deployed on seperate instances and managed by docker swarm and deployed on docker

How do I notify the client application when a chaincode is invoked?

前提是你 提交于 2021-02-10 07:53:22
问题 When a chaincode is invoked, is there a way to call a REST API (external) so that the client application can be notified on the new transaction. Apart from REST, is there any other option? 回答1: It's better to use events https://github.com/hyperledger/fabric/blob/master/docs/protocol-spec.md#35-events Validating peers and chaincodes can emit events on the network that applications may listen for and take actions on. There is a set of pre-defined events, and chaincodes can generate custom

Can I use the public/private key generated by the MSP in Hyperledger Fabric v1.0 for encrypting/decrypting data?

南笙酒味 提交于 2021-02-07 07:36:35
问题 In Hyperledger Fabric v1.0, a user can be registered and enrolled in the blockchain network through the MSP (member services provider). The user is given a public key (in the certificate) and a private key after registration and enrollment. The way I understood it, the private key is used by the invoker to sign the transaction, while the public key is used by the peers to verify the signer. Can I use the same private and public key to encrypt (using the public key) and decrypt (using the

Error cryptogen tool in Hyperledger Fabric

為{幸葍}努か 提交于 2021-02-07 07:35:40
问题 I am attempting to install and run Hyperledger Fabric on OSX. Installation seems to have gone well. However, when I run the cryptogen tool I am getting the following warnings: Apples-MacBook-Pro:e2e mycomputer$ ./../../$os_arch/bin/cryptogen generate --config=./crypto-config.yaml org1.example.com 2017-04-27 15:46:27.940 PDT [bccsp] GetDefault -> WARN 001 Before using BCCSP, please call InitFactories(). Falling back to bootBCCSP. 2017-04-27 15:46:27.963 PDT [bccsp] GetDefault -> WARN 002