mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 09:16:00 +00:00
expose point and from_point on GenericSignature
This commit is contained in:
@@ -93,12 +93,12 @@ where
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Returns a reference to the underlying BLS point.
|
/// 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()
|
self.point.as_ref()
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Instantiates `Self` from a `point`.
|
/// 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 {
|
Self {
|
||||||
point: Some(point),
|
point: Some(point),
|
||||||
is_infinity,
|
is_infinity,
|
||||||
|
|||||||
Reference in New Issue
Block a user