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)
Beispiel #2
0
def test_keys():
    """Generate keys for test end of connection."""
    yield StaticConnection.Keys(*crypto.create_keypair())
Beispiel #3
0
def example_keys():
    """Generate keys for example end of connection."""
    yield StaticConnection.Keys(*crypto.create_keypair())
Beispiel #4
0
def alice_keys():
    """Generate alice's keys."""
    yield StaticConnection.Keys(*crypto.create_keypair())
Beispiel #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())