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:
parent
e1fb9bc953
commit
2f01e01e78
|
@ -4,6 +4,8 @@ Entries are listed in reverse chronological order.
|
||||||
|
|
||||||
## Unreleased
|
## Unreleased
|
||||||
|
|
||||||
|
* Exposed the `SigningKey::from_scalar()` and `to_scalar()` methods. This
|
||||||
|
helps interoperability with other implementations.
|
||||||
|
|
||||||
## Released
|
## Released
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Creates a SigningKey from a scalar.
|
/// Creates a SigningKey from a scalar.
|
||||||
#[cfg(feature = "internals")]
|
|
||||||
pub fn from_scalar(
|
pub fn from_scalar(
|
||||||
scalar: <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar,
|
scalar: <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar,
|
||||||
) -> Self {
|
) -> Self {
|
||||||
|
@ -66,7 +65,6 @@ where
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Return the underlying scalar.
|
/// Return the underlying scalar.
|
||||||
#[cfg(feature = "internals")]
|
|
||||||
pub fn to_scalar(self) -> <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar {
|
pub fn to_scalar(self) -> <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar {
|
||||||
self.scalar
|
self.scalar
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue