HyperLedger Sawtooth Seth入门错误2

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

我正在关注Sawtooth Seth(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
hyperledger hyperledger-sawtooth
1个回答
1
投票

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

像这样的问题的一个很好的资源也是https://chat.hyperledger.org/channel/sawtooth-seth的第四个聊天频道

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