We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
SecretKey::as_scalar_primitive
1 parent db47e6f commit eca2d23Copy full SHA for eca2d23
2 files changed
elliptic-curve/src/scalar/nonzero.rs
@@ -175,7 +175,7 @@ where
175
C: CurveArithmetic,
176
{
177
fn from(sk: &SecretKey<C>) -> NonZeroScalar<C> {
178
- let scalar = sk.as_scalar_core().to_scalar();
+ let scalar = sk.as_scalar_primitive().to_scalar();
179
debug_assert!(!bool::from(scalar.is_zero()));
180
Self { scalar }
181
}
elliptic-curve/src/secret_key.rs
@@ -115,7 +115,7 @@ where
115
/// This value is key material.
116
///
117
/// Please treat it with the care it deserves!
118
- pub fn as_scalar_core(&self) -> &ScalarPrimitive<C> {
+ pub fn as_scalar_primitive(&self) -> &ScalarPrimitive<C> {
119
&self.inner
120
121
0 commit comments