From 1f73c04739f37bbdf64ae99a1542f864d35520ac Mon Sep 17 00:00:00 2001 From: jMyles Date: Fri, 15 Feb 2019 07:41:48 -0700 Subject: [PATCH] A bunch of small fixes for things we noticed launching the testnet. Also, Alice now takes label in the URL. --- nucypher/characters/lawful.py | 23 +++++++++++------------ nucypher/cli/moe.py | 3 --- nucypher/network/middleware.py | 3 +++ nucypher/utilities/logging.py | 2 +- 4 files changed, 15 insertions(+), 16 deletions(-) diff --git a/nucypher/characters/lawful.py b/nucypher/characters/lawful.py index 428171591..cfca5b19d 100644 --- a/nucypher/characters/lawful.py +++ b/nucypher/characters/lawful.py @@ -14,6 +14,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License along with nucypher. If not, see . """ +import datetime import json import random from base64 import b64encode, b64decode @@ -241,20 +242,14 @@ class Alice(Character, PolicyAuthor): # TODO: Serialize the policy return Response('Policy created!', status=200) - @alice_control.route('/derive_policy_pubkey', methods=['POST']) - def derive_policy_pubkey(): + @alice_control.route('/derive_policy_pubkey/