Questions tagged [chaincode]

Chain codes are an efficient encoding of binary objects in an image. Use this tag together with [image-processing].

Chain codes, first proposed by Freeman in the early 1960's, encode a binary image object's contour as a set of steps in one of eight directions. The whole object is thus encoded as a sequence of 3-bit values, one for each of the object's contour pixels.

164 questions
1
vote
1 answer

Error while trying to fetch queryresult.KV object in JSON.Unmarshal

I am a little bit confused here and although I have searched a lot on this, something is clearly missing from my knowledge and I am asking your help. I have created a Hyperledger Fabric Network and installed a chaincode in it. And I want to make a…
Rafail K.
  • 365
  • 3
  • 14
1
vote
2 answers

How peers belong to Organizations endorse hyperledgerl fabric update transaction

I am new to blockchain technology let alone hyperledger fabric. But as far as I understand all the nodes or peers of other organizations are involved while application / user requests for update transaction. And if all the nodes of network…
1
vote
0 answers

Error installling chaincode on the network

I get the following error when I try to install chaincode VirtualBox:~/fabric-samples/test-network$ peer lifecycle chaincode install GameEX.tar.gz --peerAddresses peer0.org1.example.com:7051 2021-08-12 16:01:53.066 IST [main] InitCmd -> ERRO 001…
Raju
  • 11
  • 1
1
vote
0 answers

when installed chaincode I get the error could not connect to ordering service

I have a multihost network running on three separate hosts (with docker swarm). In testing these hosts were all on the same subnet and everything worked fine. Now I have migrated a host on another external network connected via vpn, I can create the…
1
vote
1 answer

Hyperledger Fabric - Java-SDK - Future completed exceptionally: sendTransaction

I'm running an HL Fabric private network and submitting transactions to the ledger from a Java Application using Fabric-Java-Sdk. Occasionally, like 1/10000 of the times, the Java application throws an exception when I'm submitting the transaction…
devops2.0
  • 11
  • 3
1
vote
1 answer

Calling external data on Hyperledger Fabric Chaincode (external data as input in business logic)

Is it possible to invoke external data from the chaincode? For example, in my business process, the client only releases payment if the work performed is equal to or greater than a certain quantity (i.e. the external data detected). The external…
1
vote
2 answers

Why does deploying chaincode in hyperledger not work?

I am working on the hyperledger fabric v2.0 and after I have set up the network, created the channels I am not able to set the chaincode. The Linux command: ./network.sh deployCC was not working. So it says i should use the ollowing valid call…
Kate
  • 181
  • 1
  • 1
  • 13
1
vote
1 answer

Error : How to write getHistoryForKey() method in hyperledger chaincode to get history for a key (java language)

I have written following method into my hyperledger chaincode (smart contract) to get history (all transaction data) based on a key, @Transaction(intent = Transaction.TYPE.EVALUATE) public ArrayList queryProductHistory(final Context ctx,…
1
vote
2 answers

Assesment of a production network in Hyperledger Fabric

I have some questions regarding the deployment of a HLF use case. Suppose we build a platform in which users sell items. The users and their items are stored on the ledger via chaincode. The purpose is to also enforce access control on the items via…
1
vote
0 answers

Error deploying chaincode to Hyperledger Fabric 2 test-network (with javascript tag)

I'm just playing for a demo with Hyperledger Fabric 2 test-network example: Github repo link Hyperledger Doc I'm having issues deploying chaincode to the test network, with Javascrip tag, executing the command below: ./network.sh deployCC -ccl…
1
vote
2 answers

In a Hyperledger Fabric Smart Contract how do I turn on logging?

I've written a Hyperledger Fabric Smart Contracts in Java and NodeJS. How do I turn on different levels of logging? The Fabric Smart Contract classes themselves log at the INFO level, how do I change that when the contract is deployed and…
1
vote
2 answers

How can I get a pseudorandom number in a chaincode in Hyperledger Fabric?

Since chaincode has to be deterministic, is there any way to get same random number in all endorser nodes to implement something like a lottery? In Ethereum you can do something like that: function random() private view returns (uint) { return…
1
vote
1 answer

Cannot update fabric channel config using new admin identity

Background We have a production fabric cluster setup and has been been running for a year. Now most of the certs expire and the cluster crash, including both tls and identity certs. I tried to fix by completely removing old certs and private keys,…
1
vote
1 answer

Hyperledger Fabric: How to get names of all the functions along with their arguments and return-types contained in a deployed chain-code

I was wondering if there is any possible way, to get the names of all the functions, which a deployed Chaincode contains, along with the arguments each of them expects, as well as their return-types. So that the client application can utilize it to…
1
vote
1 answer

Hyperledger Fabric: peer chaincode instantiate error: "could not assemble transaction " "msg chaincode registration failed"

We are trying to instantiate the sample chaincode github.com/chaincode/chaincode_example02/go/ in a sample network, and we get the following error message... any suggestions where to look at? CLI logs: Error: could not assemble transaction, err…
1 2
3
10 11