mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-16 19:32:55 +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.
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user