无法 运行 对等,因为无法初始化加密

Cannot run peer because cannot init crypto

我正在学习本教程(艺术拍卖超级账本结构): https://github.com/ITPeople-Blockchain/auction.

在 "Invoke APIs and Usage"(CLI 模式)步骤中,我尝试 运行 PostUsers 命令如下:

user@user-VirtualBox:~/go/src/github.com/hyperledger/fabric/build/bin$ ./peer chaincode invoke -l golang -n mycc -c '{"Function": "PostUser", "Args":["100", "USER", "Ashley Hart", "TRD", "Morrisville Parkway, #216, Morrisville, NC 27560", "9198063535", "ashley@itpeople.com", "SUNTRUST", "00017102345", "0234678"]}'

我收到以下错误: CEST [main] main -> ERRO 001 Cannot 运行 peer because cannot init crypto, missing /opt/gopath/src/github.com/hyperledger/fabric/msp/sampleconfig 文件夹

我运行这个命令:

export FABRIC_CFG_PATH=$PWD

现在出现以下错误:

panic: Fatal error when initializing core config : Error when reading core config file: Unsupported Config Type ""

goroutine 1 [running]:
panic(0x555f5b365cc0, 0xc4201c81f0)
    /usr/local/go/src/runtime/panic.go:500 +0x1a1
main.main()
    /home/user/go/src/github.com/hyperledger/fabric/peer/main.go:94 +0x852

截至目前,这个特定的示例应用程序尚未针对 Hyperledger Fabric v1.0 进行更新。基本上,您看到的错误是由于样本中涉及的各种角色缺少 msp 证书。我建议您探索 hyperledger/fabric-samples,因为它们与 1.0 版本保持一致。