From cf59711b73e49dc27189a6e008edccbef3237445 Mon Sep 17 00:00:00 2001 From: VolodymyrBg Date: Sat, 21 Feb 2026 22:37:45 +0200 Subject: [PATCH] fix(k256): avoid redundant `Scalar::retrieve` byte roundtrip --- k256/src/arithmetic/scalar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/k256/src/arithmetic/scalar.rs b/k256/src/arithmetic/scalar.rs index 1c92f81bf..22483a524 100644 --- a/k256/src/arithmetic/scalar.rs +++ b/k256/src/arithmetic/scalar.rs @@ -755,7 +755,7 @@ impl Retrieve for Scalar { type Output = U256; fn retrieve(&self) -> U256 { - U256::from_be_byte_array(self.to_bytes()) + self.0 } }