Questions tagged [hyperledger-chaincode]

448 questions
8
votes
1 answer

Hyperledger Fabric 2.0-beta Javascript Dev Mode

I'm running and adapting chaincode dev mode, for javascript chaincode, and for Fabric 2.0-beta. I launch the network and adapt the script.sh (client) to run: set -e peer channel create -c myc -f myc.tx -o orderer:7050 peer channel join -b…
raf
  • 42
  • 11
6
votes
3 answers

Hyperledger fabric 2.0 -chaincode as external service:Unknown chaincodeType: EXTERNAL

I am trying to set up the chain code as an external service as is specified in the official doc First thing is to set up the externalBuilder variable chaincode: externalBuilders: - name: my-golang-builder path: /builders/golang In my peer…
shamon shamsudeen
  • 5,466
  • 17
  • 64
  • 129
6
votes
2 answers

failed to create new connection: desc = transport: error while dialing: dial tcp 172.19.0.4:9051: connect: connection refused Hyperledger fabric

Can anyone help me fixing below error. I'm trying to install chaincode on peer via cli. I configured cli container correctly. But somehow Im getting this error.. grpc: addrConn.createTransport failed to connect to {peer0.org1.example.com:7051 0…
5
votes
1 answer

Error in committed chaincode invoke/query with hyperledger fabric 2.0

I have successfully committed the chaincode with command: ./peer lifecycle chaincode commit -o orderer.example.org:7050 --channelID mychannel --name emp_chaincode --version v1 --sequence 1 --init-required --tls --cafile…
5
votes
3 answers

Chain Code not deploying on Test Network after executing the deployment script in Hyperledger Fabric 2.0 documentation

I ran the script ./network.sh deployCC, then its not able to deploy it on the network(Fabric 2.0), this is the error: deploying chaincode on channel 'mychannel' Vendoring Go dependencies ... ~/Desktop/Fabric/fabric-samples/chaincode/fabcar/go…
Sanket Shevkar
  • 135
  • 1
  • 2
  • 9
5
votes
1 answer

Hyperledger Fabric 1.4 Private data collection

Hyperledger fabric provides inbuilt support storing offchain data with the help of private collections. For this we need to specify the collection config which contains various collection names along with the participants that has access to data…
4
votes
3 answers

Instantiation of Chaincode using Fabric Node SDK gives API error (404): manifest for hyperledger/fabric-ccenv:latest not found

I am trying to instantiate a Golang chaincode on my Hyperledger Fabric network (setup on cloud) using Fabric Node SDK. However, I am facing the following error while performing the same: Error: error starting container: error starting container:…
4
votes
1 answer

How can I change consensus algorithm in Hyperledger sawtooth-supply-chain api (FishNet example)?

I am trying to change my consensus algorithm in the FishNet example. In /sawtooth-supply-chain-master/fish_client/public/dist/bundle.js file I found this: consensus":{"type":"bytes","id":5} Does anybody knows what is the mapping of consenus ids in…
4
votes
1 answer

Hyperledger private data dynamic access

Is it possible to dynamically set access to private data in Hyperledger fabric 1.4? Unlike the collections file where we have to add the organizations that can have access to a particular "collection", is it possible to add access through chaincode?
4
votes
1 answer

Hyperledger Fabric Chaincode Development Language - NodeJS, Java, or Go?

With consideration of existing functionality, developer productivity (assuming minimal experience in each language), support within the Fabric community, and roadmap for enhancements, is there any chaincode development language that should be…
DC-OHIO
  • 45
  • 7
3
votes
1 answer

Fabric Smart Contracts in Kotlin

We are looking at building smart contracts in Kotlin language, even though its not officially a supported language. The reasons are - It compiles down to Java bytecode.. So from a JVM point of view, its no different to java Its a very expressive…
Srikumar S
  • 46
  • 3
3
votes
1 answer

Hyperledger Fabric, how to share private data with another peer node?

I am exploring a bit more about Hyperledger Fabric, and have become interested in private data. From what I understand, when a peer node creates private data, it is stored on that node, together with the hash of that private data. Unauthorized nodes…
BRNHINLT
  • 33
  • 3
3
votes
1 answer

Can putState() and putPrivateData() be used in the same chaincode?

I understand that using a putState() in a transaction would be logged in the ledger, where as putPrivateData() would result in a hash being stored on the ledger. What happens if both are used in one transaction? Would the private data be viewable on…
3
votes
1 answer

how do to with fabric chaincode return “Additional property records is not allowed”

I got a error when I write chaincode with "github.com/hyperledger/fabric-contract-api-go/contractapi" type PaginatedQueryResult struct { Records []asset `json:"records"` FetchedRecordsCount int32 `json:"fetchedRecordsCount"` …
tututt
  • 53
  • 3
3
votes
1 answer

Hyperledger Fabric v2 new chaincode lifecycle install problem with dind vm endpoint + tls

having trouble with new v2 chaincode lifecycle, I am using docker vm dind endpoint https://127.0.0.1 with tls on, peer has all docker client crypto material…
1
2 3
29 30