hyperledger

How to get all transaction history against a chaincode in Hyperledger fabric

风流意气都作罢 提交于 2019-12-03 09:51:51
问题 I am able to do transactions in Hyperledger (fabric implementation). I want to see all the transactions and its payload details initiated by a user by passing the user's key. for example: A transfers 10 units to B A transfers 5 units to C D transfers 8 units to A When I pass A's key then fabric must provide me all the transactions of A. Is there any way? Or which fabric API function call should I use? 回答1: You can develop the proper indexing and query function in your chaincode. Meaning for

Hyperledger SDK for Java chaincode (shim-client-1.0)

匿名 (未验证) 提交于 2019-12-03 09:05:37
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I tried to compile chaincode sample and write my own one ( https://github.com/hyperledger/fabric/tree/master/examples/chaincode/java/SimpleSample ) However, I can't get a shim-client-1.0. Do you have plans to make java sdk public? 回答1: I hope that “shim-client-1.0.jar” will be added to maven repository soon, nevertheless you can try to compile it using source code in “github.com/hyperledger/fabric/core/chaincode/shim/java”. gradle build and "shim-client-1.0.jar" will be available in github.com/hyperledger/fabric/core/chaincode/shim/java

hyperledger fabric first_network example create channel got BAD_REQUEST

匿名 (未验证) 提交于 2019-12-03 09:02:45
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have been following tutorial on hyper ledger website: https://hyperledger-fabric.readthedocs.io/en/release/build_network.html#behind-scenes . I was able to run ./byfn.sh -m generate ./byfn.sh -m up This setup run all the way through of showning the end. like: ===================== All GOOD, BYFN execution completed ===================== _____ _ _ ____ | ____| | \ | | | _ \ | _| | \| | | | | | | |___ | |\ | | |_| | |_____| |_| \_| |____/ ./byfn.sh -m down Then I begun to follow the tutorial further to execute each line manually. I have

Hyperledger fabric first network not working with kafka and using TLS

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I try to run First network sample Building Your First Network from official docs. I need to run this sample with kafka orderer type. For this case I edit configtx.yaml file (changed OrdererType to kafka and added Brokers) ... # 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: Use IP:port notation Brokers: - kafka:9093 ... And added kafka and zookeeper containers to base/docker-compose-base.yaml ....

Hyperledger fabric: No script

匿名 (未验证) 提交于 2019-12-03 08:57:35
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I am following the tutorial on http://hyperledger-fabric.readthedocs.io to setup my own hyperledger. I am building the first network using "first-network" in the fabric-samples. The ./byfn -m generate is OK, but after using ./byfn -m up I receive the below error: /bin/bash: ./scripts/script.sh: No such file or directory The script.sh file is available in: \fabric-samples\first-network\scripts After running 'docker ps -a' I get: My OS is Windows 10. Does anyone know what is causing this and how to resolve this? 回答1: Check out http:/

How to add a new peer to an existing Hyperledger Fabric network?

北城以北 提交于 2019-12-03 08:51:20
问题 When you create a hyperledger fabric network, you define organizations, orderers and peers in crypto-config.yaml and configtx.yaml . But how do you add a new organization or a new peer to an existing organization in a network that is already setup? Run cryptogen and configtxgen pointing to config files that contain only the new organizations/peers? Re-generate everything? 回答1: You can achieve this by generating the crypto material (using cryptogen extends ) for the new peer, spawning the new

how exactly blocks are created in hyperledger fabric

痴心易碎 提交于 2019-12-03 08:45:52
问题 I am going through hyperledger fabric V1.0. Need to know the internals of hyper-ledger. 1) How and where the blocks and transactions are saved in hyperledger internally. 2) Is it in the NoSQL DB (Level DB, Couch DB) ??. If yes, what is the structure, in the way it is getting saved ??. 3) Where can I find the end to end setup doc for V1.0 (which includes CA, fabric, orderer setup. Currently I am following the link, which is getting updated. https://hyperledger-fabric.readthedocs.io/ 回答1: For

How to query Hyperledger Fabric blockchain data outside CLI container?

匿名 (未验证) 提交于 2019-12-03 08:30:34
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am using the ./byfn.sh script from the fabric-sample to start my blockchain. I would like to invoke and query data from a PHP website from the blockchain. I do know that I can only use the API call from CLI container or use a JavaSDK/NodeSDK, RESTapi. How can I query data from the blockchain the easiest way? I am looking at NodeSDK and RestApi but I don't see much guides out there to help me, hence this question. Sorry for the newbie questions. Thanks! 回答1: The proper way to call and interact with Hyperledger Fabric peers is via

Where can I find out the possible environment variables for Hyperledger Fabric peer command?

北慕城南 提交于 2019-12-03 08:19:10
When configuring a peer node to run, there are a number of environment variables included in the sample docker-compose files. Is there somewhere that I can find them all documented? e.g. environment: - CORE_VM_ENDPOINT=unix:///host/var/run/docker.sock - CORE_PEER_ID=peer0.org1.example.com - CORE_LOGGING_PEER=debug - CORE_CHAINCODE_LOGGING_LEVEL=DEBUG - CORE_PEER_LOCALMSPID=Org1MSP - CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/peer/ - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 Artem Barger Hyperledger Fabric provides a configuration file called core.yaml , you can find that inside the peer

Error: 2 UNKNOWN: access denied: channel [contentbackchainchannel] creator org

♀尐吖头ヾ 提交于 2019-12-03 08:00:40
问题 I've fabric network setup with two orgs; orchestratororg and participantorg. With user of orchestratororg I can invoke or query chaincode but when trying to query with user of participantorg I get an error as follows: "Error: 2 UNKNOWN: access denied: channel [contentbackchainchannel] creator org [ParticipantOrgMSP]" You can access my network setup under Network config 回答1: Try to use following commands, Inside fabric-tools folder ./teardownFabric.sh ./startFabric.sh ./createPeerAdminCard.sh