Skip to content

Commit 3350c1d

Browse files
committed
Fix truncating vrf output
1 parent c6b4c4e commit 3350c1d

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)