mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-13 22:03:04 +00:00
redundant
This commit is contained in:
parent
310fb60247
commit
d0296b9ae8
@ -132,14 +132,6 @@ def signing_keypair_from_string(private_key_str):
|
||||
)
|
||||
|
||||
|
||||
def verifying_key_from_string(public_key_str):
|
||||
"""
|
||||
Load a verifying key from a string
|
||||
|
||||
:returns: a public_key
|
||||
"""
|
||||
|
||||
|
||||
def verifying_key_from_bytes(public_key_bytes):
|
||||
"""
|
||||
Load a verifying key from bytes
|
||||
@ -193,6 +185,11 @@ def verify_signature(public_key, alleged_signature, data):
|
||||
|
||||
|
||||
def verifying_key_from_string(public_key_str):
|
||||
"""
|
||||
Load a verifying key from a string
|
||||
|
||||
:returns: a public_key
|
||||
"""
|
||||
return verifying_key_from_bytes(
|
||||
a2b(remove_prefix(public_key_str, PUBLIC_KEY_PREFIX))
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user