Hyperledger具有会员服务,该服务将一些初始成员保留在membersrvs.yaml文件中,例如lukas,jim等。
然后,用户必须登录到网络,方法是将restaumentid和密码发布到restapi / registrar。
我的问题是如何为CA中未定义的用户为网络创建新用户?似乎admin用户可以做到这一点,但是如何使用admin安全上下文调用/ registrar api?
谢谢
如果我想使用超级账本开发像比特币这样的系统,在这个系统中,每个用户都必须与一个验证节点相关联吗?
我想在Windows10上运行facbar-samples,请参考http://hyperledger-fabric.readthedocs.io/en/latest/write_first_app.html,但出现错误:
$ ./startFabric.sh
orderer.example.com is up-to-date
couchdb is up-to-date
peer0.org1.example.com is up-to-date
cli is up-to-date
2017-07-05 08:17:06.550 UTC [main] main -> ERRO 001 Cannot run peer because
cannot init crypto, missing /etc/hyperledger/fabric/C:/Program
Files/Git/etc/hyperledger/msp/users/Admin@org1.example.com/msp folder
Run Code Online (Sandbox Code Playgroud)
我已经安装的一些:
$ npm -v
5.0.4
$ node -v
v6.11.0
$ curl -V
curl 7.54.0 (x86_64-w64-mingw32) libcurl/7.54.0 OpenSSL/1.0.2l zlib/1.2.11
libssh2/1.8.0 nghttp2/1.23.1 librtmp/2.3
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3
pop3s rtmp rtsp scp sftp smtp smtps telnet tftp
Features: …Run Code Online (Sandbox Code Playgroud) 我正在尝试使用Hyperledger Fabric Chaincode for Developers教程。用于部署和调用链码的CLI链码命令正在运行。
如何在此处或此处的Fabric文档中启用REST API 。当前找不到文档https://github.com/hyperledger/fabric/blob/master/peer/core.yaml中提供的链接。
我正在虚拟机Ubuntu 14.04上编写本教程http://hyperledger-fabric.readthedocs.io/en/latest/build_network.html,然后运行脚本
./byfn.sh -m up启动网络.当我运行它来安装链码时:
peer chaincode install -n mycc -v 1.0 -p github.com/hyperledger/fabric/examples/chaincode/go/chaincode_example02
Run Code Online (Sandbox Code Playgroud)
我收到以下错误:
Error: Error endorsing chaincode: rpc error: code = Unknown desc = chaincode error (status: 500, message: Error installing chaincode code mycc:1.0(chaincode /var/hyperledger/production/chaincodes/mycc.1.0 exists))
Run Code Online (Sandbox Code Playgroud)
我怎样才能解决这个问题?
注意:我也跑 docker exec -it cli bash
以太坊中有“毒气”,而比特币根本不支持循环,我很好奇超级账本结构如何避免无限循环?
我一直遵循本教程的要求,直到遇到错误为止
错误:找不到卡:PeerAdmin @ hlfv1
在下面的命令中:
composer runtime install --card PeerAdmin@hlfv1 --businessNetworkName tutorial-network
Run Code Online (Sandbox Code Playgroud)
本教程说,通常必须创建一个peerAdmin身份,但他们已经创建了一个。
当我运行命令时./byfn.sh -m generate一切都很好.
我正在尝试使用该命令调出网络
./byfn.sh -m up
Run Code Online (Sandbox Code Playgroud)
但是我收到一个错误:
2018-03-28 08:47:19.896 UTC [main] main -> INFO 001 Exiting.....
LOCAL_VERSION=1.1.0
DOCKER_IMAGE_VERSION=1.1.0
orderer.example.com is up-to-date
Creating peer1.org2.example.com ...
Creating peer0.org2.example.com ...
Creating peer1.org1.example.com ... error
Creating peer0.org1.example.com ...
Creating peer1.org2.example.com ... error
ERROR: for peer1.org1.example.com Cannot create container for service peer1.org 1.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\ nis not a valid Windows path'
ERROR: for peer1.org2.example.com Cannot create container for service peer1.org 2.example.com: b'Mount denied:\nThe source path "\\\\var\\\\run:/host/var/run/"\ Creating peer0.org1.example.com ... …Run Code Online (Sandbox Code Playgroud) 我在Sawtooth上解雇了一笔交易.我可以使用API查看交易数据.我的问题是如何解码事务有效负载.
{
"header": {
"batcher_public_key": "03d58421f80cf7f2d51efd7f4fc28fd07a81de146f7d01acc70c9e5dcfdf2cc20f",
"dependencies": [],
"family_name": "document",
"family_version": "1.0",
"inputs": [
"7d5acb"
],
"nonce": "",
"outputs": [
"7d5acb"
],
"payload_sha512": "9be6b4029768c2dda71b86eed2b1ba441442ec56714b863993f12aeab09242ef84087bc53b0cfadb93bbf99bcc7cdb8e03d71b1158887c8c3735abafb9765a43",
"signer_public_key": "03d58421f80cf7f2d51efd7f4fc28fd07a81de146f7d01acc70c9e5dcfdf2cc20f"
},
"header_signature": "e4379a4a4f66c52677df299ddc136a968efb64fba9de30acdf230a719442cdc56c2cf55953c14bbc5cc68991a8bef156df3d32fcf6c37f201c279f6ad7065cab",
"payload": "o2RWZXJiY3NldGROYW1leCBlZjlkMThjZGIwYjNkZDNmNWU1ZWE2MDliZjY3MDhmOWVWYWx1ZWA="
}
Run Code Online (Sandbox Code Playgroud)
我想解码有效载荷":"o2RWZXJiY3NldGROYW1leCBlZjlkMThjZGIwYjNkZDNmNWU1ZWE2MDliZjY3MDhmOWVWYWx1ZWA=".
任何人都可以指导.