hyperledger-composer

How to store large file in Hyperledger Fabric using Hyperledger Composer

吃可爱长大的小学妹 提交于 2019-12-01 12:06:33
问题 Hi I created an asset in Composer model file. asset Car identifiedby assetId{ o String assetId o String data } when I am trying to put large file above 30kb, it is throwing error as data too large. So, what is the limit of data that can be stored in a variable? Is this the wrong way of storing files in blockchain(Hyperledger Fabric using Composer)? there are questions available for storing file in hyperledger fabric/composer. However, there is no question for storing large file. 回答1: see

How to show transaction input data in a Hyperledger Composer query

橙三吉。 提交于 2019-12-01 10:43:25
问题 I'm trying to build a Historian Query that will allow me to see Transactions (and their original inputs). I was kind of trying out an idea based on this issue https://github.com/hyperledger/composer/issues/1850, but that was fixed in the Composer Playground. So now I'm wondering how I can achieve this in the REST API without relying on events to hold the transaction input information. The query I'm using from following the documentation on queries is: query HistorianRecords { description:

Includes function in ACL condition

只愿长相守 提交于 2019-12-01 10:27:58
I have an asset called MedicalFile which contains a reference to an organization. The participant HealthCareProfessional also belongs to an organization. Now I'd like to define an ACL rule which limits the health care professional to only view medical files which MedicalFile's are connected to his organisation. I came up with the following rule: rule OrganisationMedicalFilePermission { description: "An organisation may updates a medical file which they have permission from" participant(h): "nl.epd.blockchain.HealthCareProfessional" operation: ALL resource(m): "nl.epd.blockchain.MedicalFile"

Includes function in ACL condition

痞子三分冷 提交于 2019-12-01 08:36:44
问题 I have an asset called MedicalFile which contains a reference to an organization. The participant HealthCareProfessional also belongs to an organization. Now I'd like to define an ACL rule which limits the health care professional to only view medical files which MedicalFile's are connected to his organisation. I came up with the following rule: rule OrganisationMedicalFilePermission { description: "An organisation may updates a medical file which they have permission from" participant(h):

Hyperledger Composer :error Authenticating to the REST server

这一生的挚爱 提交于 2019-12-01 07:29:51
问题 I have been following this Hyperledger Composer tutorial here and when I try to authenticate to the rest server via http://localhost:3000/auth/github I am not being redirected to the GitHub site to perform the OAuth web server authentication flow. Instead of redirecting, I am getting a 404 error message. Expected Behavior According to the Composer tutorial, I would expect being redirected to the Github site to perform the OAuth. Actual Behavior When I enter http://localhost:3000/auth/github I

what is the best way of image storage on hyperledger composer?

送分小仙女□ 提交于 2019-11-30 21:17:23
问题 ipfs or storj hash of image and store file on s3 convert the image to a Base64 string and store string in composer model 回答1: You can use String and base64 encode it - as a field in an Asset for example. The question has been discussed here: How can I convert MP3 file to a Base64 encoded string? and here: How to deal with forms,images,videos of an asset in hyperledger composer . Storing images, scans, audio files is not a 'best practice' - rather, a cryptographic hash of it (referenced off

MVCC_READ_CONFLICT when submitting multiple transactions concurrently

百般思念 提交于 2019-11-30 18:06:02
问题 I have a conceptual question. I'm performing async requests to Composer REST and I'm getting message: 'error trying invoke chaincode. Error: Peer has rejected transaction \'552b42fa4d2cfd366ff1b7d01371878f53f7553b44f141187c6db86b75f68906\' with cdoe MVCC_READ_CONFLICT', . I got the same problem when using node-sdk. What is the reason for that? Shouldn't it be possible to submit multiple transactions asynchronously? 回答1: Hyperledger Fabric uses lock-free optimistic concurrency, with rollback

Handshake failed with fatal error SSL_ERROR_SSL

杀马特。学长 韩版系。学妹 提交于 2019-11-30 16:13:29
I'm following this tutorial https://hyperledger.github.io/composer/latest/tutorials/deploy-to-fabric-multi-org to deploy a composer blockchain business network to Hyperledger Fabric (multiple organizations) I'm getting the following error however when trying to install the business network though: Installing business network. This may take a minute...E0424 16:44:04.865686000 140735870391104 ssl_transport_security.cc:989] Handshake failed with fatal error SSL_ERROR_SSL: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed. E0424 16:44:04.868503000 140735870391104

Using endorsements in Hyperledger Composer to design a process

旧巷老猫 提交于 2019-11-30 10:38:35
NB: I am seeking to understand how endorsements works in general. This will help me determine how to design applications when using Hyperledger Composer. When I read the links here and here , I came across this statement: "Transactions have to be “endorsed” and only endorsed transactions may be committed and have an effect on the state". The statement is clear. However, let's consider the composer developer tutorial here . We have a commodity that is currently owned by an owner(Trader1) who could sell it to somebody else(Trader 2). Currently, how many endorsements are needed for the

First network in hyperledger

a 夏天 提交于 2019-11-30 07:41:38
I am trying to work on my first network in Hyperledger Fabric. Using the following documentation http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html I have completed the setup till http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html#create-join-channel but when I run the peer channel create -o orderer.example.com:7050 -c $CHANNEL_NAME -f ./channel-artifacts/channel.tx --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