-
Notifications
You must be signed in to change notification settings - Fork 96
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Threshold Encryption #40
Comments
I'll also try to summarize this algorithm similar to #38. The assumptions and public data are the same as in #38, except that we need a different kind of hash functions:
Simple encryption schemeAgain, to generate a key pair, I pick a random To encrypt a message let u = r * g1;
let v = hash_bytes(r * pk, msg.len()) ^ msg;
let w = r * hash_g(u, v); To check the message, anyone can verify that To decrypt, I compute // Definition of `u`:
assert_eq!(d_msg, hash_bytes(sk * r * g1, v.len()) ^ v);
// Definition of `v`, commutativity of `*`:
assert_eq!(d_msg, hash_bytes(r * sk * g1, v.len()) ^ hash_bytes(r * pk, msg.len()) ^ msg);
// Definition of `pk`, and `v.len() == msg.len()`:
assert_eq!(d_msg, hash_bytes(r * pk, msg.len()) ^ hash_bytes(r * pk, msg.len())) ^ msg);
// `x ^ x ^ y == y`:
assert_eq!(d_msg, msg); Threshold encryption schemeAgain, just like in #38, To decrypt, party |
Honey Badger requires threshold encryption to avoid sending the proposed transactions as plaintext. http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.119.1717&rep=rep1&type=pdf
The text was updated successfully, but these errors were encountered: