actually add deserialize_uncompressed to GenericSignature

This commit is contained in:
Daniel Knopik
2025-01-15 13:40:20 +01:00
parent f551579e32
commit 87515cca2c

View File

@@ -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>