expose point and from_point on GenericSignature

This commit is contained in:
Daniel Knopik
2025-01-13 14:53:08 +01:00
parent 33c1648022
commit 4e8f8269ed

View File

@@ -93,12 +93,12 @@ where
}
/// Returns a reference to the underlying BLS point.
pub(crate) fn point(&self) -> Option<&Sig> {
pub fn point(&self) -> Option<&Sig> {
self.point.as_ref()
}
/// Instantiates `Self` from a `point`.
pub(crate) fn from_point(point: Sig, is_infinity: bool) -> Self {
pub fn from_point(point: Sig, is_infinity: bool) -> Self {
Self {
point: Some(point),
is_infinity,