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

Hyperledger Caliper transaction lifecycle error: proposed response error by peer 2 UNKNOWN: access denied channel [] creator org

I want to use Hyperledger Caliper to test my chaincode but encountered some problems. The hyperledger fabric network is start by the byfn.sh up command. I use the command npx caliper benchmark run --caliper-workspace . --caliper-benchconfig…
liuqi
  • 131
  • 1
  • 8
2
votes
0 answers

Hyperledger Fabric: peer chaincode instantiate error in java class

" I'm new to fabric and trying to install & instantiate a java chaincode in "mychannel" on fabcar network, where the install operation has been completed successfully but while instantiate getting the below error can anyone help on…
2
votes
1 answer

Can Hyperledger Fabric chaincode call an external local application/binary?

I have a scenario in which it would be required for the chaincode to call an external application to do a complex proprietary job. I know that it is basically possible (also not recommended) to call an external service e. g. via HTTP. However, I'd…
Roper
  • 109
  • 5
2
votes
3 answers

failed to get chaincode container info for mycc:1.0 while executing peer chaincode query for multi machine

I am trying to setup a hyperledger network with 2 orgs running on 2 different physical machine. So machine 1 has orderer, peer0.org1, peer1.org1, ca-org1, couchdb1, couchdb2 and cli containers. Machine 2 has peer0.org2, peer1.org2, ca-org2,…
1
vote
0 answers

Hyperledgerfabric nodeJS - chaincode API - Error: spawn E2BIG

I have a Data61Bpmn2Chaincode Project where there is a nodeJS server running which handle post reqeuests to chaincode API where a couchDB is also running. I want to store a large JSON (4kb, 16KB, 128KB, 512KB, 8MB, 16MB). The first two large…
sebi
  • 21
  • 8
1
vote
1 answer

go lang chaincode is not installed on hyperledger fabric peer with return build error, even if it is build successfully out side the fabric network

I am installing chaincode on hyperledger fabric 2.5 peers, but return error Error: chaincode install failed with status: 500 - failed to invoke backing implementation of 'InstallChaincode': could not build chaincode: docker build failed: docker…
rbadrana
  • 21
  • 1
1
vote
1 answer

How to check if a username exists in my Golang chain code for Hyperledger Fabric?

In the chain code for Hyperledger Fabric, is it possible to check if an identity exists with a given name? that is, something like this: func (c *SmartContract) UserExists(ctx contractapi.TransactionContextInterface, username string) bool { //…
1
vote
1 answer

Command peer not found while initializing the ledger with assets. - Hyperledger Fabric 2.5

I'm following this documentation: https://hyperledger-fabric.readthedocs.io/en/release-2.5/getting_started.html Run the following command of section "Interacting with the network" peer chaincode invoke -o localhost:7050 --ordererTLSHostnameOverride…
KT023
  • 29
  • 3
1
vote
1 answer

how to read asset on hyperledger fabric?

https://github.com/hyperledger/fabric-samples/blob/main/asset-transfer-basic/chaincode-go/chaincode/smartcontract.go I installed the above contract on my blockchain network on Kaleido platform. I created an asset like this : { "headers": { …
Sunil Kumar
  • 6,112
  • 6
  • 36
  • 40
1
vote
0 answers

panic: interface conversion: ast.Expr is *ast.CallExpr, not *ast.Ident, what will be the solution?

I am getting errors while running the chaincode analyzer for the go smart contract. Target Files: [fabcar.go] panic: interface conversion: ast.Expr is *ast.CallExpr, not *ast.Ident goroutine 1…
1
vote
1 answer

Hyperledger Fabric: Using GetHistoryFromKey with Golang

I was trying to implement GetHistoryFromKey() in my Golang Chaincode, but I just get the current token state all the time (and not historic). My Hyperledger Fabric network (latest version) is very basic for this issue. I am using the fabcar…
hejte
  • 21
  • 2
1
vote
1 answer

Hyperledger Fabric - Instantiate Chaincode - "go.mod file not found"

Within my CLI container, I'm able to install the chaincode with no problems, but when I try to instantiate it, it returns the following error. My GOPATH is set to /opt/gopath in the cli container. The directory of my chaincode folder in the cli…
1
vote
1 answer

Hyperledger Fabric - peer chaincode instantiate - " failed to create new connection: context deadline exceeded "

Im trying to instantiate my chaincode on my hyperledger fabric network of 3 peers and 3 orderers, but im getting the error: Failed to create new connection: context deadline exceeded Here is a screenshot of the logs from both peer1 and iorderer1…
1
vote
1 answer

How to get query transaction id from AWS managed blockchain using chaincode

I am not able to get transaction id from AWS managed blockchain using chaincode's stub.getState(key) method. Please suggest..
Malatesh Patil
  • 4,505
  • 1
  • 14
  • 14
1
vote
2 answers

Is there are workaround for Hyperledger Fabric peer node to call an trusted external API?

I know it's not recommended to perform an API call from a Chaincode to a non-deterministic service. Let's say we have a trusted API and the call doesn't need to be endorsed by all the peers in the network. What would be the best design pattern to…
TharinduRanathunga
  • 221
  • 1
  • 4
  • 9
1
2
3
10 11