我正在学习锯齿赛斯(https://sawtooth.hyperledger.org/docs/seth/releases/latest/getting_started.html)的入门教程,但我无法在网络上设置帐户。网络在另一个shell中运行正常。(为简单起见,我删除了-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发布于 2018-10-02 02:11:53
您在seth-cli Docker容器中运行了seth命令。您需要在seth-cli-go容器中运行它,直到PR https://github.com/hyperledger/sawtooth-seth/pull/72被合并。编辑:这是2018年11月13日合并的。
对于这样的问题,一个很好的资源也是https://chat.hyperledger.org/channel/sawtooth-seth的赛斯聊天频道
https://stackoverflow.com/questions/52577048
复制相似问题