Merge pull request #177 from samscott89/hash-fix

Fix distribution of curve points for hashing to Ristretto points.
This commit is contained in:
Henry de Valence 2018-07-25 16:06:26 -07:00 committed by GitHub
commit 920bdb3279
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -646,7 +646,7 @@ impl RistrettoPoint {
let R_1 = RistrettoPoint::elligator_ristretto_flavor(&r_1);
let mut r_2_bytes = [0u8; 32];
r_2_bytes.copy_from_slice(&output.as_slice()[0..32]);
r_2_bytes.copy_from_slice(&output.as_slice()[32..64]);
let r_2 = FieldElement::from_bytes(&r_2_bytes);
let R_2 = RistrettoPoint::elligator_ristretto_flavor(&r_2);