From f1ed0a57e49cc6116ba493dd1aa53ed6ce2ca126 Mon Sep 17 00:00:00 2001 From: Tux Date: Sat, 24 Feb 2018 02:47:18 -0700 Subject: [PATCH] Actually use random shares in demo --- docs/examples/umbral_simple_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/examples/umbral_simple_api.py b/docs/examples/umbral_simple_api.py index ca14451..d6f1705 100644 --- a/docs/examples/umbral_simple_api.py +++ b/docs/examples/umbral_simple_api.py @@ -48,7 +48,7 @@ kfrags, _ = pre.split_rekey(alice_priv_key, bob_pub_key, 10, 20) rand_min_shares = random.sample(kfrags, 10) # Have Ursula re-encrypt the shares and attach them to the capsule: -for kfrag in kfrags: +for kfrag in rand_min_shares: cfrag = pre.reencrypt(kfrag, umbral_capsule) bob_capsule.attach_cfrag(cfrag)