hyperledger-fabric-sdk-js

Node SDK v2 Gateway cannot connect to peer

こ雲淡風輕ζ 提交于 2021-01-29 20:53:50
问题 I've got a running testnet with mutualTLS in a Kubernetes cluster. The setup works as I can flawlessly use the CLI to invoke and query chaincode. In Node, however, I can enroll the identity but I'm not able to do a gateway.connect(...) successfully. The error messages from client and peer are telling me quite nothing. The script 'use strict'; const FabricCAServices = require('fabric-ca-client'); const { Wallets, Gateway } = require('fabric-network'); const fs = require('fs'); const path =

How can I send the update channel configuration request to the Orderer using node SDK?

Deadly 提交于 2020-06-28 05:12:18
问题 There are 03 main phases in the process of updating the channel configuration: (1) Get the latest configuration from the Orderer. (2) Modify the configuration. (3) Sign and send a transaction to the Orderer to update channel configuration. I got an error at step (3) while trying to call updateChannel() function which is: { status: 'BAD_REQUEST', info: 'error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit

How can I send the update channel configuration request to the Orderer using node SDK?

荒凉一梦 提交于 2020-06-28 05:12:02
问题 There are 03 main phases in the process of updating the channel configuration: (1) Get the latest configuration from the Orderer. (2) Modify the configuration. (3) Sign and send a transaction to the Orderer to update channel configuration. I got an error at step (3) while trying to call updateChannel() function which is: { status: 'BAD_REQUEST', info: 'error authorizing update: error validating DeltaSet: policy for [Value] /Channel/Orderer/BatchSize not satisfied: Failed to reach implicit

Setting PEM attributes for user identities in Hyperledger Fabric

不想你离开。 提交于 2020-01-24 14:06:08
问题 I have a single-org setup running with one Fabric CA. CA Server is running with MySQL. I'm using NodeSDK to connect and issue transactions to chaincode. I'm able to set Country, State, Locality, Organisation and Organisation Unit attributes for the peers and orderers. However, when I register and enroll "users" with the Fabric, not all attributes are being set. Only the Common Name and Organisation Unit attributes are set as seen from the certificate file. Following is my snippet for

Hyperledger Fabric 1.4: Getting an error while trying to connect ChannelEventHub.connect(true). Error: Error connect the ChannelEventhub to peer

点点圈 提交于 2019-12-08 09:31:44
问题 This is a follow-up Question to the one which I asked previously(here) and I am trying to implement the solution suggested by @david_k. I am using the Fabcar example as a base and building up on that. I ran the startFabric.sh, I got the message that "Successfully submitted proposal to join channel" docker exec -e "CORE_PEER_LOCALMSPID=Org1MSP" -e "CORE_PEER_MSPCONFIGPATH=/etc/hyperledger/msp/users/Admin@org1.example.com/msp" peer0.org1.example.com peer channel create -o orderer.example.com

Hyperledger Endorsement Failure when Invoking chaincode - failed: signature set did not satisfy policy

家住魔仙堡 提交于 2019-12-08 03:47:35
问题 I am using balance transfer application with custom chaincode, when I use endorsement policy '1-of':[{ 'signed-by': 0 }, { 'signed-by': 1 }] then every thing works fine however if I use '2-of':[{ 'signed-by': 0 }, { 'signed-by': 1 }] invoke transaction fails with below error: Fabric Peer Error log: Validate -> ERRO 078 VSCC error: stateBasedValidator.Validate failed, err validation of endorsement policy for chaincode mycc in tx 4:0 failed: signature set did not satisfy policy 2019-01-02 07:24

Hyperledger fabric client credential store using CouchDB

馋奶兔 提交于 2019-11-28 10:19:21
问题 I am using Hyperledger Fabric SDK for node.js to enroll a user. I am using this code to deploy in fabric. It uses FileKeyValueStore (uses files to store the key values) to store client's user credential. I want to use CouchDBKeyValueStore to store user key in CouchDB database instance. What changes do i need to make in client connection profile configuration file for credential store and in code to do so. Any link to sample code will also help. 回答1: There is no built-in support in the