Skip to content

Commit

Permalink
Expose to_element() for GroupCommitment (#757)
Browse files Browse the repository at this point in the history
* Expose to_element() for GroupCommitment

* Update to_element() for GroupCommitment to pub(crate)

Co-authored-by: Conrado Gouvea <[email protected]>
  • Loading branch information
natalieesk and conradoplg authored Oct 21, 2024
1 parent cffaff6 commit 2d88edf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions frost-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -478,8 +478,9 @@ where
C: Ciphersuite,
{
/// Return the underlying element.
#[cfg(feature = "internals")]
pub fn to_element(self) -> <C::Group as Group>::Element {
#[cfg_attr(feature = "internals", visibility::make(pub))]
#[cfg_attr(docsrs, doc(cfg(feature = "internals")))]
pub(crate) fn to_element(self) -> <C::Group as Group>::Element {
self.0
}
}
Expand Down

0 comments on commit 2d88edf

Please sign in to comment.