Skip to content

Commit 5df78a7

Browse files
committed
fix: scalar bug
1 parent 5d4e0fa commit 5df78a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blssig/src/bdn/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ impl BDNAggregation {
107107
bytes_32[..16].copy_from_slice(chunk);
108108

109109
// BLS12-381 scalars expects little-endian byte representation
110-
let scalar = Scalar::from_bytes_be(&bytes_32);
110+
let scalar = Scalar::from_bytes_le(&bytes_32);
111111
if scalar.is_some().into() {
112112
coefficients.push(scalar.unwrap());
113113
} else {

0 commit comments

Comments
 (0)