hyperledger-fabric

measuring Hyperledger Composer performance using Hyperledger Caliper

怎甘沉沦 提交于 2020-01-02 01:09:36
问题 Is it possible to measure Hyperledger composer network performance which runs on Hyperledger fabric using Hyperledger Caliper framework? If yes can you guide me how can I change the configuration to connect Caliper to running Hyperledger composer network? 回答1: If you use composer rest server to enable rest api endpoints, you can always use apache meter to test out the latency of your system. 回答2: Hyperledger Caliper is a blockchain benchmark framework to measure performance of multiple

Hyperledger transaction verification

会有一股神秘感。 提交于 2020-01-01 22:03:09
问题 In case of Bitcoin transaction the verification/validation involves looking at the input UTXO balance etc... But in Hyperledger the transaction (if I may) "just" carries the data (function name and data-string) for the target smart contract. Does it mean that there is no necessity of validation (apart from the syntax) of the transaction? If yes what has to checked and against what? Can anyone pls give me an example use-case? If there is no validation, then is my understanding correct that the

Hyperledger fabric Crypto materials

余生长醉 提交于 2020-01-01 16:33:28
问题 If we see the crypto-config folder in basic-network of fabric-sample , we have various certificate materials with various types: └── example.com ├── ca │ ├── 0d46ccf0e9436c1bc3b6e2bf80cdb202c4943604f95c72ee0ff839d3ec300719_sk │ └── ca.example.com-cert.pem ├── msp │ ├── admincerts │ │ └── Admin@example.com-cert.pem │ ├── cacerts │ │ └── ca.example.com-cert.pem │ └── tlscacerts │ └── tlsca.example.com-cert.pem ├── orderers │ └── orderer.example.com │ ├── msp │ │ ├── admincerts │ │ │ └── Admin

Get chaincode caller ID from the function InvokeChaincode() in Hyperledger Fabric Node SDK

痞子三分冷 提交于 2020-01-01 11:35:36
问题 Let's suppose the following network architecture: A -> Chaincode1 -> fabcar A is the application, Chaincode1 is a chaincode in Go and fabcar is a chaincode in Nodejs. They are on the same channel: "mychannel". When is performed the operation APIstub.InvokeChaincode from the Chaincode1 such as APIstub.InvokeChaincode("fabcar", chainCodeArgs, "mychannel") , is there a possibility for the chaincode fabcar (the chaincode called) to get the id of the the caller chaincode? The getCreator() method

What is chaincode container in Hyperledger Fabric?

只愿长相守 提交于 2020-01-01 05:48:08
问题 Chaincode is already installed in the peer file system. Why does instantiating chaincode start the chaincode container? What is the purpose of the chaincode container? 回答1: The purpose of the chaincode container is to ensure isolation of the smart contract's execution from the peer itself, so that a smart contract (chaincode) cannot crash or even access the peer because of an error or malicious code. When you instantiate a chaincode, the peer populates a container image with the chaincode and

Limit of number of nodes in Hyperledger

风格不统一 提交于 2020-01-01 03:30:10
问题 In Hyperledger-fabric blockchain, is there a limit to the number of nodes participating in a network? If yes, how many nodes can be in a network? 回答1: To get the complete functionality of blockchain(consensus mechanism, hyperledger fabric uses PBFT consensus which means it will accept any transaction to be valid if more than 66% of the nodes are up and running. In short more than 66% of nodes must be up and must validate the order to requests in Hyperledger farbic. Both the Starter Developer

When to call getAssetRegistry to update assets (and the participants equivalent)

ぃ、小莉子 提交于 2019-12-31 04:38:06
问题 I'm able to write some simplistic smart contracts using my composer development environment but am confused about when to persist assets and participants into the registry. I've read the docs on composer-runtime.AssetRegistry and the getAssetRegistry function to return an asset registry object and to perform updates but am still not clear which assets/partipants to update. Here's an example (may not be fully working): participant Trader identified by userID { o String userID o String

Using endorsements in Hyperledger Composer to design a process

痞子三分冷 提交于 2019-12-30 03:37:12
问题 NB: I am seeking to understand how endorsements works in general. This will help me determine how to design applications when using Hyperledger Composer. When I read the links here and here, I came across this statement: "Transactions have to be “endorsed” and only endorsed transactions may be committed and have an effect on the state". The statement is clear. However, let's consider the composer developer tutorial here. We have a commodity that is currently owned by an owner(Trader1) who

Error when i running the application hyperledger fabric

假如想象 提交于 2019-12-25 18:53:19
问题 I'm following this tutorial: https://github.com/ITPeople-Blockchain/auction and at the step: "Build peer and Orderer binaries and Start Orderer", at the command: make native I recived following error: Makefile:71: *** "No go in PATH: Check dependencies". Arresto. I'm using Ubuntu on VirtualBox and I set the gopath correctly 回答1: go path is not set. find installed directory of go lang. (e.g linux ) whereis go then export below var. export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin these

Error while starting hyperledger explorer with hyperledger composer

大城市里の小女人 提交于 2019-12-25 18:17:08
问题 I have deployed a simple business network using fabric-dev-servers. Everything is working fine but i am trying to integrate explorer with it. I have installed everything as it has been defined in the docs available at github. But explorer fails to start on browser. And gives error "" Failed to render one or more components". App logs [2018-08-15 15:10:13.639] [DEBUG] FabricConfiguration - Msp ID : Org1MSP [2018-08-15 15:10:13.656] [DEBUG] FabricConfiguration - Msp ID : Org1MSP [2018-08-15 15