Label hijincks to deal with the fact that #920 is not fixed yet.

pull/1040/head
jMyles 2019-05-17 13:43:58 -04:00 committed by Kieran Prasch
parent 871f0fb69c
commit 03396602c5
No known key found for this signature in database
GPG Key ID: 199AB839D4125A62
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,5 @@
import datetime
from base64 import b64encode, b64decode
import click
import maya
@ -155,7 +156,7 @@ def alice(click_config,
create_policy_request = {
'bob_encrypting_key': bob_encrypting_key,
'bob_verifying_key': bob_verifying_key,
'label': label,
'label': b64encode(label.encode()),
'm': m,
'n': n,
}
@ -169,7 +170,7 @@ def alice(click_config,
grant_request = {
'bob_encrypting_key': bob_encrypting_key,
'bob_verifying_key': bob_verifying_key,
'label': label,
'label': b64encode(label.encode()).decode(),
'm': m,
'n': n,
'expiration': (maya.now() + datetime.timedelta(days=3)).iso8601(), # TODO