fixed pubkey validation not working
This commit is contained in:
parent
882f2e7020
commit
15400432b1
@ -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
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user