From b19288ea81f7b061661a84d02fcbf85fdc086b3c Mon Sep 17 00:00:00 2001 From: natalie Date: Wed, 16 Oct 2024 20:11:23 +0100 Subject: [PATCH 1/2] Expose to_element() for GroupCommitment --- frost-core/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frost-core/src/lib.rs b/frost-core/src/lib.rs index b6914e19..b5c566bd 100644 --- a/frost-core/src/lib.rs +++ b/frost-core/src/lib.rs @@ -478,7 +478,8 @@ where C: Ciphersuite, { /// Return the underlying element. - #[cfg(feature = "internals")] + #[cfg_attr(feature = "internals", visibility::make(pub))] + #[cfg_attr(docsrs, doc(cfg(feature = "internals")))] pub fn to_element(self) -> ::Element { self.0 } From 2a811122a155597c781688b6a82e99160e544a5b Mon Sep 17 00:00:00 2001 From: natalie Date: Mon, 21 Oct 2024 11:48:35 +0100 Subject: [PATCH 2/2] Update to_element() for GroupCommitment to pub(crate) Co-authored-by: Conrado Gouvea --- frost-core/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frost-core/src/lib.rs b/frost-core/src/lib.rs index b5c566bd..a01cd3c2 100644 --- a/frost-core/src/lib.rs +++ b/frost-core/src/lib.rs @@ -480,7 +480,7 @@ where /// Return the underlying element. #[cfg_attr(feature = "internals", visibility::make(pub))] #[cfg_attr(docsrs, doc(cfg(feature = "internals")))] - pub fn to_element(self) -> ::Element { + pub(crate) fn to_element(self) -> ::Element { self.0 } }