Update README

This commit is contained in:
Sean Bowe 2016-09-11 13:22:40 -06:00
parent 19fdc821c5
commit 9c795f46a3
No known key found for this signature in database
GPG Key ID: 95684257D8F8B031
1 changed files with 3 additions and 3 deletions

View File

@ -48,9 +48,9 @@ let (bob_pk1, bob_pk2) = (G1::one() * bob_sk, G2::one() * bob_sk);
let (carol_pk1, carol_pk2) = (G1::one() * carol_sk, G2::one() * carol_sk);
// Each party computes the shared secret
let alice_ss = pairing(&bob_pk1, &carol_pk2).pow(alice_sk);
let bob_ss = pairing(&carol_pk1, &alice_pk2).pow(bob_sk);
let carol_ss = pairing(&alice_pk1, &bob_pk2).pow(carol_sk);
let alice_ss = pairing(bob_pk1, carol_pk2).pow(alice_sk);
let bob_ss = pairing(carol_pk1, alice_pk2).pow(bob_sk);
let carol_ss = pairing(alice_pk1, bob_pk2).pow(carol_sk);
assert!(alice_ss == bob_ss && bob_ss == carol_ss);
```