我正在按照 https://github.com/hyperledger/indy-node/blob/master/docs/source/start-nodes.md 的说明进行操作
我的操作系统是 Ubuntu 16.04.6 LTS。
我已经设法通过以下方式安装了印地节点
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys CE7709D068DB5E88
sudo bash -c 'echo "deb https://repo.sovrin.org/deb xenial stable" >> /etc/apt/sources.list'
sudo apt-get update
sudo apt-get install indy-node
现在在步骤2,它说:
set Network name in config file
the location of the config depends on how a Node was installed. It's usually inside /etc/indy for Ubuntu.
the following needs to be added: NETWORK_NAME={network_name} where {network_name} matches the one in genesis transaction files above
我很困惑,因为文档从未提到上面的任何"创世交易文件"。所以我决定在我的情况下设置NETWORK_NAME = sandbox
。
现在我开始使用命令init_indy_node Alpha 0.0.0.0 9701 0.0.0.0 9702 --seed 111111111111111111111111111Alpha
生成密钥,并收到错误:
Traceback (most recent call last):
File "/usr/local/bin/init_indy_keys", line 6, in <module>
from plenum.common.keygen_utils import initNodeKeysForBothStacks
File "/usr/local/lib/python3.5/dist-packages/plenum/__init__.py", line 87, in <module>
setup_plugins()
File "/usr/local/lib/python3.5/dist-packages/plenum/__init__.py", line 50, in setup_plugins
config = getConfigOnce()
File "/usr/local/lib/python3.5/dist-packages/plenum/common/config_util.py", line 106, in getConfigOnce
return _getConfig(general_config_dir)
File "/usr/local/lib/python3.5/dist-packages/plenum/common/config_util.py", line 87, in _getConfig
config.GENERAL_CONFIG_FILE))
File "/usr/local/lib/python3.5/dist-packages/plenum/common/config_util.py", line 32, in extend_with_external_config
config = getInstalledConfig(*extender)
File "/usr/local/lib/python3.5/dist-packages/plenum/common/config_util.py", line 26, in getInstalledConfig
spec.loader.exec_module(config)
File "/etc/indy/indy_config.py", line 2, in <module>
NETWORK_NAME = sandbox
NameError: name 'sandbox' is not defined
任何人都可以帮助创建节点密钥并初始化它们。
我已经参考了Hyperledger Indy:创建创世交易文件,看起来我的问题在此之前。
我也尝试过冯网络,我能够在 docker 映像中启动网络。
唯一的问题是我无法生成自己的密钥。
谢谢
好的。看起来我已经找到了原因:indy_config文件实际上是一个.py文件,而不是像 json 或 yml 这样的"纯"配置文件,我需要为NETWORK_NAME添加'