Skip to content

Commit eca2d23

Browse files
authored
elliptic-curve: rename SecretKey::as_scalar_primitive (#1228)
Formerly `::as_scalar_core`. Follows the renaming of `ScalarCore` => `ScalarPrimitive`.
1 parent db47e6f commit eca2d23

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

elliptic-curve/src/scalar/nonzero.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ where
175175
C: CurveArithmetic,
176176
{
177177
fn from(sk: &SecretKey<C>) -> NonZeroScalar<C> {
178-
let scalar = sk.as_scalar_core().to_scalar();
178+
let scalar = sk.as_scalar_primitive().to_scalar();
179179
debug_assert!(!bool::from(scalar.is_zero()));
180180
Self { scalar }
181181
}

elliptic-curve/src/secret_key.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ where
115115
/// This value is key material.
116116
///
117117
/// Please treat it with the care it deserves!
118-
pub fn as_scalar_core(&self) -> &ScalarPrimitive<C> {
118+
pub fn as_scalar_primitive(&self) -> &ScalarPrimitive<C> {
119119
&self.inner
120120
}
121121

0 commit comments

Comments
 (0)