英文指南:https://github.com/hyperledger/indy-sdk/blob/master/doc/getting-started/getting-started.md#step-3-getting-the-ownership-for-stewardss-verinym
翻译版:https://blog.csdn.net/li_jiachuan/article/details/82904143
样例代码:https://github.com/hyperledger/indy-sdk/blob/master/samples/python/src/getting_started.py
logger.info("Getting started -> started")
# Steward Agent
pool_name = 'pool1'
logger.info("Open Pool Ledger: {}".format(pool_name))
# 获得 genesis transaction path
pool_genesis_txn_path = get_pool_genesis_txn_path(pool_name)
pool_config = json.dumps({"genesis_txn": str(pool_genesis_txn_path)})
# Set protocol version 2 to work with Indy Node 1.4
await pool.set_protocol_version(PROTOCOL_VERSION)
try:
# 创建 nodes pool
await pool.create_pool_ledger_config(pool_name, pool_config)
except IndyError as ex:
if ex.error_code == ErrorCode.PoolLedgerConfigAlreadyExistsError:
pass
# 打开跟 nodes pool 的连接
pool_handle = await pool.open_pool_ledger(pool_name, None)
logger.info("========&#