hyperledger

HyperLedger fabric chaincode not updated

风流意气都作罢 提交于 2019-12-01 07:39:20
问题 I am trying to follow along this sample Hyperledger Fabric code: https://github.com/hyperledger/education/tree/master/LFS171x/fabric-material Initially I replaced chaincode/tuna-app/tuna-chaincode.go with my go file chaincode/tuna-app/test.go. test.go had changes just in what we initialize in the ledger through its initLedger function call. It worked fine, with no changes required in tuna-app/.startFabric.sh. Now when I again try to change the ledger through its initLedger function call, its

“Error getting chaincode package bytes” when deploying chaincode on hyperledger via REST

自闭症网瘾萝莉.ら 提交于 2019-12-01 07:30:00
问题 I'm trying to deploy chaincode on hyperledger (Bluemix service) via POST/REST to /chaincode QuerySpec { "jsonrpc": "2.0", "method": "deploy", "params": { "type": 1, "chaincodeID": { "path": "https://github.com/romeokienzler/learn-chaincode/tree/master/finished" }, "ctorMsg": { "function": "init", "args": [ "hi there" ] }, "secureContext": "user_type1_0" }, "id": 1 } I've also tried those links https://github.com/romeokienzler/learn-chaincode/blob/master/finished/chaincode_finished?raw=true

Sawtooth Invalid Batch or Signature

十年热恋 提交于 2019-12-01 06:41:54
I have started playing atound with Hyperledger Sawtooth recently, and having trouble to submit transactions on java, while python code seems okay. I have prepared the python code based on the api docs here and then tried to write one in java as well. Below is the code in java import com.google.protobuf.ByteString; import com.mashape.unirest.http.Unirest; import sawtooth.sdk.processor.Utils; import sawtooth.sdk.protobuf.*; import java.security.KeyPair; import java.security.KeyPairGenerator; import java.security.Signature; import java.security.spec.ECGenParameterSpec; public class BatchSender {

Hyperledger Fabric Simples issue Run ./byfn.sh -m up failed

浪子不回头ぞ 提交于 2019-12-01 06:40:22
I want to build first-network of Hyperledger Fabric Samples I get the simple code from git then download the platform-specific binaries follow the guide http://hyperledger-fabric.readthedocs.io/en/v1.0.5/samples.html But when I run the command ./byfn.sh -m generate there are different output in my screen and when I run ./byfn.sh -m up , the error occurred Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src/github.com/hyperledger/fabric/peer/crypto/peerOrganizations/org1.example.com/peers/peer0.org1.example.com

How to use a chaincode that's not on github?

吃可爱长大的小学妹 提交于 2019-12-01 06:30:49
问题 I have developed a chaincode using this and now that I know that it works I want to test it in a network with multiple nodes. Where should I put my chaincode so that I can deploy it in the Hyperledger fabric network? I have used this to setup the network. 回答1: There are two options: If you are not using a docker image to start your nodes then you should deploy the chaincode by specifying a fully qualified path, in other words, you should set the parameter when deploying: -p /home/user/my

Hyperledger Fabric Simples issue Run ./byfn.sh -m up failed

大憨熊 提交于 2019-12-01 04:29:27
问题 I want to build first-network of Hyperledger Fabric Samples I get the simple code from git then download the platform-specific binaries follow the guide http://hyperledger-fabric.readthedocs.io/en/v1.0.5/samples.html But when I run the command ./byfn.sh -m generate there are different output in my screen and when I run ./byfn.sh -m up , the error occurred Build your first network (BYFN) end-to-end test Channel name : mychannel Creating channel... CORE_PEER_TLS_ROOTCERT_FILE=/opt/gopath/src

Sawtooth Invalid Batch or Signature

China☆狼群 提交于 2019-12-01 04:21:29
问题 I have started playing atound with Hyperledger Sawtooth recently, and having trouble to submit transactions on java, while python code seems okay. I have prepared the python code based on the api docs here and then tried to write one in java as well. Below is the code in java import com.google.protobuf.ByteString; import com.mashape.unirest.http.Unirest; import sawtooth.sdk.processor.Utils; import sawtooth.sdk.protobuf.*; import java.security.KeyPair; import java.security.KeyPairGenerator;

HyperLedger Fabric的fabric-sdk-java的End2endIT测试

假装没事ソ 提交于 2019-12-01 01:44:00
博主搞了很久环境和调试,哎,一把泪,现在总结下。免得大家在采坑(可能是我运气不好,可能有些人没有) 最近想搞下Java-SDK来连接Fabric进行操作,首先来进行End2EndIT的官网提供的测试类进行测试。 1.连上云服务器(或者自己要搭建的虚拟机),最好是跑通过e2e_cli实例,免得环境有问题。 2.切换目录到/opt/gopath/src/github.com/hyperledger下(默认的Gopath目录) 3.拉取官方的End2End代码,git clone -b release-1.1 git@github.com:hyperledger/fabric-sdk-java.git(我是直接拉取1.1版本的代码,不建议拉取1.0的代码,为什么,后面会说) 4.切换目录到./fabric-sdk-java/src/test/fixture/sdkintegration 5.进行启动./fabric.sh up(最好是每次启动前进行./fabric.sh down 关闭网络,进行环境清理) 6.出现以下提示,基本就完成了网络环境的启动 7.进行Java-SDK的测试,一样将代码拉取下来git clone -b release-1.1 git@github.com:hyperledger/fabric-sdk-java.git,放在电脑合适的目录下 8.打开IDEA

Issue while using fabric client java sdk (since there is no Rest API support) in local development environment for Hyperledher Fabric V1.0

泄露秘密 提交于 2019-12-01 01:28:02
I have done the following as per the suggestion that I have got from my previous post to communicate with locally running Hyperledger Fabric V1.0 network from java application. But I am getting the exceptions given below and unable to sort it out why it is happening. public class Test { final HFClient client = HFClient.createNewInstance(); Channel channel; TransactionProposalRequest proposalRequest; void setupCryptoMaterialsForClient() throws CryptoException, InvalidArgumentException{ // Set default crypto suite for HF client client.setCryptoSuite(CryptoSuite.Factory.getCryptoSuite()); client

Hyperledger: get “/bin/bash: ./scripts/script.sh: No such file or directory” when running “./byfn -m up”

荒凉一梦 提交于 2019-11-30 21:33:17
I'm a newer for the hyperledger and just studying it by following the tutorials on http://hyperledger-fabric.readthedocs.io . I am trying to build the first network using "first-network" in the fabric-samples. The ./byfn -m generate is OK. But after typing ./byfn -m up , I meet /bin/bash: ./scripts/script.sh: No such file or directory error and the process hangs. What is going wrong? PS: The OS is Windows 10. Check to see if you have a local firewall enabled. Depending on your docker configuration, a firewall may prohibit the docker daemon from accessing share drives as specified in docker