blockchain

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

Best Practices to follow while writing Hyperledger Fabric Chaincode

大兔子大兔子 提交于 2019-11-30 16:58:25
What should be some of the best practices to follow to avoid bugs and write efficient Hyperledger Fabric Chaincode? General Guidelines for writing Hyperledger Fabric Chaincodes. Refer to the below link for a detailed description on the same: https://gist.github.com/arnabkaycee/d4c10a7f5c01f349632b42b67cee46db Some steps are concisely mentioned below: Use Chaincode DevMode Use Chaincode Logging Using logging is simple and easy. Use Fabric's inbuilt logger. Fabric provides logging mechanism as follows: For Golang : https://godoc.org/github.com/hyperledger/fabric/core/chaincode/shim

Best Practices to follow while writing Hyperledger Fabric Chaincode

孤街浪徒 提交于 2019-11-30 16:20:20
问题 What should be some of the best practices to follow to avoid bugs and write efficient Hyperledger Fabric Chaincode? 回答1: General Guidelines for writing Hyperledger Fabric Chaincodes. Refer to the below link for a detailed description on the same: https://gist.github.com/arnabkaycee/d4c10a7f5c01f349632b42b67cee46db Some steps are concisely mentioned below: Use Chaincode DevMode Use Chaincode Logging Using logging is simple and easy. Use Fabric's inbuilt logger. Fabric provides logging

What is diffrence between enrolling and registering a certificate in Hyperledger fabric CA

时光总嘲笑我的痴心妄想 提交于 2019-11-30 16:10:01
问题 What exactly is difference between enrolling and registering a certificate in Hyperledger Fabric CA. I am new to cryptography and i am really confused about the working of Fabric CA. Also how are certificates generated via cryptogen is diffrent from certificates generated via Fabric CA. 回答1: So from what i understand when you "enrol" an identity you get the certificates and private keys for it. When you "register" the identity, you are simply creating the user name and password for that

技术文章转载

拜拜、爱过 提交于 2019-11-30 11:06:14
技术文章转载: http://blog.hubwiz.com/2019/09/24/scikit-learn-pipeline-guide/ http://blog.hubwiz.com/2019/09/23/python-ml-beginner-guide/ http://blog.hubwiz.com/2019/09/22/js-beyond-console-log/ http://blog.hubwiz.com/2019/09/20/web3j-intro/ http://blog.hubwiz.com/2019/09/19/eth-one-to-many/ http://blog.hubwiz.com/2019/09/19/crypto-exchange-data-visualization/ http://blog.hubwiz.com/2019/09/18/crypto-price-api/ http://blog.hubwiz.com/2019/09/16/bounding-box-regression/ http://blog.hubwiz.com/2019/09/15/6-python-tricks/ http://blog.hubwiz.com/2019/09/13/ethereum-dev-tools-2019/ http://blog.hubwiz.com

Hyperledger Fabric GOSSIP_BOOTSTRAP & GOSSIP_EXTERNALENDPOINTS

送分小仙女□ 提交于 2019-11-30 10:37:30
I was looking into the docker configuration files and found two parameters in peer environment as shown below: environment: - CORE_PEER_ID=peer0.org1.example.com - CORE_PEER_ADDRESS=peer0.org1.example.com:7051 - CORE_PEER_GOSSIP_BOOTSTRAP=peer1.org1.example.com:7051 - CORE_PEER_GOSSIP_EXTERNALENDPOINT=peer0.org1.example.com:7051 - CORE_PEER_LOCALMSPID=Org1MSP Can anyone explain what there two variables CORE_PEER_GOSSIP_BOOTSTRAP & CORE_PEER_GOSSIP_EXTERNALENDPOINT works. How they can be configured in case of odd number of peers. A detailed explanation would be really appreciated. Gari Singh

Best practice to save files in blockchain

穿精又带淫゛_ 提交于 2019-11-30 09:42:28
What is the best practice to save files as part of a blockchain's data? I have tremendously large files to be saved. Can't we save these file on cloud storage (centralized solution like dropbox), and link them with blockchain data using a file hash? Or is it better to use a distributed file storage like IPFS? Or is there any better solution in term of security, volume, performance, and fault tolerance. Lucas Hendren You do not want to directly use a traditional blockchain. Blockchains are good for transactional information/state changes, large data storage is generally a bad idea. This is due

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

℡╲_俬逩灬. 提交于 2019-11-30 04:57:58
问题 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. 回答1: Check to see if you have a local firewall enabled. Depending on your docker

Where do smart contracts reside in blockchain (Ethereum or Hyperledger)

你离开我真会死。 提交于 2019-11-30 02:07:16
So, let us consider a typical trade finance process flow. Exporter deploys a contract that has conditions of the shipment and a hash is generated once the deployment is finished. Questions: 1) Where is the contract stored? 2) How other participants such as customs and importer can access this contract? 3) Can we activate participant level access to the contract on the blockchain? There are several aspects to Ethereum and Hyperledger which make them quite different. Let me give a somewhat simplified answer to not get into too much details and a too long answer. First of all, Ethereum is

Add Org or peer in Org dynamically in Hyperledger fabric

不想你离开。 提交于 2019-11-29 22:43:36
I am using http://hyperledger-fabric-doc.readthedocs.io/en/latest/getting_started.html for Hyperledger Fabric setup in Ubuntu VM. As per tutorial (fabric-samples/first-network) which have two organizations with two peers have been created. I wanted to add new organization or new peer in already existing Organization dynamically. Kindly help me know the steps to add dynamically. It isn't to the point of being "dynamic" just yet. However, the reconfiguration is done using the configtxlator tool to read the genesis block and modify it's contents, then submit it as a new transaction that updates