hyperledger

How to get the transaction ID from Hyperledger Sawtooth

那年仲夏 提交于 2019-12-23 04:26:59
问题 When I am making a transaction with the JS sdk to my docker sawtooth node, I am getting a response which contains only a link which shows this data: { "data": [ { "id": "87be1095b29372fff3b46d4f0eb0f354514208d8ef612877bae0216e70d4931f302e2b2f3741d52e22acf92c7e3f3935775b503a43f45a7297d1ce5ad76b9bb2", "invalid_transactions": [], "status": "COMMITTED" } ], "link": "http://localhost:8008/batch_statuses?id

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]

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

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

Error when reading core config file: Unsupported Config Type

我们两清 提交于 2019-12-22 05:28:39
问题 I am trying to pass in the channel configuration transaction artifact to the order-er using the command: peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --tls --cafile /opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/ordererOrganizations/example.com/orderers/orderer.example.com/msp/tlscacerts/tlsca.example.com-cert.pem But I get an error: 2018-03-17 20:55:21.380 GMT [main] main -> ERRO 001 Fatal error when initializing core config :

How to integrate HyperLedger composer Business network with Hyperledger explorer?

孤街醉人 提交于 2019-12-22 00:17:10
问题 I have built Business network using HyperLedger composer. Now, I want to use HyperLedger explorer for my solution? I didnt find any help on the same. I have downloaded all the Hyperledger explorer from Git, I am stuck in configuring the Config file? I am not sure, which config file is being referred in the below link? https://github.com/hyperledger/blockchain-explorer/blob/master/README.md 回答1: I think that the file structure has been changed recently, but the reference to the config file in

How to fetch asset modification history in hyperledger fabric

旧街凉风 提交于 2019-12-21 23:22:55
问题 I am using IBM bluemix blockchain service to tryout some smart contract logic for my asset sharing demo. Is there anyway to query the asset modified history in hyperledger fabric network. I have checked with documentations for both fabric 0.6 and 1.0 versions, but I can find only the stub.pushState(key,value_json) and stub.getState(key) to interact width the ledger. But using stub.getState(key) , I can fetch only the latest entry of the key, but how can I fetch and display the series of