hyperledger-fabric

History For Private Data In Hyperledger Fabric

旧街凉风 提交于 2019-12-23 02:52:32
问题 Is there any way to get the history for Private data in Hyperledger Fabric node SDK. I've tried using getHistoryForKey(key) It returns an empty object with only { done: true } 回答1: The API to get history for private data is not yet implemented, but is planned for a future release of Hyperledger Fabric. In the interim you could add some minimal information to a public key in the same transaction for historical tracking. That could either be a logical key, or if the key itself is sensitive, you

Hyperledger Fabric v1.1.0 byfn tutorial on Ubuntu 16.04

牧云@^-^@ 提交于 2019-12-23 02:32:48
问题 root@sungil:~/fabric-samples/first-network# export CHANNEL_NAME=mychannel root@sungil:~/fabric-samples/first-network# ../bin/configtxgen -profile TwoOrgsChannel -outputCreateChannelTx ./channel-artifacts/channel.tx -channelID $CHANNEL_NAME 2018-03-19 13:11:51.489 KST [common/tools/configtxgen] main -> INFO 001 Loading configuration 2018-03-19 13:11:51.494 KST [common/tools/configtxgen] doOutputChannelCreateTx -> INFO 002 Generating new channel configtx 2018-03-19 13:11:51.495 KST [msp]

Fabric Composer quick-start failing when trying to deploy the bna file on OSX

跟風遠走 提交于 2019-12-23 01:54:57
问题 I'm having some problems trying to deploy a bna file using the fabric composer. First I tried using my own HyperLedger 0.6 instance, creating a connection profile and then using the composer-cli to deploy a bna and I got the following error during the composer network deploy command: "TypeError: Cannot read property 'fail' of undefined" Then I removed all my docker images and containers, made sure everything was updated and I tried the getting-started script and I got the exact same error.

Unable to create channel in Hyperledger fabric using custom crypto graphic material

别说谁变了你拦得住时间么 提交于 2019-12-22 18:19:26
问题 I am following the below link to run the first network sample using the custom crypto graphic material. First Network with custom cryptographic material Post generation of certificates from the Third Party CA. i have places all the certificates in the required dir structure. Following other steps now when i start the docker containers they come up. but when i try to create channell i get below error Error: got unexpected status: BAD_REQUEST -- Error authorizing update: Error validating

Cannot access user attribute using Attribute Based Access Control (ABAC) in Hyperledger Fabric 1.1

泪湿孤枕 提交于 2019-12-22 18:12:24
问题 I am trying out Attribute based access control using GoLang and facing an issue in getting the attribute in the chaincode. I'm using cid.GetAttributeValue() function and the function returns nothing. It prints blank and the found variable is set to false. The things I have done are: Registered a user defined attribute named "firstName" with value "*" to the admin. (Also tried setting it to a specific value) Enrolled that admin to the network Registered and enrolled the user with the same

status: 500, message: cannot get package for chaincode

☆樱花仙子☆ 提交于 2019-12-22 18:11:33
问题 root@93272a1da547:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.example.com:7050 --tls $CORE_PEER_TLS_ENABLED --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem -C mychannel -n fabrep -v 1.0 -c '{"Args":["init","a", "100", "b","200"]}' -P "OR ('Org1MSP.member','Org2MSP.member')" While trying to instantiate my chaincode, I am

Set up of Hyperledger fabric on 2 different PCs

心已入冬 提交于 2019-12-22 13:02:58
问题 I need to run Hyperledger-Fabric instances on 4 different machines PC-1 should contain CA and peers of ORG-1 in containers, Pc-2 should contain CA and peers of ORG-2, PC-3 should contain orderer(solo) and PC-4 should Node api Is my approach missing something ? if not how can I achieve this? 回答1: I would recommend that you look at the Ansible driver in Hyperledger Cello project to manage deployment across multiple hosts/vms. In short, you need to establish network visibility across the set of

Hyperledger Composer issue identity but missing business card

余生颓废 提交于 2019-12-22 10:46:14
问题 I am working in a proof of concept with a Node.js application and 'composer-client' npm module. I have tried different commands such as adding a participant, adding an asset and performing a transaction and everything seems to work correctly. However, when I try to issue a new identity I do not get the results that I expect. I execute my Node.js application with the following code: var businessNetwork = new BusinessNetworkConnection(); return businessNetwork.connect('admin@tutorial-network')

Hyperledger Fabric with Kubernetes: Not able to instantiate chaincode

家住魔仙堡 提交于 2019-12-22 09:56:41
问题 I am trying to deploy Hyperledger Fabric on Kubernetes. Everything is working fine other than peer chaincode instantiate . Whenever I try to instantiate chaincode it keeps waiting for around 10-15 mins and then it throws timeout error as shown below: Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction b7ce8fa6259e6004481b829660dd2365f8503153047b3d9132393180e2591f0a: timeout expired while starting chaincode mycc:1.0

Hyperledger Explorer: how to prevent participants from accessing transaction history

梦想与她 提交于 2019-12-22 06:49:22
问题 In my Hyperledger-Fabric application (developed with Hyperledger Composer), I want to prevent participants from being able to look at the old transactions. Old transactions can be viewed either in the Hyperledger Composer Historian or in the Hyperledger Explorer. I know how to make old transactions non-visible to participants in the case of Hyperledger Composer Historian (namely in the file permissions.acl). But preventing participants from looking at old transactions in the Hyperledger