Skip to content

Commit

Permalink
frost-core: expose SigningKey::to/from_scalar() (#601)
Browse files Browse the repository at this point in the history
* frost-core: expose SigningKey::to/from_scalar()

* Update frost-core/CHANGELOG.md
  • Loading branch information
conradoplg authored Feb 1, 2024
1 parent e1fb9bc commit 2f01e01
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 2 additions & 0 deletions frost-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 0 additions & 2 deletions frost-core/src/signing_key.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,13 @@ 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 {
Self { scalar }
}

/// Return the underlying scalar.
#[cfg(feature = "internals")]
pub fn to_scalar(self) -> <<<C as Ciphersuite>::Group as Group>::Field as Field>::Scalar {
self.scalar
}
Expand Down

0 comments on commit 2f01e01

Please sign in to comment.