fabric-common | not a fork | Runtime Evironment library

 by   davidkhala JavaScript Version: Current License: Apache-2.0

kandi X-RAY | fabric-common Summary

kandi X-RAY | fabric-common Summary

fabric-common is a JavaScript library typically used in Server, Runtime Evironment, Nodejs, Minecraft, Docker applications. fabric-common has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i khala-fabric-sdk-node' or download it from GitHub, npm.

not a fork of official fabric-common
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              fabric-common has a low active ecosystem.
              It has 12 star(s) with 13 fork(s). There are no watchers for this library.
              OutlinedDot
              It had no major release in the last 6 months.
              There are 4 open issues and 2 have been closed. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of fabric-common is current.

            kandi-Quality Quality

              fabric-common has 0 bugs and 0 code smells.

            kandi-Security Security

              fabric-common has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.
              fabric-common code analysis shows 0 unresolved vulnerabilities.
              There are 0 security hotspots that need review.

            kandi-License License

              fabric-common is licensed under the Apache-2.0 License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              fabric-common releases are not available. You will need to build from source code and install.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of fabric-common
            Get all kandi verified functions for this library.

            fabric-common Key Features

            No Key Features are available at this moment for fabric-common.

            fabric-common Examples and Code Snippets

            No Code Snippets are available at this moment for fabric-common.

            Community Discussions

            QUESTION

            is it possible to prioritize orderer when submitting transactions through fabric-sdk-node?
            Asked 2022-Feb-04 at 15:46

            I'm writing a fabric client application using nodejs and the latest fabric-network library. I have setup multiple orderer nodes running in VMs and want to prioritize which orderer node to be used when submitting transactions.

            I wrote my own connection profile including the above orderer nodes and let the application use it to create gateway object. Then, I'm calling transaction#submit method to execute transactions. I want to use the nearest orderer node from the application but I don't know if it's possible.

            I read through fabric-skd-node source code and found that commitment procedure is done at Commit.js#send method and it pick the first healthy orderer node from the orderer list retrieved using Channel.js#getTargetCommitters method. So, my rough guess is that the first orderer node listed in connection profile is used if it's connectable.

            Please correct me if I'm wrong, I'd be very grateful.

            ...

            ANSWER

            Answered 2022-Feb-04 at 15:46

            It looks like you are correct in the case that you are not using service discovery, and you client is only using nodes defined in your connection profile.

            If you are using service discovery to dynamically discover network nodes then the list of orderers is randomised on each invocation to help distribute load more evenly across orderers and better handle orderer outages.

            https://github.com/hyperledger/fabric-sdk-node/blob/3da1d0beeb5274b021d6bd4a6d8ea69d5642d409/fabric-common/lib/DiscoveryHandler.js#L106-L109

            Remember that orderers will replicate transactions they receive to other orderers to maintain consistency and avoid single points of failure, so you are not avoiding transactions being sent to more distant ordering nodes.

            Source https://stackoverflow.com/questions/70949854

            QUESTION

            Error using framework hyperledger caliper
            Asked 2022-Jan-08 at 15:43

            I have two test tests, one reading and one writing on the blockchain. I'm getting two different errors, one at the start of the test and one at the writing test. The reading test is working normally without problems.

            Initial error:

            ...

            ANSWER

            Answered 2021-Dec-21 at 21:56

            From the network file you posted a couple of points

            1. you can't define any nodes in it (for example you've added orderers). They are ignored
            2. you've specified that your connection profile is a dynamic profile by setting discover to true in your network file, this means it will use discovery to determine the network topology and may not use the nodes you have explicitly defined in your connection profile. If you want to be explicit in your connection profile (and thus define a static connection profile) like you have in your above example, you should set discover to false, which hopefully will solve your problem.

            As a side note, if you use discovery then the node-sdk (used by caliper) and caliper by default converts all discovered node hosts to localhost, which is why you see it trying to contact localhost. To disable this see Runtime settings in https://hyperledger.github.io/caliper/v0.4.2/fabric-config/new/

            Source https://stackoverflow.com/questions/70439063

            QUESTION

            chaincode event listener wont connect again to peers after peer nodes killed/restarted
            Asked 2021-Aug-24 at 10:51

            My fabric-node-sdk based application is listening for chaincode events using network.getContract(smartContractName).addContractListener. When I kill all the peer nodes, it prints the following logs, disconnects the event listener, and never tries

            ...

            ANSWER

            Answered 2021-Aug-24 at 10:51

            This is the issue reported in this Jira: https://jira.hyperledger.org/browse/FABN-1657

            It should be fixed in current npm packages tagged unstable-2.2, and in a forthcoming v2.2.9 release of the Node SDK.

            Source https://stackoverflow.com/questions/68903486

            QUESTION

            Hyperledger Blockchain Explorer-Fail to connect before the deadline on Endorser, fail to connect to remote gRPC server
            Asked 2021-Jun-06 at 00:15

            I am trying to set up a Hyperledger Fabric Network with Hyperledger Explorer. I spin up a VM on the digital ocean cloud with ubuntu OS. From there, I spin up 3 orderers node, and 2 peers node. Which result in total of 5 nodes. (I am using RAFT setup).

            However, I encounter the error as below when trying to start the hyperledger fabric explorer docker-container images.

            Error: ...

            ANSWER

            Answered 2021-Feb-20 at 23:54

            All configurations seems good, however you have to upgrade explorer version to be compatible with hyperledger fabric version.

            So please use v1.1.4 instead of v1.1.1

            Also make sure that you have mounted crypto config correctly, try to access this path inside the container /tmp/crypto/peerOrganizations/acme.com/tlsca/tlsca.acme.com-cert.pem

            Try to change tlsCACerts path to use peer tls ca.crt /tmp/crypto/peerOrganizations/acme.com/peers/peer1.acme.com/tls/ca.crt

            You have mentioned that the same configurations works with hyperledger fabric v2, if you have tried it locally not on the same server so I please disable the firewall on the server and give it a try

            To check if you can reach domain and port please try this

            cat > /dev/tcp/peer1.acme.com/7051

            Check this https://support.bluemedora.com/s/article/Using-Bash-to-test-if-a-TCP-port-on-a-remote-system-is-open

            Source https://stackoverflow.com/questions/66256188

            QUESTION

            Fabric-common: TypeError: cryptoSuite.createKeyFromRaw is not a function
            Asked 2021-Mar-17 at 11:45

            I am trying to sign transaction proposals with offline key. I have generated signed certificate by Org CA and now I am trying to create User with fabric-common nodejs SDK version 2.2.5.

            ...

            ANSWER

            Answered 2021-Mar-17 at 11:45

            So the problem was that I was using node v12.6.0 which is required by fabric-common module. When I downgraded node version to v11.6.0 and installed dependencies with flag --ignore-engines everything worked as expected.

            Source https://stackoverflow.com/questions/66655105

            QUESTION

            Benchmarking with Hyperledger Caliper for Hyperledger fabric which are in different machine
            Asked 2021-Jan-27 at 17:34

            Caliper (v.0.4.2) is installed and setup the configuration on my machine (laptop), and ready to communicate with the existing deployed fabric network which is in google-cloud. To communicate these two caliper and fabric network, I have provided connection profile of org1(where my contract is deployed). I found the error and not solved.
            How to solve this error?

            Error: Could not find details for contract ID

            Below is information for finding the solutions of given problem.

            Caliper is startup using following commands

            ...

            ANSWER

            Answered 2021-Jan-27 at 09:16

            Your network config file is not complete. Caliper still has to explicitly know about the chaincodes (aka contracts) that have been deployed onto your channels. Referring to this section in the tutorial https://hyperledger.github.io/caliper/v0.4.2/fabric-tutorial/tutorials-fabric-existing/#populating-the-template-file you will see a section on Channels which describe adding information about channels to the network config file. For example from that tutorial it defines this section

            Source https://stackoverflow.com/questions/65915391

            QUESTION

            Debugging TLS handshake failure
            Asked 2020-Sep-25 at 11:52

            I'm trying to access my peer through the fabric-network nodejs sdk.

            However, I encounter an error during the gateway.connect in the sdk and the logs I find in the peer container is not helpful.

            All I have, even with the grpc=debug logging mode is :

            ...

            ANSWER

            Answered 2020-Sep-21 at 22:58

            You try a gRPC call in peer Server where peer server is secured with it's TLS system. So if you fail to provide the valid TLS certificate, server tls handshake will be failed and you will not get success to establish the connection.

            Please check that your network config file is properly develop, also check that you are using the same TLS certificate that is used to run the peer server and your TLS certificate path is correct.

            Source https://stackoverflow.com/questions/63995545

            QUESTION

            Undocumented error in Hyperledger Fabric 2.1.0 Too many requests for /protos.Deliver, exceeding concurrency limit (2500)
            Asked 2020-Jul-28 at 12:16

            The running instances were fine today in the afternoon, but suddenly this error started to pop out. It presumes to call the function and write to the ledger successfully but rejects with this:

            ...

            ANSWER

            Answered 2020-Jun-19 at 17:41

            The number of concurrent requests to the peer services has been capped by default in Fabric v2.1.0+ to prevent poorly programmed or malicious clients from DoS-ing the peers. You can always remove this restriction, or increase it by modifying these values in core.yaml. To remove the restriction, set the limit to 0, or increase it to a value that makes sense for your environment.

            Generally speaking, if these messages are occurring, it is because the client application is misbehaving and not appropriately releasing resources. Once a client is done with a particular call, it's important to close and cleanup the associated network resources. A common source of leaks for connections to the peer is requesting event streams, reading one event, and then opening a new one without closing the previous.

            Source https://stackoverflow.com/questions/62401964

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install fabric-common

            You can install using 'npm i khala-fabric-sdk-node' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            CLONE
          • HTTPS

            https://github.com/davidkhala/fabric-common.git

          • CLI

            gh repo clone davidkhala/fabric-common

          • sshUrl

            git@github.com:davidkhala/fabric-common.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link