From 249abbdd1f34521fcd9bf9ee70b30111fda220da Mon Sep 17 00:00:00 2001 From: meejah Date: Mon, 24 Jun 2019 16:56:50 -0600 Subject: [PATCH] things are bytes --- src/allmydata/introducer/common.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/allmydata/introducer/common.py b/src/allmydata/introducer/common.py index 0eb412452..6cbc6f47d 100644 --- a/src/allmydata/introducer/common.py +++ b/src/allmydata/introducer/common.py @@ -51,13 +51,14 @@ def unsign_from_foolscap(ann_t): if not claimed_key_vs.startswith("v0-"): raise UnknownKeyError("only v0- keys recognized") - claimed_key = ed25519.verifying_key_from_string("pub-" + claimed_key_vs) - sig_bytes = base32.a2b(remove_prefix(sig_vs, "v0-")) + claimed_key = ed25519.verifying_key_from_string(b"pub-" + claimed_key_vs) + sig_bytes = base32.a2b(remove_prefix(sig_vs, b"v0-")) ed25519.verify_signature(claimed_key, sig_bytes, msg) key_vs = claimed_key_vs ann = json.loads(msg.decode("utf-8")) return (ann, key_vs) + class SubscriberDescriptor(object): """This describes a subscriber, for status display purposes. It contains the following attributes: