hyperledger

Common connection profile missing error while adding user for organization

♀尐吖头ヾ 提交于 2020-01-02 15:01:59
问题 I am getting Error: Common connection profile is missing this client's organization and certificate authority Error, while running gateway.getClient().getCertificateAuthority() code line. My connection profile file is there and as per my understanding it has no issues. Following is my nodejs client code. 'use strict'; const { FileSystemWallet, Gateway, X509WalletMixin } = require('fabric-network'); const path = require('path'); const ccpPath = "../connection-ogr4.json"; async function main()

Chaincode (smart contract) interactions within and across channels in Hyperledger Fabric

China☆狼群 提交于 2020-01-02 05:29:07
问题 Consider the Organization-Peer setup in a Hyperledger Fabric network as shown in the image. Org 1 has two peers, Org 2 has one peer - all of which exist inside the same channel - X. Org 3 has one peer which exist outside in a different channel. The peers have distinct chaincodes(c1, c2, c3 & c4) installed in each of them with the functions as explained. write() - put a key-value pair into the ledger update() - update a value for an existing key read() - query an existing key-value pair Now on

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

Error when trying to extract hyperledger artifacts

随声附和 提交于 2020-01-01 14:39:30
问题 i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0

Error when trying to extract hyperledger artifacts

怎甘沉沦 提交于 2020-01-01 14:37:37
问题 i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0

Error when trying to extract hyperledger artifacts

試著忘記壹切 提交于 2020-01-01 14:37:13
问题 i am using Windows 10 (64-bit) and i seem to have all the prerequisites installed. However, while running the command curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash on Git-Bash, i will get the following error: $ curl -sSL https://raw.githubusercontent.com/hyperledger/fabric/master/examples/e2e_cli/bootstrap.sh | bash % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 1205 0 1205 0

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