Actually use random shares in demo

pull/88/head
Tux 2018-02-24 02:47:18 -07:00 committed by GitHub
parent 70482360e5
commit f1ed0a57e4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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)