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
0 answers

hyperledger-fabric - unable to install chaincode

I am using "fabcar" in fabric samples when i am using "./startFabric.sh javascript" option , I am getting below error Anchor peer set for org 'Org2MSP' on channel 'mychannel' Channel 'mychannel' joined Using docker and docker-compose deploying…
0
votes
1 answer

Error: could not assemble transaction: ProposalResponsePayloads do not match (base64):

i run this function in chaincode under hyperledger fabric: func (c *SmartContract) InitiateUser(ctx contractapi.TransactionContextInterface, userID string) error { // Generate a new ECC key pair curve := elliptic.P256() // Use P-256 curve …
0
votes
1 answer

Getting the following error- "Chaincode definition approved on peer0.org1 on channel 'mychannel' failed Deploying chaincode failed"

While running the following command, I'm getting the above error. Command: ./network.sh deployCC -ccn basic -ccp ../asset-transfer-basic/chaincode-go -ccl go More details: Query installed successful on peer0.org1 on channel Using organization 1 +…
0
votes
1 answer

TypeScript chaincode invocation is failing from fabric samples

When i run the test-network from fabric samples 2.2 and try to install and invoke the typescript chaincode for fabcar. From the packaging to commit stage everything runs smoothly but on invocation it gives me error and the docker container…
0
votes
1 answer

Can I Use Jenkins to deploy Hyperledger Fabric Chaincode?

Dear Community / Support, I'm new to Jenkins. I would like to ask is there possible for me to deploy Hyperledger Fabric Chaincode using Jenkins? Thanks.
Jsim
  • 1
0
votes
2 answers

Chaincode HLF store variables with additional info

i am using a hlf system based on chaincode to show how smart contracts could be created. Now i am stuck with (in my mind) a very easy problem i guess. I want to store a data objects content as key-value pair on the chains couchDb state database. I…
sebi
  • 21
  • 8
0
votes
2 answers

What is the life cycle of a Hyperledger Fabric chaincode?

I'm trying to understand the life cycle of a Hyperledger Fabric chaincode and how it's different from the life cycle of a traditional application. Can someone explain the different stages that a chaincode goes through, and what happens at each…
0
votes
1 answer

How to interact multiple chaincode in go lang for hyperledger fabric

How to interact multiple chaincode in go lang for hyperledger fabric how to call one function into another chaincode in hyperledger fabric
0
votes
1 answer

Is it possible to modify the docker container produced when committing chaincode in the test-network of Hyperledger fabric?

I'm using the hyper-ledger fabric test-network. I created a simple Chaincode that performs, among other tasks, json validation, which simply means that this function takes 2 Json files as parameters and says whether or not these Json files are…
0
votes
0 answers

: Invalid option. (try: source chaincode_lifecycle.sh help)

I am trying to execute this example Supply chain. In step 3 while running this cmd ./chaincode_lifecycle.sh . I face this error.ricky@rr:~/fabric/fabric-samples/supply-chain-management-using-hyperledger-fabric-master/supplychain-network$…
0
votes
1 answer

Error after fabcar chaincode modify-Error: No valid responses from any peers

I am following a tutorial and trying to change the chaincode of fabcar . However i am getting this error. $ cd fabcar/javascript $ node enrollAdmin.js Wallet path: /home/ricky/fabric/fabric-samples/fabcar/javascript/wallet Successfully…
0
votes
1 answer

fabric chaincode invocation arguments usage

When in invoking a chaincode, what is the correct way of selecting the method you wish to invoke, for example, the following commands works and produce same results: peer chaincode invoke -n basic_go -C mychannel -c…
Matias Salimbene
  • 510
  • 6
  • 19
0
votes
0 answers

Hyperledger Fabric ProcessProposal -> Failed to invoke chaincode channel= chaincode=_lifecycle

I am running Hyperledger Fabric and while trying to install the chaincode on peer0.org1, "peer lifecycle chaincode install basic.tar.gz", I run into some errors and can not install it -- Error: chaincode install failed with status: 500 - error in…
0
votes
1 answer

CouchDB invalid bookmark value-Hyperledger fabric

When i run this command. Which says "query that is not supported by the index." From this link https://hyperledger-fabric.readthedocs.io/en/release-2.2/couchdb_tutorial.html#use-best-practices-for-queries-and-indexes peer chaincode query -C…
0
votes
1 answer

How to get block hash inside chaincode hyperledger fabric

Currently I'm working with Hyperledger Fabric chaincode and trying to get the hash of last block but I haven't found any way to get it. I need my chaincode to access this hash to do a security check. I have tried to invoke qscc from my chaincode,…