More clarity for the returned values in generate_v3_private_key(), also more consistent with generate_v2_private_key()

This commit is contained in:
Miguel Jacq 2018-09-13 12:29:48 +10:00
parent 8955ce0699
commit 0b0eef7245
No known key found for this signature in database
GPG Key ID: EEA4341C6D97A0B6

View File

@ -81,7 +81,8 @@ def generate_v3_private_key():
"""
private_key_seed = os.urandom(32)
private_key = stem_compatible_base64_blob_from_private_key(private_key_seed)
return (private_key, onion_url_from_private_key(private_key_seed))
onion_url = onion_url_from_private_key(private_key_seed)
return (private_key, onion_url)
def generate_v2_private_key():