hyperledger-composer

Hyperledger Composer add a new peer

不打扰是莪最后的温柔 提交于 2019-12-08 09:14:29
问题 I am modifying existing docker-compose.yml, crypto-config.yaml and configtx.yaml to add a extra peer to the existing hyperledger composer sample, located under hlfv11 folder of the fabric-tools/fabric-scripts. I regenerated required certificates and genesis block and it generates the peer container without any issue. However I am having difficulty adding this peer to a channel. I modified startFabric.sh to join this peer to a channel, however I am getting an error with following message:

transactionId when submitting a transaction

邮差的信 提交于 2019-12-08 09:00:13
问题 I am trying to submit a transaction using "composer transaction submit...". I get an error stating that transactionId value is missing... the transaction is accepted only if I add a random transactionId, but in Playground the JSON used to submit a transaction does not include transactionId and is executed OK (although I know it is the javascript Fabric emulator embedded in Playground). So, in order to submit transactions using CLI or REST API, how should I generate/know the transaction Id if

transactionId when submitting a transaction

喜夏-厌秋 提交于 2019-12-08 08:15:29
I am trying to submit a transaction using "composer transaction submit...". I get an error stating that transactionId value is missing... the transaction is accepted only if I add a random transactionId, but in Playground the JSON used to submit a transaction does not include transactionId and is executed OK (although I know it is the javascript Fabric emulator embedded in Playground). So, in order to submit transactions using CLI or REST API, how should I generate/know the transaction Id if the transaction has not been executed yet? Thanks. When using the REST API it works same way? This is

What is the difference between the TransactionRegistry and the Historian?

谁都会走 提交于 2019-12-08 06:19:11
问题 Say I just wanted to get a list of all transactions that involved a specific asset (assuming I would need a query for this?). Should I use the TransactionRegistry or the Historian? What's the difference? 回答1: furthermore, to see the transaction data (deltas) for the asset id you're zoning in on - ie available through the transactionInvoked field of the transaction class (eg org.acme.trading.Trade transaction class). you could use REST APIs with loopback filters -eg either (both return a

Composer REST server auth

China☆狼群 提交于 2019-12-08 05:30:34
问题 I have a question about rest-server. In my project I don't won't to use rest server as direct backend, I wanna have one more api, which will send different requests. So, my question is, what kind of auth I need to choose? (auth need for multi-user mode, I want to send transactions from different participants) Thank you) Is it possible to use composer-rest-server not just for log in but for sign up too, if real users will not make requests, but my own api will register them on rest-server

Hyperledger REST Server Angular Web App getting could not connect to REST server outside localhost

ε祈祈猫儿з 提交于 2019-12-08 05:19:05
问题 I'm following the great Hyperledger Composer tutorials here to getting started. I've managed to get everything running, including the REST Server and the Skeleton Angular web app on top of it. Problem arise when I try to use the application outside of localhost. I can access the REST Server on port 3000 and interact with it (adding, removing, uppdating). I can also access the application (port 4200), but when I try to interact with it I get the following: Error: Could not connect to REST

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

久未见 提交于 2019-12-08 03:47:28
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. The steps I followed are the following: I'm using Docker 17.03.1-ce-mac5 stable on OSX 10.12.4 I cloned

getting Error: Expected a Resource or Concept have checked older posts too but it's not helping me out with my code

时光怂恿深爱的人放手 提交于 2019-12-08 03:32:50
问题 I have two transactions GoodsMovement and Payment, Goodsmovement will track delivery of Goods and Payment transaction will check for payments if goods are delivered. I'm working on below code: /** * New model file */ namespace org.acme.paysystem enum PaymentStatus{ o PARTIALLY_PAID o TOTAL_AMOUNT_PAID o NOT_PAID } enum DeliveryStatus{ o DELIVERED o IN_TRANSIT } asset Goods identified by billNo{ o String billNo o Double billAmount o DateTime billDate o DeliveryStatus deliveryStatus o

Hyperledger-Composer: ACL-rules with condition of type (r.someArray.indexOf(p.getIdentifier()) > -1) not working

杀马特。学长 韩版系。学妹 提交于 2019-12-08 02:56:09
问题 In my hyperledger-composer application, access control rules with a condition of the following type: (r.someArray.indexOf(p.getIdentifier()) > -1) do not work. Here is an example of such an ACL-rule: rule SuperiorsHaveReadAccessToTheirTeamMembers { description: "Allow superiors read access to data on their team members" participant(p): "org.comp.app.Employee" operation: READ resource(r): "org.comp.app.Employee" condition: (r.superiors.indexOf(p.getIdentifier()) > -1) action: ALLOW } for

ORDER BY not working in named query

南笙酒味 提交于 2019-12-08 01:04:11
问题 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":