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
8
votes
6 answers

In Hyperledger Fabric when I try to invoke, I'm getting the following error: chaincode definition for 'fabcar' exists, but chaincode is not installed

I've followed 2 different tutorials https://github.com/swetharepakula/Fabric101Workshop and https://hyperledger-fabric.readthedocs.io/en/release-2.0/deploy_chaincode.html. Both times when I query installed it shows fabcar is installed and it…
Bess
  • 81
  • 1
  • 2
6
votes
0 answers

Hyperledger Fabric: ENDORSEMENT_MISMATCH on asset query

It seems like I misunderstand how Hyperledger Fabric processes a query. I'm currently using the fabric-go-sdk to query an asset from the ledger like asset, err := client.Query(channel.Request{ChaincodeID: someCCname, Fcn: "query", Args:…
Roper
  • 903
  • 1
  • 9
  • 17
4
votes
3 answers

Hyperledger Fabric chaincode installation on peer0.org1 has failed

I'am trying to follow the tutorial Using the Fabric test network for the latest Version (v2.2.1) and everything works fine, up to the point where i try to intsall the chaincode with ./network.sh deployCC. I get the following output: deploying…
tbh428
  • 65
  • 1
  • 4
4
votes
1 answer

How to fix "context finished before block retrieved: context canceled" occurred while instantiating chaincode?

The instantiation command completes successfully, but when analyzing peer logs, you may notice this: 2019-04-17 17:25:52.581 UTC [gossip.state] commitBlock -> DEBU 48c [canal-contrato] Committed block [1] with 1 transaction(s) 2019-04-17…
3
votes
1 answer

Is there any restriction on chaincode language for using Idemix in Hyperledger Fabric?

Using Idemix in Hyperledger Fabric to submit transactions I have been exploring idemix in hyperledger fabric v2.2. I tried submitting transactions via peer cli as idemix identity but it returns me an error when chaincode is in Java or Javascript,…
3
votes
1 answer

hyperledger-fabric-readthedocs.io tutorial, chaincode for developers, can't find package shim - FIXED

I worked out the solution to this problem as I was creating this post but figured I'd leave my trail of tears up here to maybe help other people who have run into the same thing. Ultimately the root of the problem was outdated instructions in the…
3
votes
2 answers

Gradle compile failed "Could not find com.github.everit-org.json-schema:org.everit.json.schema:1.11.1." in Hyperledger Fabric

I'm newbie to Hyperledger Fabric. When i instantiate the chaincode written in java after installed on peers from the cli container, there is something wrong: FAILURE: Build failed with an exception. * What went wrong: Could not resolve all files…
liuqi
  • 131
  • 1
  • 8
3
votes
2 answers

Vendored Chaincode has false dependencies

I have chaincode with the following directory structure $GOPATH/myproject/chaincode/mycc/go ├── mycc.go ├── chaincode │   └── chaincode.go └── vendor ├── github.com ├── ... Because of my usage of hyperledgers cid package, I use vendoring…
Roper
  • 903
  • 1
  • 9
  • 17
3
votes
1 answer

Hyperledger Fabric Go SDK: How to parse blocks

I'm using the Hyperledger Golang SDK for implementing a client to work with the ledger. My application relies on events being sent, however, I want to use BlockEvents so that I can be sure that the given data is written to the ledger already instead…
Roper
  • 109
  • 5
3
votes
2 answers

Hyperledger Fabric: implementing chaincode level access control

I want to implement a chaincode level access control to some method. So, for example, I want that the chaincode method called can be executed only if the user that has performed the request has a certein identity that match a field of the asset…
2
votes
1 answer

Can't invoke the chaincode

I got problems during my invoke. 1.) I rund following command: peer lifecycle chaincode querycommitted \ --channelID mychannel \ --name basic \ --cafile…
2
votes
1 answer

transaction id from getHistoryForKey() is always undefined in Hyperledger Fabric

I am working on Nodejs chaincode on Fabric 2.1, when I tried to fetch the history for a key. It returns the "Timestamp" and "value" correctly, but the tx_id in the iterator is always undefined. has anyone successfully retrived the associated…
2
votes
1 answer

Can't upload data to google cloud storage from a chaincode instance in hyperledger fabric

I tried to write a chaincode such that when it's executed in a peer instance, it uploads data to google cloud storage bucket. The file I'll be uploading is actually stored as small file chunks in a folder, so that different peers upload different…
2
votes
2 answers

What is the difference between fabric-chaincode-go and fabric-contract-api-go?

I am currently trying to learn Hyperledger Fabric , I managed to understand how to setup the network (Orderers, Peers, etc.) but now comes the part of the chaincode. But, I found two different git repos for (what I understand) can be used to create…
2
votes
0 answers

Error: Failed to connect before the deadline URL:grpc://localhost:7051

:~/Documents/test/education/LFS171x/fabric-material/tuna-app/$ node query.js Store path:/home/*******/Documents/test/education/LFS171x/fabric-material/tuna-app/hfc-key-store Successfully loaded user1 from persistence 2020-02-11T05:56:10.423Z -…
1
2 3
10 11