hyperledger

什么是Hyperledger?Linux如何围绕英特尔的区块链项目构建开放平台?

流过昼夜 提交于 2019-12-01 14:33:42
访问区块链会议并关注区块链新闻时,不可避免地,您会遇到Linux基金会的Hyperledger。理解像比特币、以太坊这样的加密货币还算相对容易的,Hyperledger却不然。但如果你多研究研究,你会发现一些令人兴奋的非货币、工业区块链的应用项目。 什么是Hyperledger ? 让我们从Hyperledger不是什么开始。首先,它不是公司、不是加密货币、不是区块链。Hyperledger更像是开放式工业区块链开发的枢纽。Hyperledger网站上有解释: “Hyperledger是一项旨在推动跨行业区块链技术的发展的开源项目。由Linux基金会在2015年12月主导发起该项目,成员包括金融,银行,物联网,供应链,制造和技术领域的领导者。” Hyperledger不支持比特币或其他任何加密货币。但该平台对区块链技术感到非常兴奋。该网站称,因为网络本身,“有一项技术,承诺比区块链技术更广泛,更具根本性的革命。” 区块链有可能“构建新一代的交易应用程序,在其核心建立信任、责任和透明度的同时简化业务流程和法律约束。” 所以我们许下很多承诺- 我们有Hyperledger。有了它,Linux基金会旨在创建一个软件开发人员和公司协调构建区块链框架的环境。Linux基金会于2015年12月创建了该平台。2016年2月,它宣布了第一批创始成员,2016年3月又有10位成员加入。 今天

is there any size limit for pdf in hyperledger fabric?

不羁岁月 提交于 2019-12-01 13:53:41
I have created small poc using hyperledger fabric and composer. In my project, I am uploading 2 files, for the first time the file getting uploaded but when I am trying to upload the second file of same size it show error in the composer Unhandled error for request POST /api/UpdateContractDetails: Error: request entity too large at readStream (/home/ttandale/.nvm/versions/node/v6.11.2/lib/node_modules/composer-rest-server/node_modules/raw-body/index.js:196:17) at getRawBody (/home/ttandale/.nvm/versions/node/v6.11.2/lib/node_modules/composer-rest-server/node_modules/raw-body/index.js:106:12)

How is running the asset_management.go different from running a simple chaincode like chaincode_example02.go

蓝咒 提交于 2019-12-01 13:19:31
The simple workflow for deploying/invoking a chaincode (to my knowledge) is : Deploy a chaincode(smart contract) on the blockchain This brings up a docker container on all peers that has the chaincode running in it Invoke some function This type of function changes the values of variables in chaincode state For asset_management.go , the chaincode can be tested by running go test in the asset_management chaincode directory . But this does not really bring up a docker container(or does it ?) that runs the asset_management chaincode. Whats the right way to deploy/invoke this chaincode and how is

is there any size limit for pdf in hyperledger fabric?

回眸只為那壹抹淺笑 提交于 2019-12-01 13:16:56
问题 I have created small poc using hyperledger fabric and composer. In my project, I am uploading 2 files, for the first time the file getting uploaded but when I am trying to upload the second file of same size it show error in the composer Unhandled error for request POST /api/UpdateContractDetails: Error: request entity too large at readStream (/home/ttandale/.nvm/versions/node/v6.11.2/lib/node_modules/composer-rest-server/node_modules/raw-body/index.js:196:17) at getRawBody (/home/ttandale/

How to debug chaincode? LedgerError - ResourceNotFound

夙愿已清 提交于 2019-12-01 12:10:18
I got this I believe pretty common error "..LedgerError - ResourceNotFound: ledger: resource not found" . To make it simple, this is what I have: Try simple chaincode, the given chaincode_example02.go codes turned off security hence no CA (CORE_SECURITY_ENABLED=false CORE_SECURITY_PRIVACY=falss) 1 peer node only (using 0.5 version), it is a peer docker image run in dev mode This is how I deployed the code in dev mode, pls do verify if the cli is correct: CORE_CHAINCODE_ID_NAME=mycc CORE_PEER_ADDRESS=0.0.0.0:30303 ./chaincode_example02 and it shows 'Received REGISTERED, ready for invocations'

HyperLedger fabric chaincode not updated

我是研究僧i 提交于 2019-12-01 12:03:50
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 not happening. Even if I comment the function itself, it still shows the old content of the ledger. How

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

萝らか妹 提交于 2019-12-01 11:08:59
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 https://raw.githubusercontent.com/romeokienzler/learn-chaincode/master/finished/chaincode_finished.go I

How to debug chaincode? LedgerError - ResourceNotFound

与世无争的帅哥 提交于 2019-12-01 10:58:19
问题 I got this I believe pretty common error "..LedgerError - ResourceNotFound: ledger: resource not found" . To make it simple, this is what I have: Try simple chaincode, the given chaincode_example02.go codes turned off security hence no CA (CORE_SECURITY_ENABLED=false CORE_SECURITY_PRIVACY=falss) 1 peer node only (using 0.5 version), it is a peer docker image run in dev mode This is how I deployed the code in dev mode, pls do verify if the cli is correct: CORE_CHAINCODE_ID_NAME=mycc CORE_PEER

Composite Key functions in Hyperledger

穿精又带淫゛_ 提交于 2019-12-01 09:40:05
I need to implement composite keys in hyperledger so that I could have a unique key based on the attributes put into the ledger. The function CreateCompositeKey(objectType string, attributes []string)(string,error) takes in objectType and attributes string. I couldnt find any examples of this online, how are the relevant attributes to be made into the composite key passed and in what way is the output given? So the way Composite keys should be used is make a key first and then push it to the blockchain with PutState(key string, value []byte) error where the hey in PutState is the output of

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

倖福魔咒の 提交于 2019-12-01 08:41: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. 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/awesome/chaincode If you are running your nodes/peers in a docker image (like the instructions you are following