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
0
votes
1 answer

Getting Chaincode from NodeJS

On Ethereum, by inspecting a transaction on EtherScan, you are able to see the public chaincode used for that transaction. I would like to see the chaincode used for the transaction, or maybe retrieve the current chaincode instantiated on the…
0
votes
1 answer

Error: error getting chaincode bytes: listing deps for package chaincode_example02 failed: exit status 2

After executing this command to generate chaincode(written in go) package: peer lifecycle chaincode package $CC_PACKAGE_FILE -p chaincode_example02 --label $CC_LABEL where CC_LABEL=gocc.1.0-1.0 CC_PACKAGE_FILE=$HOME/packages/$CC_LABEL.tar.gz I am…
Divya Singh
  • 147
  • 1
  • 13
0
votes
2 answers

Error: chaincode argument error: invalid character 'â' looking for beginning of value

I'm trying to query my installed chaincode on hyperledger fabric 2.2 network. I'm trying test-network . I'm using this command peer chaincode query -C mychannel -n fabcar -c ‘{“Args”:[“queryAllCars”]}’ but I'm getting this error. Error: chaincode…
0
votes
1 answer

Hyperledger Fabric - Multi Host Network - Docker Swarm

I installed Hyperledger Fabric and I'm trying to distribute my chaincode on two peers on two different hosts (exactly two Ubuntu 16.04 machines) via docker swarm. I found a link explaining how to do this but I can't get it to work…
0
votes
1 answer

Failed to upgrade a chaincode in v2.1 Hyperledger Fabric Network

I'm trying to upgrade my Hyperledger Fabric network from v1.4.7 to v2.1. Upgrading peers and orderers is done smoothly and already instantiated chaincodes work well. (Channel capabilities still remaining v1.x.) However, when I try to upgrade the new…
0
votes
1 answer

Is it possible to get a file on my host in order to be used by a chaincode in Hyperledger Fabric?

I'm working on Hyperledger Fabric and I'd like to know if it is possible to save a text file on my host that will be retrieved by the chaincode to be used. In this way I would obtain data resisting to procedures of restarting and anytime it is…
0
votes
1 answer

How could I use public/private key of a peer to encrypt/decrypt data in a chaincode?

I'd like to use public/private keys of a peer to encrypt/decrypt data in Hyperledger Fabric chaincode. Is there a way to retrieve them through the chaincode?
0
votes
1 answer

How can I use two chaincodes installed in the same Fabric channel?

I have two chaincodes deployed in the same channel of 5 peers. The first chaincode is installed on 3 peers, the second one is installed on other 2 peers. The first chaincode inits the ledger with some data, while the second one should query the…
0
votes
0 answers

Error: error endorsing invoke: rpc error: code= Unavailable desc = transport is closing- proposal response:

I am trying to running the network using AWS, and this error is getting. But already tried with my local system which is working successfully. and peer logs: 2020-04-14 06:42:20.109 UTC [gossip.discovery] getDeadMembers -> WARN 076 Haven't heard…
0
votes
2 answers

Hyperledger Fabric world state inconsistency

I'm experimenting on an adapted version of commercial paper + test network (https://github.com/hyperledger/fabric-samples/tree/master/commercial-paper). I created a paper with the paperlist abstraction and then changed one of its attributes. When…
raf
  • 42
  • 11
0
votes
1 answer

Hyperledger Fabric endorsement in Smart Contracts

I am currently working in projects using Fabric 1.4 I am able to get a decent idea of how things seems to work out but I am quite confused with the way smart contracts and endorsement policies work together. What i have understood is that…
Skadoosh
  • 699
  • 2
  • 11
  • 27
0
votes
1 answer

HyperLedger fabric java sdk

I am using Hyperledger Fabric 1.4v, running one organisation with two peers(peer0,peer1) each running on separate vm in an native setup.Orderer also running on a separate vm. In a webclient, using java sdk the chaincodes are executed and each user…
0
votes
0 answers

NullpointerException while Iterating through Mat

I am currently trying to iterate over every pixel of a black and white image in OpenCV 4.1.2 in Java and to store e 3x3 Matrix for every pixel, which should have a 1, if the pixel currently worked with has e neighbouring pixel there, and an 0 if…
Muck
  • 1
0
votes
1 answer

HL fabric gateway:submit transactions to orderers asynchronusly

Currently ,in fabric gateway API when we submit the transaction using APIs provided by TransactionImpl ,inside commitTransaction method of TranscatioImpl it creates commitHandler on network and transaction Id and after sending the transaction to…
0
votes
2 answers

HyperLedger Fabric history transaction with key

I'm using the fabcar project: https://github.com/IBM/blockchain-application-using-fabric-java-sdk I would like to know if there is a way to get the transaction history with a certain key (Not just querying a simple car o listing all of them. Thank…