From edd5a5c2f9ca894b0794f3ee9799c31cb83c2d73 Mon Sep 17 00:00:00 2001 From: "Kieran R. Prasch" Date: Thu, 19 Aug 2021 17:04:27 -0700 Subject: [PATCH] Finish deprecatetion of Bob.join_plolicy (from examples). --- .../finnegans_wake_demo/finnegans-wake-demo-federated.py | 4 +--- examples/heartbeat_demo/doctor.py | 6 +----- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/examples/finnegans_wake_demo/finnegans-wake-demo-federated.py b/examples/finnegans_wake_demo/finnegans-wake-demo-federated.py index 8ed55518d..1d7eb6a4e 100644 --- a/examples/finnegans_wake_demo/finnegans-wake-demo-federated.py +++ b/examples/finnegans_wake_demo/finnegans-wake-demo-federated.py @@ -118,9 +118,7 @@ del alice # Bob the BUIDLer ## ##################### -bob.join_policy(label, alice_verifying_key) - -# Now that Bob has joined the Policy, let's show how Enrico the Encryptor +# Now let's show how Enrico the Encryptor # can share data with the members of this Policy and then how Bob retrieves it. # In order to avoid re-encrypting the entire book in this demo, we only read some lines. with open(BOOK_PATH, 'rb') as file: diff --git a/examples/heartbeat_demo/doctor.py b/examples/heartbeat_demo/doctor.py index 9a515768a..f195543ba 100644 --- a/examples/heartbeat_demo/doctor.py +++ b/examples/heartbeat_demo/doctor.py @@ -88,11 +88,7 @@ policy_pubkey = PublicKey.from_bytes(bytes.fromhex(policy_data["policy_pubkey"]) alices_sig_pubkey = PublicKey.from_bytes(bytes.fromhex(policy_data["alice_sig_pubkey"])) label = policy_data["label"].encode() -print("The Doctor joins policy for label '{}'".format(label.decode("utf-8"))) -doctor.join_policy(label, alices_sig_pubkey) - -# Now that the Doctor joined the policy in the NuCypher network, -# he can retrieve encrypted data which he can decrypt with his private key. +# The Doctor can retrieve encrypted data which he can decrypt with his private key. # But first we need some encrypted data! # Let's read the file produced by the heart monitor and unpack the MessageKits, # which are the individual ciphertexts.