hyperledger

How to prevent third party to seeing the data on same channel in Hyperledger Fabric?

為{幸葍}努か 提交于 2019-12-24 20:54:32
问题 So basically in Hyperledger Fabric the third party information provider have to be a part of the channel and once they become the part of the channel they get to see all the information on the channel which can be data security breach. Is there a way we can prevent them seeing the whole data but still give us the required information. example - Market data provider for a trading system when two banks are trading each other do they need to share that trade information with the market data

Attempt to launch Hyperledger Composer app using npm start gives “Cannot find name %participant%” error

家住魔仙堡 提交于 2019-12-24 19:17:51
问题 I'm following the Developer Tutorial for creating a Hyperledger Composer solution over at https://hyperledger.github.io/, and I got all the way to the end without a hitch until running into this wall. For the final step of running the app and webpacking it with Angular ( npm start ), I'm running into the following Cannot find name errors, triggered by inline.bundle.js . After digging around, I discovered that all these offending variables had something in common — they were defined in their

超级账本Fabric Raft多机集群部署教程

核能气质少年 提交于 2019-12-24 19:03:24
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> Raft是Hyperledger Fabric 1.4.1中新增的排序服务模块,这个教程将介绍如何部署一个基于Raft排序服务的多机Fabric网络。 相关教程推荐: Hyperledger Fabric Java开发详解 Hyperledger Fabric Node.JS开发详解 1、用Raft排序服务启动byfn示例 BYFN是学习Hyperledger Fabric的一个很好的例子:它包含了Fabric网络的所有元素,并且在byfn.sh中完整表现出来。当我们不加任何参数运行这个脚本时,它将启动一个包含2个机构、4个peer和1个orderer(使用solo排序)的Fabric网络。byfn.sh的参数 -o 用来指定排序服务的类型: ./byfn.sh up -o <kafka | etcdraft> 最新的BYFN网络设计中包含了5个orderer的密码学资料。如果使用Solo或Kafka排序服务,将值运行第一个Orderer(参见docker-compose-cli.yaml中的定义)。 当我们指定raft作为排序服务时的一个区别之处在于,使用configtxgen生成创世区块我们需要指定configtx.yaml中的SampleMultiNodeEtcdRaft配置端。其他的操作都保持不变。

peer endorsement policy not working hyperledger fabric

情到浓时终转凉″ 提交于 2019-12-24 15:09:10
问题 I am trying to enforce simple endorsement policy for 2 org network. Here is my crypto-config.yaml OrdererOrgs: - Name: Orderer Domain: example.com Specs: - Hostname: orderer PeerOrgs: - Name: Org1 Domain: org1.example.com EnableNodeOUs: true # CA: # OrganizationalUnit: peer Template: Count: 1 Users: Count: 1 - Name: Org2 Domain: org2.example.com EnableNodeOUs: true # CA: # OrganizationalUnit: peer Template: Count: 1 Users: Count: 1 And i can see OU as peer in both peers. peer0.org2.example

How to get chaincode to read from api's outside of the Hyperledger fabric blockchain

空扰寡人 提交于 2019-12-24 09:58:03
问题 I'm wondering how you can get a hyperledger fabric smart contract to read from external API's ? A service called oraclize (http://www.oraclize.it/) is used to do this operation in Ethereum blockchains - Is there anything similar for hyperledger fabric smart contracts or any workarounds? 回答1: In Hyperledger Fabric - smart contracts (the chaincode), could be implemented at the moment with either golang or Java, both of which are Turing complete and provides you with reach set of libraries and

How to change channel policy in Hyperledger Fabric

扶醉桌前 提交于 2019-12-24 09:22:57
问题 I have created network using Hyperledger Farbic. Crypto - certificates was created with configtxgen tool, So, i created channel tx with: configtxgen -profile SampleChannel -outputCreateChannelTx ./config/SampleChannel.tx -channelID SampleChannel So, by default Admins "policies": { "Admins": { "mod_policy": "Admins", "policy": { "type": 3, "value": { "rule": "MAJORITY", "sub_policy": "Admins" } }, "version": "0" } How can I change mod_policy to "policies": { "Admins": { "mod_policy": "Admins",

Roles (read+write) in hyperledger

人盡茶涼 提交于 2019-12-24 08:01:05
问题 Is it possible to allow for someone in hyperledger rights only to read, and to others read+write? So, can you specify different roles for users? 回答1: I'm going to answer the question based on Hyperledger Fabric v1.0.0. The short answer is yes. There are a couple of areas to discuss: 1) Ability to send (broadcast) and receive (deliver) transactions to/from the ordering service. As you know, in order for transactions to make it to the ledger, they must go through an ordering service. An

Hyperledger Composer Error Identity has not been registered once issued

假装没事ソ 提交于 2019-12-24 07:19:11
问题 I have been following this Tutorial and I am able to complete it. I issue a new identity, to an existing participant and I create a business card for this identity with the following command: composer identity issue --card admin@tutorial-network -f usr001@tutorial-network.card -u usr001 -a "resource:org.acme.biznet.Trader#usr001" -x true Then, I import that business card via POST /wallet/import and I am able to call different REST API operations. After that, I stop the composer-rest-server

Decrypting the payload in hyperledger

北战南征 提交于 2019-12-24 06:44:33
问题 I am currently using Developer Environment for Hyperledger Fabrics. I tried using GET to retrieve block info and it does give me a response. However, in the response, there's one component called payload, and it's in a unreadable format. Is there a way to make it readable/decrypt it? For instance, in bluemix, when you do init of party "a" and party "b", the payload shows inita100b100. Firstly, I did this transaction/REST request { "jsonrpc": "2.0", "method": "invoke", "params": { "type": 1,

Decrypting the payload in hyperledger

假如想象 提交于 2019-12-24 06:44:19
问题 I am currently using Developer Environment for Hyperledger Fabrics. I tried using GET to retrieve block info and it does give me a response. However, in the response, there's one component called payload, and it's in a unreadable format. Is there a way to make it readable/decrypt it? For instance, in bluemix, when you do init of party "a" and party "b", the payload shows inita100b100. Firstly, I did this transaction/REST request { "jsonrpc": "2.0", "method": "invoke", "params": { "type": 1,