def generate_test_info(seed=None):
    """Generate connection information from seed."""
    test_keys = StaticConnection.Keys(*crypto.create_keypair(seed))
    test_keys_b58 = StaticConnection.Keys(
        crypto.bytes_to_b58(test_keys.verkey),
        crypto.bytes_to_b58(test_keys.sigkey))
    test_did = crypto.bytes_to_b58(test_keys.verkey[:16])
    return ConnectionInfo(test_keys, test_keys_b58, test_did)
示例#2
0
def test_keys():
    """Generate keys for test end of connection."""
    yield StaticConnection.Keys(*crypto.create_keypair())
示例#3
0
def example_keys():
    """Generate keys for example end of connection."""
    yield StaticConnection.Keys(*crypto.create_keypair())
示例#4
0
def alice_keys():
    """Generate alice's keys."""
    yield StaticConnection.Keys(*crypto.create_keypair())
示例#5
0
def bob_keys():
    """Generate bob's keys."""
    yield StaticConnection.Keys(*crypto.create_keypair())
def bob_keys():
    """Bob's keys."""
    return StaticConnection.Keys(*crypto.create_keypair())
def alice_keys():
    """Alice's keys."""
    return StaticConnection.Keys(*crypto.create_keypair())