Remove superflous Pair::verify_weak (#13972)

This commit is contained in:
Davide Galassi
2023-04-21 22:32:32 +02:00
committed by GitHub
parent 58f5cd6adb
commit b8d94bfad1
5 changed files with 15 additions and 69 deletions
@@ -154,13 +154,6 @@ macro_rules! app_crypto_pair {
) -> bool {
<$pair>::verify(&sig.0, message, pubkey.as_ref())
}
fn verify_weak<P: AsRef<[u8]>, M: AsRef<[u8]>>(
sig: &[u8],
message: M,
pubkey: P,
) -> bool {
<$pair>::verify_weak(sig, message, pubkey)
}
fn public(&self) -> Self::Public {
Public(self.0.public())
}