refactor(lee::signature) (#531)

* address issue 514

* Fixed clippy
This commit is contained in:
jonesmarvin8 2026-06-16 09:18:31 -04:00 committed by GitHub
parent a8c81f5445
commit 79ba5a1194
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -157,6 +157,7 @@ k256 = { version = "0.13.3", features = [
"expose-field",
"serde",
"pem",
"schnorr",
] }
ml-kem = { version = "0.3", features = ["hazmat"] }
elliptic-curve = { version = "0.13.8", features = ["arithmetic"] }

View File

@ -1,6 +1,7 @@
use std::str::FromStr;
use borsh::{BorshDeserialize, BorshSerialize};
use k256::ecdsa::signature::hazmat::PrehashVerifier as _;
pub use private_key::PrivateKey;
pub use public_key::PublicKey;
use rand::{RngCore as _, rngs::OsRng};
@ -72,7 +73,7 @@ impl Signature {
return false;
};
pk.verify_raw(bytes, &sig).is_ok()
pk.verify_prehash(bytes, &sig).is_ok()
}
}