hyperledger

How to find whether the transaction already exist for particular asset and participant in hyperledger composer?

馋奶兔 提交于 2019-12-08 11:35:24
问题 Participant IDFC Participant TATA , MRF Asset FINANCEPROGRAM Transaction (Data need to submit) participant(TATA) ,Asset (FINANCEPROGRAM ) ,loanAmount , loantenure I need to check whether the transaction for FINANCEPROGRAM and TATA are already exist. If so exist i need to reject the transaction. var query1 = query('SELECT com.ett.blockchain.Programmeben WHERE (beneficiary == _$beneficiary AND bankprogramme == _$bank program) '); return query('query1',{beneficiary : 'resource:com.ett.blockchain

Chaincode for Developers Cli error terminal 3

倖福魔咒の 提交于 2019-12-08 11:22:29
I am trying to deploy chaincode using the chain code for developers tutorial " http://hyperledger-fabric.readthedocs.io/en/latest/chaincode4ade.html ". I was able to complete the steps till Terminal 2 but get an Error in the command "docker exec -it cli bash" for Terminal 3. Output for Terminal 1: []Received message REGISTER from shim peer | 2017-08-22 23:29:26.025 UTC [chaincode] HandleMessage -> DEBU 1a9 []Fabric side Handling ChaincodeMessage of type: REGISTER in state created peer | 2017-08-22 23:29:26.025 UTC [chaincode] beforeRegisterEvent -> DEBU 1aa Received REGISTER in state created

Hyperledger Fabric peer error

会有一股神秘感。 提交于 2019-12-08 10:52:21
问题 I'm running Hyperledger on an ubuntu virtual machine. After installing hyperledger prerequisites and binaries, when I try to execute the 'peer' command, it returns: [main] main -> ERRO 001 Fatal error when initializing core config : error when reading core config file: Unsupported Config Type "". On my machine (MAC) the command runs perfectly and displays the command usage description. Any ideas? I tried with 3 virtual machines and all result to to the same error. 回答1: Please refer to this

Restrictive ACL for Trading network in Hyperledger Composer

两盒软妹~` 提交于 2019-12-08 10:15:24
问题 I couldn't solve my problem, so i try to explain it again: There are 2 Participants (Provider). Both of them holds own Wallet and Account and they want to exchange Cash to Tokens or visa versa. They should have just READ-access to their own assets, because of fraud, security etc. But for transactions they need UPDATE-access. Here is my code: org.acme.biznet.cto: namespace org.acme.biznet abstract participant Member identified by memberId { o String memberId o String name o String email } //

Hyperledger Docker endpoint not found

≡放荡痞女 提交于 2019-12-08 10:00:54
问题 I have setup a 2 node Hyperledger network using Docker images on Ubuntu 14.04 by creating 2 containers as per the steps provided @ http://hyperledger-fabric.readthedocs.io/en/latest/Setup/Network-setup/#leveraging-published-docker-images Then I tried to deploy a chaincode, which compiles without errors, by calling POST /chaincode API and got response 200 with the hash returned for the deployed chaincode. But immediately after that I got the following error in the docker logs: 08:44:26.560

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:

Hyperledger Fabric-ca connect to LDAP : admin does not exist

假如想象 提交于 2019-12-08 09:13:01
问题 I'm trying to connect Hyperledger Fabric CA to an Openldap. The Openldap is set up in local, with a single organisation dc=fabric-ca,dc=example,dc=com And a single user, cn=admin,dc=.../ I have set up a Fabric-CA with following server config : ldap: enabled: true url: ldap://cn=admin,dc=fabric-ca,dc=example,dc=com:000000@☺localhost:389/dc=fabric-ca,dc=example,dc=com userfilter: (dn:%s) tls: enabled: false attribute: names: ["dn"] Converters and maps are irrelevant (so far). The admin exist in

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

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

Error: Error endorsing chaincode: rpc error: code = Unknown desc = Failed to init chaincode(handler not found for chaincode mycc:0)

倾然丶 夕夏残阳落幕 提交于 2019-12-08 04:55:46
问题 I'm trying to make the tutorial "Chaincode for Developers" work. But at the section "Terminal 3 - Use the chaincode" I'm stuck trying to run this command $ peer chaincode instantiate -n mycc -v 0 -c '{"Args":["a","10"]}' -C myc It exits with this error : Error: Error endorsing chaincode: rpc error: code = Unknown desc = Failed to init chaincode(handler not found for chaincode mycc:0) I've done some research but I don't know what to do. Could somebody please help me ? 回答1: This is solved.