我正在按照https://github.com/hyperledger/indy-node/blob/master/docs/source/start-nodes.md
上的说明进行操作我的操作系统是Ubuntu 16.04.6 LTS。
我已经按照以下步骤安装了indy-node
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: Create genesis transaction file,并且看来我的问题早于此。
我也尝试了von-network,并且能够在docker映像中启动网络。
唯一的问题是我无法生成自己的密钥。
谢谢
答案 0 :(得分:0)
好..看来我已经找到了原因:indy_config文件实际上是一个.py文件,而不是像json或yml这样的“纯”配置文件,我需要为NETWORK_NAME添加'
>