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

Multiple chaincodes with multiple CouchDBs or one CouchDB with many data of one chaincode

I am trying to figure out the best practice on a case where I have a Hyperledger Fabric blockchain network and using CouchDB as the World State. Let's say we have one channel and I want to have some smart contracts that are divided into…
Rafail K.
  • 365
  • 3
  • 14
0
votes
0 answers

Custom marshaller and unmarshaller for HLF chaincode. Need to upgrade chaincode and change the data type of a field from float64 to string

How can we write Custom marshaller and unmarshaller for HLF chaincode? Need to upgrade chaincode and change the data type of a field from float64 to string. If we just replace the data type in struct (Asset), both CreateAsset and GetAsset fail at…
0
votes
0 answers

how to get Freeman chain code in OpenCV C++?

I have this code for contour detection and I also need to display the Freeman chain code, but for some reason it's not working and I don't really know how to fix it. #include #include #include…
user14769698
  • 27
  • 1
  • 8
0
votes
1 answer

Chaincode definition not agreed to by this org (Org1MSP)

When I try to run the following command to commit the chaincode, peer lifecycle chaincode commit -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls $CORE_PEER_TLS_ENABLED --cafile $ORDERER_CA --channelID testchannel --name…
0
votes
2 answers

How can I call one chaincode function inside another chaincode? [nodejs specific]

I'm using NodeJs to write the Hyperledger Fabric chaincode v2.x and using const { Contract } = require('fabric-contract-api') I have 2 sets of chaincode, one to maintain the user and its wallet amount, and 2nd contract has the information about the…
0
votes
1 answer

How can I rectify from Error: flag needs an argument: 'c' in -c?

I used the following command to initialise the chaincode after committing it to the hyperledger fabric test network. peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride orderer.example.com --tls $CORE_PEER_TLS_ENABLED --cafile…
0
votes
1 answer

Hyperledger Fabric: CouchDB doesn't show the worldstate of a channel

The HLF Version I use is 2.2 I set up my own network consisting of 3 Orgs, 1 Orderer and 2 Channels. The network is set up and I can call Chaincode Functions responding with 200. So far, so good. The problem is I don't see the worldstate in CouchDB.…
0
votes
1 answer

`peer lifecycle chaincode package`command for Node.js chainode not bundling node_modules

Hyperledger Fabric version: 2.2.4 Fabric Client: Fabric-Tools 2.2 Docker Image -…
0
votes
1 answer

Hyperledger Fabric Samples : Commercial Paper : what happens when magnetocorp.sh is executed?

In Hyperledger Fabric samples, what happens when magnetocorp.sh file is executed ? From official documentation, magnetocorp.sh is ran for setting admin environment variables. For setting admin in production system, do we have to follow the same…
0
votes
1 answer

How Chaincode features works in Hyperledger 2.x version?

How Chaincode features works? How following chaincode features are achieved Chaincode lifecycle flow is used in 2.x where all the organization have their say in chaincode to be used in channel in which chaincode definition is committed to ledger.…
0
votes
2 answers

json encode in golang fabric chaincode behavior

I've seen several articles with similar errors, but none seems to work for me. I've seen the marbles samples, as well as many others, and still can't pinpoint the error. I'm in fabric 2.x. The chaincode below works just fine when saving data, but…
0
votes
2 answers

"chaincode definition for 'fabcar' exists, but chaincode is not installed" Error when i try to invoke chaincode in HLF2.3

I'm following this tutorial — https://kctheservant.medium.com/multi-host-deployment-for-first-network-hyperledger-fabric-v2-273b794ff3d. I've successfully installed, approved and committed chaincode on both peers. These are installed chaincodes on…
0
votes
1 answer

windows 10 Error: chaincode install failed with status: 500

I am getting this error on windows 10 and the command I am using is "./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-javascript/ -ccl javascript" and the error I am getting is : Error: chaincode install failed with status:…
0
votes
0 answers

Deploying Chaincode to Hyperledger Fabric does not work

I tried to deploy a custom chaincode to my hyperledger test network. Therefore, I used the tutorial from https://www.youtube.com/watch?v=KFf1qzYP-bA&t=1380s and…