We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6b4c4e + 3350c1d commit f372b39Copy full SHA for f372b39
vrf/src/output.rs
@@ -64,7 +64,7 @@ impl VrfOutput {
64
65
pub fn truncated(&self) -> ScalarField {
66
let hash = self.hash();
67
- let bits = field_to_bits::<_, 255>(hash);
+ let bits = field_to_bits::<_, 256>(hash);
68
69
let repr = BigInteger256::from_bits_le(&bits[..bits.len() - 3]);
70
ScalarField::from_repr(repr).unwrap()
0 commit comments