diff --git a/frost-core/src/lib.rs b/frost-core/src/lib.rs index b6914e19..a01cd3c2 100644 --- a/frost-core/src/lib.rs +++ b/frost-core/src/lib.rs @@ -478,8 +478,9 @@ where C: Ciphersuite, { /// Return the underlying element. - #[cfg(feature = "internals")] - pub fn to_element(self) -> ::Element { + #[cfg_attr(feature = "internals", visibility::make(pub))] + #[cfg_attr(docsrs, doc(cfg(feature = "internals")))] + pub(crate) fn to_element(self) -> ::Element { self.0 } }