HyperLedger锯齿赛斯入门错误2

时间:2018-09-30 10:30:20

标签: hyperledger hyperledger-sawtooth

我正在遵循Sawtooth Seth(https://sawtooth.hyperledger.org/docs/seth/releases/latest/getting_started.html)入门教程,但是无法在网络上设置帐户。网络在另一个外壳中正常运行。 (为简单起见,我删除了-aes128标志)

 lorenzo@MacBook-Air-di-Lorenzo ~ $ cd gitHubRepo/sawtooth-seth/
 lorenzo@MacBook-Air-di-Lorenzo ~/gitHubRepo/sawtooth-seth $ docker exec -it seth-cli bash
 root@a6caea38a1a8:/project/sawtooth-seth# openssl ecparam -genkey -name secp256k1 | openssl ec -out key-file.pem      

 read EC key
 writing EC key

 root@a6caea38a1a8:/project/sawtooth-seth# seth account import key-file.pem myalias

 error: Found argument 'myalias' which wasn't expected, or isn't valid in this context
USAGE:
seth account import <key-file> --pass-file <pass-file>
For more information try --help

root@a6caea38a1a8:/project/sawtooth-seth# seth account import key-file.pem --pass-file myalias

Error: No such file or directory (os error 2)

root@a6caea38a1a8:/project/sawtooth-seth# ls

bin  cli  common  contracts  key-file.pem  protos  tests

1 个答案:

答案 0 :(得分:1)

您在seth Docker容器中运行了seth-cli命令。 您需要在seth-cli-go容器中运行它,直到PR https://github.com/hyperledger/sawtooth-seth/pull/72合并为止。 编辑:这是合并2018-11-13。

类似这样的问题的好资源也是seth聊天频道 https://chat.hyperledger.org/channel/sawtooth-seth

相关问题