Hyperledger fabric 在Hyperledger Fabric 2.0中实现私有数据收集错误

Hyperledger fabric 在Hyperledger Fabric 2.0中实现私有数据收集错误,hyperledger-fabric,blockchain,hyperledger,Hyperledger Fabric,Blockchain,Hyperledger,我尝试在fabric 2.0网络中实现私有数据收集。当我尝试使用瞬态数据标志调用链码时遇到错误。 它无法识别该方法(“priv”) chaincode中的“priv”方法相当简单。它使用putPrivateData()方法存储私有数据 我已修复。该问题与chaincode的package.json中的shim api版本有关。我已修复该问题。该问题与chaincode的package.json中的shim api版本有关 Error: endorsement failure during in

我尝试在fabric 2.0网络中实现私有数据收集。当我尝试使用瞬态数据标志调用链码时遇到错误。 它无法识别该方法(“priv”)


chaincode中的“priv”方法相当简单。它使用
putPrivateData()
方法存储私有数据

我已修复。该问题与chaincode的package.json中的shim api版本有关。

我已修复该问题。该问题与chaincode的package.json中的shim api版本有关

 Error: endorsement failure during invoke. response: status:500 message:"error in simulation: transaction returned with failure: Error: You've asked to invoke a function that does not exist: priv"