mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-17 03:42:46 +00:00
actually add deserialize_uncompressed to GenericSignature
This commit is contained in:
@@ -143,6 +143,15 @@ where
|
||||
_phantom: PhantomData,
|
||||
})
|
||||
}
|
||||
|
||||
/// Deserialize `self` from uncompressed bytes.
|
||||
pub fn deserialize_uncompressed(bytes: &[u8]) -> Result<Self, Error> {
|
||||
Ok(Self {
|
||||
point: Some(Sig::deserialize_uncompressed(bytes)?),
|
||||
is_infinity: false, // todo
|
||||
_phantom: PhantomData,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
impl<Pub, Sig> GenericSignature<Pub, Sig>
|
||||
|
||||
Reference in New Issue
Block a user