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

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

* Update frost-core/CHANGELOG.md
This commit is contained in:
Conrado Gouvea 2024-02-01 10:10:20 -03:00 committed by GitHub
parent e1fb9bc953
commit 2f01e01e78
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 `SigningKey::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
}