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
4

1 回答 1

1

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

解决此类问题的好资源也是 https://chat.hyperledger.org/channel/sawtooth-seth上的 seth 聊天频道

于 2018-10-01T18:11:53.443 回答