连接到现有池的 hyperledger indy

hyperledger indy connecting to an existing pool

我正在尝试连接到现有的独立池

GitHub 中的 Indy-sdk 池 python 包装器似乎没有关于现有池的任何信息,但我不确定

我想知道是否无法使用 Indy 连接到现有池,或者如果不能,如何连接?

您确实可以连接到您想要的任何 IndySDK 分类帐。你所需要的只是它的起源文件。例如,这里有一些您可以连接到的 Sovrin 网络:

创世文件包含有关网络节点及其 bls 密钥的信息,因此您的客户端知道在哪里连接到它们并验证连接的真实性。

要连接到任意分类账,您只需向 pool.create_pool_ledger_config 提供创世文件,然后使用 pool.open_pool_ledger 实际连接到矿池。

这是一个简短的例子:

    # 1. Create ledger config from genesis txn file
    pool_config = json.dumps({"genesis_txn": str(pool_genesis_txn_path)})
    await pool.create_pool_ledger_config(pool_name, pool_config)

    # 2. Open pool ledger
    pool_handle = await pool.open_pool_ledger(pool_name, None)

取自 IndySDK Python 包装器演示 here