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

问题描述 投票:0回答:1

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

 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"

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

hyperledger-fabric blockchain hyperledger
1个回答
0
投票

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

© www.soinside.com 2019 - 2024. All rights reserved.