From eefe7e1b5a4a2e2a44451e9c21629c9d84ddeb58 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 13 Jun 2017 14:20:58 +0200 Subject: [PATCH] Don't add obsolete old signature format --- src/Content/ContentManager.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Content/ContentManager.py b/src/Content/ContentManager.py index bb291b27..cf241f35 100644 --- a/src/Content/ContentManager.py +++ b/src/Content/ContentManager.py @@ -611,10 +611,6 @@ class ContentManager(object): new_content["signs"] = {} new_content["signs"][privatekey_address] = sign - if inner_path == "content.json": # To root content.json add old format sign for backward compatibility - oldsign_content = json.dumps(new_content, sort_keys=True) - new_content["sign"] = CryptBitcoin.signOld(oldsign_content, privatekey) - if not self.verifyContent(inner_path, new_content): self.log.error("Sign failed: Invalid content") return False