Skip to content

Commit f372b39

Browse files
authored
Merge pull request #988 from openmina/fix-vrf
Fix truncating vrf output
2 parents c6b4c4e + 3350c1d commit f372b39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vrf/src/output.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ impl VrfOutput {
6464

6565
pub fn truncated(&self) -> ScalarField {
6666
let hash = self.hash();
67-
let bits = field_to_bits::<_, 255>(hash);
67+
let bits = field_to_bits::<_, 256>(hash);
6868

6969
let repr = BigInteger256::from_bits_le(&bits[..bits.len() - 3]);
7070
ScalarField::from_repr(repr).unwrap()

0 commit comments

Comments
 (0)