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

Hyperledger Fabric error: signature set did not satisfy policy

I've created a network configuration with 2 orgs, each one with 1 peer and CA. I've successfully installed and instantiated my chaincode on both peers But after invoking a transaction this error occurs on both…
0
votes
1 answer

Error installing chaincode in several organizations in Hyperledger Fabric network. Could not find config file

I have been adding several organisations to my hyperledger fabric network. I am using fabric 1.4.1 with the following CLI configurations: container_name: cli-org1 image: hyperledger/fabric-tools:1.4.1 tty: true environment: -…
0
votes
1 answer

send messages one organization admin to another organization admin in hyperleger fabric

I am building one POC using Hyperledger fabric, Is it possible to send messages from one organization admin like money details to another organization admin and he sends the (agree/denied) message?
0
votes
1 answer

Cannot find module ledger-api/state.js on chaincode instantiation

I'm trying to instantiate a chaincode after I installed it succesfully with the following command docker container exec -it cli peer chaincode install -n mycontract p /opt/gopath/src/github.com/sacc -v 1.0 -l node and when I try to instantiate it…
d3v9
  • 97
  • 6
0
votes
0 answers

Hyperledger fabric chaincode instantiation fail

Chaincode instantiation fails with the following error: Error: could not assemble transaction, err proposal response was not successful, error code 500, msg chaincode registration failed: container exited with 0 Edit: To provide more clarity I…
0
votes
0 answers

Hyperledger Fabric invokeChaincode

I want to invoke another chaincode inside a chaincode using ctx.stub.invokeChaincode("called chaincode name", ["the name of the function (transaction) of the called chaincode", args]), and my both chaincodes has been instantiated on the same…
ethertest
  • 317
  • 4
  • 13
0
votes
1 answer

Is it possible to use goroutines in hyperledger fabric chaincode?

I am trying to perform multiple queries using shim.GetQueryResults API using goroutines simultaneously. But it's failing but when I do that normally without goroutines sequentially its working properly. Any thoughts?
0
votes
2 answers

Chaincode registration failed

I have tried to instantiate nodejs chaincode on multiple host environment and resulted in chaincode registration error. Golang smart contract worked perfectly in multiple host env. Error : could not assemble transaction. err propseal response was…
0
votes
1 answer

[Hyperledger-Composer]Attempt to get property owner on an InvalidRelationship is not allowed - ACL Issue

I am getting bellow error while playing around Hyperledger Composer. { "$class": "org.property.registration.purchaseProperty", "propertyListing": "resource:org.property.registration.PropertyListing#PL001" } Error: attempt to get property…
0
votes
2 answers

Get MSPID from a command line request in chaincode

I'm currently trying to evaluate the requester MSPID to authorize a specific list of Members being able to request a function on chaincode, but when I ask for "stub.getCreator().mspId" it always give me "undefined" I'm currently calling the function…
0
votes
0 answers

failed to instantiating chaincode in IBM Blockchain Platform

Basically, I am following this https://cloud.ibm.com/docs/services/blockchain/howto?topic=blockchain-ibp-console-smart-contracts#ibp-console-smart-contracts-connect-to-SDK to deploy a smart contract from my local network to IBM Blockchain Platform.…
SpicyFish
  • 53
  • 4
0
votes
1 answer

Can't invoke chaincode from SDK

I can invoke chaincode from my peer by the following command: peer chaincode invoke -o coreOrderer.dip.com:7050 --tls --cafile /etc/hyperledger/tlsca.dip.com-cert.pem --tlsRootCertFiles /etc/hyperledger/fabric/tls/ca.crt -C dipchannel -n mycc…
0
votes
1 answer

How to fix "syntax error: unexpected shim, expecting comma or )" in chaincode?

I have the chaincode, which should encrypt data and put to ledger and do query. I have updated fabric binaries, but in other fabric samples chaincodes this line is the same and do not have any errors. func (s *SmartContract) queryPatient(APIstub…
0
votes
1 answer

How to store Private Key in state ledger Hyperledger Fabric

I have a problem storing a generated ecdsa Private Key in the database of Hyperledger Fabric. What I am doing is using the ecdsa.GenerateKey(elliptic.P224(), rand.Reader) function that ecdsa provides and trying to store that key in the ledger with…
Rafail K.
  • 365
  • 3
  • 14
0
votes
1 answer

Wants to deploy chaincode written in golang to aws cloud

I have written my chaincode in golang and now I want to deploy it on a cloud (aws). Is the golang file enough to deploy it or do I need to package additional files for deployment?