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

Hyperledger Fabric External builder Failed to generate a Dockerfile: Unknown chaincodeType: EXTERNAL

peer lifecycle chaincode install ../asset-transfer-basic/chaincode-external/asset-transfer-basic-external.tgz Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build…
junjie wu
  • 1
  • 1
0
votes
1 answer

Hyperledger fabric 2.3 unit testing

I'm new to hyperledger fabric and I'm trying to write unit tests for my chaincode. Im using version 2.3 with the contract.api for writing my chaincode. Now i try to unit test this but all the resources i find are outdated and use the deprecated…
Stephan
  • 1
  • 1
0
votes
1 answer

Different cross chaincode behavior for two different chaincode methods

I am invoking a cross chaincode from the set method of my chaindode and it properly records the information I send. However, when I invoke the cross chaincode from the get method, then the data is not recorded. To verify that it was not an…
sfl0r3nz05
  • 547
  • 8
  • 14
0
votes
0 answers

How to run hyperledger fabric

https://github.com/arefin97/Medicine_Supply_Chain Can anyone plzz tell me how to run this project based on hyperledger fabric. what are the steps and how to connect multiple computers for testing and how to run this because I'm getting too many…
0
votes
1 answer

Chaincode instantiate error in Hyperledger Fabric

Presently I have these configuration (TLS enabled) Org1 = Has two peers, peer0 and peer1 Org2 = Has two peers, peer0 and peer1 I have created a channel named : mychannel, all four peers have joined in it, and chaincode is installed onto four…
user15195885
0
votes
1 answer

Extract Freeman chain code of an object - Matlab

I am trying this code to generate a freeman chain code based on the code in https://www.crisluengo.net/archives/324 but it uses the DIPimage. Therefore, does someone has an idea how to by pass the dip_array function? Code: clc; clear all; Image =…
alirazi
  • 159
  • 8
0
votes
2 answers

Deploying chaincode failed (Ubuntu 18.04 fabric-sample)

I'm following the Hyperledger Fabric Doc, network.sh up and network.sh createChannel is running successfully. But when I run ./network.sh deployCC it's giving the below error No chaincode name was provided. Valid call example: ./network.sh deployCC…
Jeff Zhu
  • 3
  • 1
0
votes
4 answers

Error deploying chaincode in Hyperledger Fabric 2

I'm trying to deploy the chaincode: Hyperledger Fabric 2 Ubuntu 20.04 go version go1.13.8 linux/amd64 And I always getting this ERROR: alex@alex:~/fabric-samples/test-network$ ./network.sh deployCC deploying chaincode on channel…
AlexAcc
  • 601
  • 2
  • 10
  • 28
0
votes
1 answer

Getting different package ID for a chaincode - Hyperledger Fabric 2.2.0

I have an hyperledger fabric network (v2.2.0) running in a kubernetes cluster deployed using baf. Initially the network had 5 orgs (Org1, Org2, Org3, Org4 and Org5), later I tried to join an org (Org6) into the network using the baf script. Since…
Soundarya
  • 153
  • 1
  • 2
  • 12
0
votes
1 answer

One chaincode, Multiple assets

I am trying to create a chaincode with different assets types. Imagine that I have a chaincode where I store the users created and also the transactions where the users receive points. How can I create a chaincode in a way that I am able to…
catsdev
  • 83
  • 1
  • 1
  • 5
0
votes
1 answer

Caliper Error: Transaction returned with failure. The key already exists

I'm still on my journey to set up the Caliper for the first time. Hope you can save me :) Right know I got the error: Transaction returned with failure: User 1 already exists. when I try to launch the caliper benchmark. Because I do not allow to…
0
votes
2 answers

Hyperledger Fabric: How to keep chaincode-calling application and deployed chaincode in sync ? Any ABI equivalent feature?

There is no concept of ABI(Application Binary Interface) in Hyperledger fabric as it is there in Ethereum/Quorum. An ABI file in Quorum is generated while compiling the Smart-contract(chaincode), which is further used by the client-application as…
0
votes
1 answer

How to write struct onto ledger state

I am trying to write chaincode for Hyperledger that has a mapping, that stores struct values mapped to strings. This is my first time writing contracts for Hyperledger and also my first time using go and it appears I am not approaching this the…
0
votes
1 answer

Java Chaincode Query function provide blank JSON response in Fabric 2.2

I have created Java Chaincode and deployed it on Fabric 2.2 network. Everything seems to be working but when I do any query from the ledger, I am getting blank JSON Response. I don't see any issue in logs so seems like everything is working but…
0
votes
1 answer

Connecting Android to Hyperledger Fabric network

So I have a 4 organization (10 peers altogether, CLI and 1 orderer) Hyperledger Fabric network up and running on my PC. I use Docker and chaincode written in Go without any additional tools that Hyperledger offers. On the other side, I'm developing…