Hyperledger Indy:创建创世交易文件 [英] Hyperledger Indy: Create genesis transaction file

查看:243
本文介绍了Hyperledger Indy:创建创世交易文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在4个基于ubuntu的游荡机器上设置了4个节点.我已经使用命令init_indy_node VAL1 0.0.0.0 9701 0.0.0.0 9702 111111111111111111111111111N1生成了这些节点所需的密钥.根据文档,存在一个名为generate_indy_pool_transactions的脚本,该脚本生成具有预定义节点名称的密钥,即Node1,Node2并生成始终相同的密钥.

I have 4 nodes set up on 4 vagrant ubuntu-based machines. I have generated the keys required for these nodes using the command: init_indy_node VAL1 0.0.0.0 9701 0.0.0.0 9702 111111111111111111111111111N1. According to the documentation, there is a script named generate_indy_pool_transactions which generates the keys with predefined node names i.e Node1, Node2 and generates the keys that are always the same.

我想用生成的密钥创建我的自定义网络.我找不到任何文档来生成创世纪交易文件.

I want to create my custom network with my generated keys. I could not find any document to generate the genesis transaction file.

有什么方法可以生成此文件,以便引导网络?

Is there any way to generate this file so that I can bootstrap my network?

欢迎任何建议/评论.

推荐答案

欢迎您尝试使用genesis_from_files.py脚本:

Thewre is genesis_from_files.py script that you are welcome to try: https://github.com/sovrin-foundation/steward-tools/tree/master/create_genesis

如start-nodes.md所述,要设置池,需要执行以下操作:

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

  • 在配置文件中设置网络名称
  • 生成密钥(为此可以使用init_indy_node脚本)
  • 提供创世交易文件,将作为初始Pool的基础

Indy没有任何起源文件,因为这取决于基于Indy的网络(例如Sovrin起源).

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

Indy拥有的是generate_indy_pool_transactions脚本,该脚本仅应用于测试目的.它根据节点名称生成密钥(因此,如果在此处传递相同的节点名称,则每次密钥都是相同的.)

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).

因此,有关如何在Indy中创建创世纪文件的选项如下:

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

  • Create them manually.
  • Contribute to Indy creating a script for generation (I think the logic from generate_indy_pool_transactions can be used for this).
  • 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.
  • Use other helper scripts such as Sovrin Foundation's one: https://github.com/sovrin-foundation/steward-tools/tree/master/create_genesis (Sovrin is the main Indy deployment now).

这篇关于Hyperledger Indy:创建创世交易文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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