diff --git a/vrf/src/output.rs b/vrf/src/output.rs index 2389a89fa8..6d92ee1a23 100644 --- a/vrf/src/output.rs +++ b/vrf/src/output.rs @@ -64,7 +64,7 @@ impl VrfOutput { pub fn truncated(&self) -> ScalarField { let hash = self.hash(); - let bits = field_to_bits::<_, 255>(hash); + let bits = field_to_bits::<_, 256>(hash); let repr = BigInteger256::from_bits_le(&bits[..bits.len() - 3]); ScalarField::from_repr(repr).unwrap()