Support uncompressed keys in crypto/bls

This commit is contained in:
Michael Sproul
2024-06-06 15:41:56 +10:00
parent a64cee3af1
commit bb72b116d1
5 changed files with 64 additions and 4 deletions

View File

@@ -341,6 +341,11 @@ macro_rules! test_suite {
.assert_single_message_verify(true)
}
#[test]
fn deserialize_infinity_public_key() {
PublicKey::deserialize(&bls::INFINITY_PUBLIC_KEY).unwrap_err();
}
/// A helper struct to make it easer to deal with `SignatureSet` lifetimes.
struct OwnedSignatureSet {
signature: AggregateSignature,