mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-04-17 23:46:09 +00:00
Private key should be bytes.
This commit is contained in:
parent
de3676e955
commit
996a564c05
@ -51,7 +51,7 @@ class MatchesNodePublicKey(object):
|
||||
:return Mismatch: If the keys don't match.
|
||||
"""
|
||||
config = read_config(self.basedir, u"tub.port")
|
||||
privkey_bytes = config.get_private_config("node.privkey")
|
||||
privkey_bytes = config.get_private_config("node.privkey").encode("utf-8")
|
||||
private_key = ed25519.signing_keypair_from_string(privkey_bytes)[0]
|
||||
signature = ed25519.sign_data(private_key, b"")
|
||||
other_public_key = ed25519.verifying_key_from_signing_key(other)
|
||||
|
Loading…
x
Reference in New Issue
Block a user