如何生成pool_transactions_genesis和domain_transactions_genesis? [英] How do you generate pool_transactions_genesis and domain_transactions_genesis?

查看:143
本文介绍了如何生成pool_transactions_genesis和domain_transactions_genesis?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建Hyperledger-Indy网络,并一直遵循阅读文档.

我可以启动空白的indy-node docker容器,并能够使用init_indy_node和我的种子生成它们的密钥.

我找不到有关如何使用上面生成的密钥生成 pool_transactions_genesis domain_transactions_genesis 的说明.我唯一能找到的就是命令generate_indy_pool_transactions,但这只会创建一个通用的引导沙箱网络,该网络始终具有相同的密钥,并且不使用使用我选择的种子创建的密钥.

您如何生成这些创世纪文件?

解决方案

readthedocs.

I can spin up blank indy-node docker containers and have been able to generate their keys using init_indy_node with my seed.

I can't find instructions on how to generate pool_transactions_genesis and domain_transactions_genesis using the keys generated above. The only thing I can find is the command generate_indy_pool_transactions but this just creates a generic bootstrap sandbox network that always has the same keys and does not use the ones created above using my selected seed.

How do you generate these genesis files?

解决方案

As described start-nodes.md, in order to setup a pool the following actions are needed:

  • set Network name in config file
  • generate keys (init_indy_node script can be used for this)
  • provide genesis transactions files which will be a basis of initial Pool

Indy doesn't have any genesis files going with it since this is up to Indy-based Networks (such as Sovrin genesis).

What Indy has is a generate_indy_pool_transactions script which should be used for test purposes only. It generates keys based on the Nodes names (so if the same Node names are passed there, then the keys will be the same every time).

So, there are the following options on how to create genesis files in Indy:

  1. Create them manually.
  2. Contribute to Indy creating a script for generation (I think the logic from generate_indy_pool_transactions can be used for this).
  3. Run generate_indy_pool_transactions (which will generate keys and genesis files), then re-init keys correctly and modify the genesis files from generate_indy_pool_transactions to point to correct keys.

这篇关于如何生成pool_transactions_genesis和domain_transactions_genesis?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆