mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-08 01:05:47 +00:00
actually add deserialize_uncompressed to GenericSignature
This commit is contained in:
@@ -143,6 +143,15 @@ where
|
|||||||
_phantom: PhantomData,
|
_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>
|
impl<Pub, Sig> GenericSignature<Pub, Sig>
|
||||||
|
|||||||
Reference in New Issue
Block a user