コード例 #1
0
ファイル: faber.py プロジェクト: xxjoshuaxx/hyperledgertest
        schema_id = await bootstrap_schema(agent, 'Transcript', 'Transcript',
                                           '1.9', primes["prime1"][0],
                                           primes["prime1"][1])

    await agent._set_available_claim_by_internal_id(1, schema_id)
    await agent._set_available_claim_by_internal_id(2, schema_id)
    await agent._set_available_claim_by_internal_id(3, schema_id)
    await agent._set_available_claim_by_internal_id(4, schema_id)


if __name__ == "__main__":
    args = RunnableAgent.parser_cmd_args()
    name = "Faber College"
    port = args.port
    if port is None:
        port = 5555
    network = args.network or 'sandbox'
    with_cli = args.withcli

    config = getConfig()
    base_dir_path = os.path.expanduser(
        os.path.join(config.CLI_NETWORK_DIR, network))

    agent = create_faber(name=name,
                         wallet=buildAgentWallet(name, FABER_SEED),
                         base_dir_path=base_dir_path,
                         port=port)
    RunnableAgent.run_agent(agent,
                            bootstrap=bootstrap_faber(agent),
                            with_cli=with_cli)
コード例 #2
0
def buildAcmeWallet():
    return buildAgentWallet("AcmeCorp", b'Acme0000000000000000000000000000')
コード例 #3
0
def buildThriftWallet():
    return buildAgentWallet("ThriftBank", b'Thrift00000000000000000000000000')
コード例 #4
0
def buildFaberWallet():
    return buildAgentWallet("FaberCollege",
                            b'Faber000000000000000000000000000')
コード例 #5
0
ファイル: faber.py プロジェクト: chriswinc/indy-node
                                           'Transcript',
                                           '1.2',
                                           primes["prime1"][0],
                                           primes["prime1"][1])

    await agent._set_available_claim_by_internal_id(1, schema_id)
    await agent._set_available_claim_by_internal_id(2, schema_id)
    await agent._set_available_claim_by_internal_id(3, schema_id)
    await agent._set_available_claim_by_internal_id(4, schema_id)


if __name__ == "__main__":
    args = RunnableAgent.parser_cmd_args()
    name = "Faber College"
    port = args.port
    if port is None:
        port = 5555
    network = args.network or 'sandbox'
    with_cli = args.withcli

    config = getConfig()
    base_dir_path = os.path.expanduser(
        os.path.join(
            config.CLI_NETWORK_DIR, network
        ))

    agent = create_faber(name=name, wallet=buildAgentWallet(
        name, FABER_SEED), base_dir_path=base_dir_path, port=port)
    RunnableAgent.run_agent(
        agent, bootstrap=bootstrap_faber(agent), with_cli=with_cli)
コード例 #6
0
ファイル: helper.py プロジェクト: chriswinc/indy-node
def buildThriftWallet():
    return buildAgentWallet("ThriftBank", b'Thrift00000000000000000000000000')
コード例 #7
0
ファイル: helper.py プロジェクト: chriswinc/indy-node
def buildAcmeWallet():
    return buildAgentWallet("AcmeCorp", b'Acme0000000000000000000000000000')
コード例 #8
0
ファイル: helper.py プロジェクト: chriswinc/indy-node
def buildFaberWallet():
    return buildAgentWallet(
        "FaberCollege", b'Faber000000000000000000000000000')