hyperledger-composer

Can some one share fabric multi channel example using hyperledger-composer

独自空忆成欢 提交于 2019-12-07 17:16:27
There is no clear documentation of hyperledger fabric multichannel, can someone from community share example of configuration. This Stack Overflow thread on creating multi-channel for a Hyperledger Fabric configuration should help you (mostly in yellow and grey code blocks) -> Configure Multiple Channel in Hyperledger Fabric . Once you have configured your custom runtime Fabric environment for your multi-Org, multi-channel setup, you can then create the requisite Hyperledger Composer config artifacts (eg. such as business network cards, one for a PeerAdmin for runtime install on the two peers

Hyperledger-Composer: Issuing identity using REST-API results in error message “fabric-ca request register failed”

不问归期 提交于 2019-12-07 15:53:59
问题 I have created a hyperledger-composer application with an Angular frontend and multi-user authentication. The admin can create a new participant and issue an identity for this participant. Adding the participant to the network works fine. But the second step - issuing an identity for this new participant results in the following error message: "message": "fabric-ca request register failed with errors [[{\"code\":20,\"message\":\"Authorization failure\"}]]", ... see the following screenshots:

How to resolve this error (t: Identifier cannot extend from super type) on Hyperledger Composer playground?

拥有回忆 提交于 2019-12-07 13:40:27
问题 Im following the Hyperledger tutorial Youtube Link and the instructor modifies a sample contract. However with the current version of Hyperledger fabric playground which can be accessed online, there is no mention of state after entering the accountTransfer function. This leads to an error as shown below: How to solve the same? I have tried searching for answers but I couldnt find any which addresses this specific issue. 回答1: t: stands for transaction. you have two problems in your model

Fabric composer on Windows?

前提是你 提交于 2019-12-07 02:50:53
问题 Is fabric-composer supported on Windows? https://fabric-composer.github.io/tasks/prerequisites.html How can I get an invitation to the Slack channel? https://fabric-composer.github.io/support/index.html 回答1: Thanks for taking a look at fabric-composer. All the technology that is being used is cross-platform (Node.js, npm, git and Hyperledger, Docker etc.) so have availability on Windows. The overall development experience wasn't as smooth for some of the tools as on say Ubuntu. For purely

How do I find the history of transactions for an Asset in a blockchain implemented using hyperledger-composer?

我怕爱的太早我们不能终老 提交于 2019-12-07 02:33:45
问题 I'm working on the latest rev of hyperledger-composer (V0.13) and have built a network with multiple roles, each of which can invoke selected transactions within the blockchain. I would now like to query the blockchain (?Historian?) for all transactions which have been executed against a specific Order (defined type of asset). I've used two different appoaches to pulling Historian data, once through direct API access historian.getall() and the other through a defined query: query

Deploying an angular application in hyperledger-composer

我们两清 提交于 2019-12-06 16:58:59
问题 I have my composer-rest-server running on port 3000 and now I try to generate an angular application with yo hyperledger-composer following the tutorial. Steps creating the webapp: After I do npm start and it seems that the webapp es correctly created because I am able to reach it from the localhost with curl localhost:4200 but when I try to reach it from another host I get nothing. Both hosts are connected because I can reach the composer server running on port 3000. 回答1: you need to change

In Hyperledger Fabric, Blocks locations and validity criteria

╄→尐↘猪︶ㄣ 提交于 2019-12-06 14:33:35
问题 Full disclosure, some users have asked about this but the answers have somehow diverted leaving the actual question unanswered. So, In Hyperledger Fabric: Where are the physical block files stored on a peer instance? How Often or when is the World State validated against the underlying ledger/blockchain? I know that LevelDB is used for the World State and it can be switched to CouchDB and I read somewhere that the ledger is also indexed in LevelDB but that again could refer to the World State

Debugging Transaction Code

醉酒当歌 提交于 2019-12-06 11:42:31
I've been asking myself whether there is an easy way of debugging the JavaScript code of the transactions. JS already has mature debuggers, it is only a question of how to easily bind it to the code running in the container. Does anyone have a clue? -- Thx. SamS One of the easiest ways to debug your transaction code is to deploy your business network into an embedded fabric which basically means that your code is run as any other NodeJS app is and you can use the node debugger to step through your code or even simple console.log statements if that suffices. To get an insight into how to

Modifying Hyperledger Composer WebApp

核能气质少年 提交于 2019-12-06 11:33:35
问题 I've completed the Hyperledger Composer Developer tutorial https://hyperledger.github.io/composer/tutorials/developer-guide.html and I've generated the BNA, deployed it to a local Hyperledger Fabric 1.0 instance, generated the REST API, and generated the skeleton webapp using yo. However, I noticed that the resulting webapp only has a menu for adding assets, and none for adding participants and submitting transactions. I have two questions: 1) Why doesn't the webapp generate menus for adding

ORDER BY not working in named query

老子叫甜甜 提交于 2019-12-06 05:35:41
I've got a named query that has an ORDER BY clause: `query OrdersByRequesterSort { description: "Select all orders by requester" statement: SELECT org.test.sample.Order WHERE (requester == _$requesterParam) ORDER BY [placeTimestamp DESC] }` which I patterened after a query that I saw here: https://hyperledger.github.io/composer/reference/query-language.html I'm getting the following error when I attempt to execute this query: ` { "error": { "statusCode": 500, "name": "Error", "message": "Error trying to query chaincode. Error: chaincode error (status: 500, message: Error: http: read on closed