From 87515cca2cd97f6766d7e09e4f7b7a9d37795938 Mon Sep 17 00:00:00 2001 From: Daniel Knopik Date: Wed, 15 Jan 2025 13:40:20 +0100 Subject: [PATCH] actually add `deserialize_uncompressed` to `GenericSignature` --- crypto/bls/src/generic_signature.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/crypto/bls/src/generic_signature.rs b/crypto/bls/src/generic_signature.rs index e0a5ff6cdc..c5ca4d9a18 100644 --- a/crypto/bls/src/generic_signature.rs +++ b/crypto/bls/src/generic_signature.rs @@ -143,6 +143,15 @@ where _phantom: PhantomData, }) } + + /// Deserialize `self` from uncompressed bytes. + pub fn deserialize_uncompressed(bytes: &[u8]) -> Result { + Ok(Self { + point: Some(Sig::deserialize_uncompressed(bytes)?), + is_infinity: false, // todo + _phantom: PhantomData, + }) + } } impl GenericSignature