fixed pubkey validation not working
This commit is contained in:
parent
882f2e7020
commit
15400432b1
1 changed files with 3 additions and 1 deletions
|
@ -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 a new issue