Questions tagged [hyperledger-fabric-sdk-go]

Questions involving hyperledger/fabric-sdk-go which is a golang library for accessing hyperledger fabric networks.

golang library for accessing hyperledger fabric networks

68 questions
1
vote
0 answers

hyperledger-fabric v1.1.0: register user with attributes fails

At work we are using the ibm cloud blockchain 1.1.0 and it is required to create a user with attributes encoded in the certificate. Unfortunately trying to encode this fails with the following error. Error Code: 20 - Authorization failure …
1
vote
0 answers

Hyperledger Go SDK v1.0.0-alpha3 not compatible with fabric v1.1.0

Hi I have a project that uses hyperledger/fabric-sdk-go v1.0.0-alpha3 and hyperledger/fabric v1.1.0. When I run dep ensure, I got this error. Solving failure: No versions of github.com/milagro-crypto/amcl met constraints: master: Could not…
angelokh
  • 9,426
  • 9
  • 69
  • 139
0
votes
0 answers

How can I set an insecure connections between endorser peers?

I am having problem with the Fabric SDK (fabric v. 2.2). It is working when I call from the terminal (peer chaincode query/invoke), but it cannot establish a connection with the other peers when I am using the golang SDK. I had a similar problem…
0
votes
0 answers

abric go sdk1.0.0 execute [cli.Execute()] get an error "error registering for TxStatus event: no peers to connect to"

When I use fabric go sdk1.0.0 to access the fabric network and execute [cli.Execute()] and try to write data, I get an error "error registering for TxStatus event: no peers to connect to" I can guarantee that my sdk can access the peer node…
axl
  • 1
  • 2
0
votes
0 answers

How to fix hyperledger/fabric issue (undefined: discovery.ChaincodeCall) after updating go lang to 1.20?

I have working project in Go lang which uses 'farbic-sdk-go'. I'm using those packages: github.com/hyperledger/fabric-contract-api-go v1.2.1 github.com/hyperledger/fabric-sdk-go v1.0.0 I updated Go lang version from 1.13 to 1.20 and now I got this…
0
votes
1 answer

fabsdk/util configure MSP failed: sanitizeCert failed the supplied identity is not valid: x509: certificate signed by unknown authority

When I run fabric-sdk-go code in the fabric network,some certificate problem happened to me. Firstly, when i create the fabric sdk client, I got a warnning: [fabsdk/util] 2023/02/20 13:04:42 UTC - lazyref.(*Reference).refreshValue -> WARN Error -…
0
votes
1 answer

Hyperledger Fabric2.4.7 testnetwork- how can I read an other Orgs implicit private data collection

Now, I am using the fabric 2.4.7 version of the test network on ubuntu20.04. This network has an order node and two peer nodes peer0.org1 and peer0.org2. I tried to use implicit private data collection, using the default configuration. According to…
0
votes
1 answer

Adding data to a PDC from an orderer peer - Hyperledger Fabric

Let's say I manage a Hyperledger Fabric Network and I have control on the orderer peers of the orderer organization. Is it possible for me to submit data to a PDC of another org, using an orderer peer to do it? Do the policies of the PDC allow…
0
votes
0 answers

I encountered some problems when I tried to connect the chaincode with the go program.* '***.Registrar' expected a map, got 'slice'

I wrote the configuration file connect.yaml and tried to connect the chaincode with the go program. But the following error occurred: 2021/08/29 17:10:04 Failed to connect to gateway: Failed to apply config option: failed to initialize…
0
votes
1 answer

Is Gateway Programming Model the New Normal?

So I have been trying to find tutorials and examples using packages other than the gateway package from Hyperledger Fabric Client SDK for Go. I only found a couple old ones; before 1.4. Plus, the Hyperledger Fabric documentation is entirely focused…
0
votes
1 answer

Fabric sdk go app can't connect to orderer on SaveChannel

I'm trying to deploy my app in fabric sdk go for my hyperledger fabric network, but i have the following error when using the SaveChannel function: "Unable to initialize the Fabric SDK: failed to save channel: create channel failed: SendEnvelope…
0
votes
2 answers

asset-transfer-basic blows up with "SendTransaction failed: orderers is nil"

I am trying to run asset-transfer-basic sample program from hyperledger 2.2 (I am using the GO sample programs) My test network is up -- I am able to interact with it by doing "peer chaincode invoke" and exercising different contract methods --…
alernerdev
  • 2,014
  • 3
  • 19
  • 35
0
votes
1 answer

How to get the data stored in the ledger via TxnID in fabric-sdk-go?

I have stored a data let's say ABC in the Ledger and got X123 as a Transaction hash in response. Now, I want to use this transaction hash X123 to fetch the data ABC from the ledger. I found this package which provides the method…
metadata
  • 1,139
  • 1
  • 7
  • 28
0
votes
1 answer

How do I get the transaction timestamp from a block?

How can I use fabric-sdk-go to get the transaction timestamp from the block?
0
votes
2 answers

Orderer and peer containers not starting.I am using hyperledger/fabric 2.0.0-alpha version

currently I am trying to run basic-network .after starting orderer its existing with following errors. panic: [channel ordererchannel] config requires unsupported channel capabilities: Channel capability V2_0 is required but not supported: Channel…