hyperledger-fabric

How to run Hyperledger Composer Rest Server docker image?

﹥>﹥吖頭↗ 提交于 2020-01-16 21:30:15
问题 I have pulled hyperledger/composer-rest-server docker image , Now if i wanted to run this docker image then on which port should i expose ? Like mentioned below. docker run --name composer-rest-server --publish XXXX:YYYY --detach hyperledger/composer-rest-server Here please tell me what should i replace for XXXX & YYYY ? 回答1: I run the rest server in a container using a command as follows: docker run -d \ -e COMPOSER_CARD="admin@test-net" \ -e COMPOSER_NAMESPACES="never" \ -v ~/.composer:

Why Chaincode instantiate giving error trying to connect to local peer?

筅森魡賤 提交于 2020-01-16 14:46:12
问题 Hi Everyone I have successfully installed the chaincode on my all peers. So when I am trying to instantiate chaincode it is giving me following error which are mentioned below. Please help me with this , I am new to this thing so may be i missed somewhere something. I have referred some of the question related to this but i did not get anything. First Command - root@7485ef4909d6:/opt/gopath/src/github.com/hyperledger/fabric/peer# peer chaincode instantiate -o orderer.indirasoft.com:7050 -C

Hyperledger cryptogen utility, missing Admin and User pem cert in admincerts, but existing in signcerts

[亡魂溺海] 提交于 2020-01-16 09:13:08
问题 I am executing ../bin/cryptogen generate --config=./crypto-config.yaml command following build your First Network in Hyperledger Fabric tutorial. I see that the Admin and User .pem certificates are created in "signcerts" directory (in msp dir) but they are not copied in "admincerts" directory. What is the configuration to solve this? 回答1: For a workaround you can downgrade your cryptogen version to 1.4.2 as you must be having 1.4.3 version of cryptogen binary. As of 1.4.3, there is also an OU

Can I pass objects to a Hyperledger Fabric transaction?

淺唱寂寞╮ 提交于 2020-01-16 08:49:07
问题 I have a network set up that is based on the fabcar example. Customized the chaincode and the folder structure, and it all seems to compile and fire up just fine. But now, I am trying to find out whether I can use function Contract.submitTransaction() (found in invoke.ts and covered in the docs) or a more applicable function to pass somewhat more complex arguments for custom type Shipment which is based on type Car of the original example. In the example, Car is simply a flat type of string s

Hyperledger fabric first network not working by kafka and using TLS

僤鯓⒐⒋嵵緔 提交于 2020-01-16 05:50:28
问题 I try to run First network sample (v1.1.0-preview) from official docs with kafka orderer type. I did the change exactly as what is done in this post: Hyperledger fabric first network not working with kafka and using TLS by these steps: 1.Update the configtx.yaml to add kafka brokers (kafka:9003) ... # Orderer Type: The orderer implementation to start # Available types are "solo" and "kafka" OrdererType: kafka ... Kafka: # Brokers: A list of Kafka brokers to which the orderer connects # NOTE:

Cannot create channels with new orgs in Fabric, got error: Attempted to include a member which is not in the consortium

限于喜欢 提交于 2020-01-16 00:41:40
问题 Here is what I need to do in steps: Create a fabric network with 2 orgs: Org1 and Org2. Create a channel between them: publicchannel. now add an Org3 using steps from this tutorial by fabric: https://hyperledger-fabric.readthedocs.io/en/latest/channel_update_tutorial.html Create a new channel: org3org1channel, between org3 and org1. I'm experiencing problems with step 4, it is returning: Error: got unexpected status: BAD_REQUEST -- Attempted to include a member which is not in the consortium

Securing confidential information in Hyperledger Composer

蓝咒 提交于 2020-01-15 06:56:26
问题 Looking at securing confidential information in Hyperledger Composer If assets and transactions in a business network have ACL's to prevent a competitor participant (non-owner) from viewing confidential information, what access can the competitor have to assets and transactions owned by another participant? Can the competitor access the underlying Fabric ledger to view assets/transactions? Can the competitor view the transaction processing function? Can the competitor view the logs of the

Hyperledger Fabric Chaincode Development Language - NodeJS, Java, or Go?

家住魔仙堡 提交于 2020-01-14 10:48:29
问题 With consideration of existing functionality, developer productivity (assuming minimal experience in each language), support within the Fabric community, and roadmap for enhancements, is there any chaincode development language that should be preferred as the short-term and, perhaps separately, as the long-term choice? Prior question Node.js or Go for Hyperledger Fabric's chaincode development? did not address Java as an option, and does not account for recent Fabric 1.4 platform release. 回答1

How to add a new orderer in a running hyperledger fabric network using raft?

偶尔善良 提交于 2020-01-14 10:08:38
问题 I want to add a new orderer to my existing running network. Currently my network is as follows : docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 998b93eb81c6 hyperledger/fabric-tools:latest "/bin/bash" About a minute ago Up About a minute cli 87bada2d914b hyperledger/fabric-orderer:latest "orderer" About a minute ago Up About a minute 0.0.0.0:8050->7050/tcp orderer2.example.com 5907f35bb5b4 hyperledger/fabric-orderer:latest "orderer" About a minute ago Up About a minute 0.0

Chaincode for Developers Cli error terminal 3

吃可爱长大的小学妹 提交于 2020-01-14 04:06:27
问题 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