Removed vkeys from examples

pull/82/head
David Nuñez 2018-02-26 15:44:17 +01:00
parent c1a30c3056
commit 560e986c44
2 changed files with 4 additions and 5 deletions

View File

@ -37,10 +37,9 @@ except:
#7
# Generate threshold split re-encryption keys via Shamir's Secret Sharing
# verification not ready yet, don't store vKeys
# Use Alice's private key, and Bob's public key.
# Use a minimum threshold of 10, and create 20 total shares
kfrags, _ = pre.split_rekey(alice_priv_key, bob_pub_key, 10, 20)
kfrags = pre.split_rekey(alice_priv_key, bob_pub_key, 10, 20)
#8
# Have Ursula perform re-encrypton.

View File

@ -82,13 +82,13 @@ distribution and later reconstruction via "Shamir's Secret Sharing".
.. code-block:: python
kfrags, _ = umbral.split_rekey(alices_private_key,
kfrags = umbral.split_rekey(alices_private_key,
bobs_public_key,
10, # M - Threshold
20) # N - Total
Bob recieves a capsule
Bob receives a capsule
-----------------------
Next, let's generate a key pair for Bob, and pretend to send
him the capsule through a side channel like
@ -154,7 +154,7 @@ Bob collects the resulting `cfrags` from Ursula.
cfrags.append(cfrag) # Bob collects a cfrag
Bob attches cfrags to the capsule
Bob attaches cfrags to the capsule
----------------------------------
Bob attaches at least `M` `cfrags` to the capsule;
Then it can then become *activated*.