frost-core: expose SigningKey::to/from_scalar()

This commit is contained in:
Conrado Gouvea 2024-01-25 17:41:15 -03:00
parent e1fb9bc953
commit 19ba080b8a
2 changed files with 2 additions and 2 deletions

View File

@ -4,6 +4,8 @@ Entries are listed in reverse chronological order.
## Unreleased
* Exposed the `SignignKey::from_scalar()` and `to_scalar()` methods. This
helps interoperability with other implementations.
## Released

View File

@ -58,7 +58,6 @@ where
}
/// Creates a SigningKey from a scalar.
#[cfg(feature = "internals")]
pub fn from_scalar(
scalar: <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar,
) -> Self {
@ -66,7 +65,6 @@ where
}
/// Return the underlying scalar.
#[cfg(feature = "internals")]
pub fn to_scalar(self) -> <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar {
self.scalar
}