Skip to content

Commit a550714

Browse files
Restore correct Reduce implementation
1 parent 6a4efe2 commit a550714

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

guest-libs/k256/guest/src/scalar.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,7 @@ impl Reduce<U256> for Secp256k1Scalar {
155155

156156
#[inline]
157157
fn reduce_bytes(bytes: &FieldBytes) -> Self {
158-
Self::from_le_bytes(bytes.as_slice())
159-
// Self::reduce(U256::from_be_byte_array(*bytes))
158+
Self::reduce(U256::from_be_byte_array(*bytes))
160159
}
161160
}
162161

0 commit comments

Comments
 (0)