fixed pubkey validation not working

This commit is contained in:
Kevin Froman 2018-02-22 00:08:04 -06:00
parent 882f2e7020
commit 15400432b1
No known key found for this signature in database
GPG Key ID: 0D414D0FE405B63B

View File

@ -146,9 +146,11 @@ class OnionrUtils:
'''Validate if a string is a valid base32 encoded Ed25519 key'''
retVal = False
try:
nacl.signing.SigningKey(self, seed=key, encoder=nacl.encoding.Base32Encoder)
nacl.signing.SigningKey(seed=key, encoder=nacl.encoding.Base32Encoder)
except nacl.exceptions.ValueError:
pass
else:
retVal = True
return retVal