What changed, and why it matters
This commit is purely a code-formatting change. It rewraps a long `#[deprecated(...)]` attribute in a Rust source file onto multiple lines so it complies with the project's style rules. No logic, behavior, or security properties of the code were changed.
No security action needed. This is a routine style/formatting commit.
Security signals we found
No strong security signals were identified.
Evidence from the diff
The diff shows a single formatting-only edit in bitcoin/src/crypto/key.rs: the #[deprecated(since = "TBD", note = "...")] attribute above CompressedPublicKey::from_slice was split across several lines. The attribute’s contents, the function signature, and the function body are identical before and after the change. There is no functional or security-relevant modification.
Changed components
bitcoin/src/crypto/key.rs (formatting only)Inspect captured patch +4 / −1
diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs
index a70a63ea..8591699f 100644
--- a/bitcoin/src/crypto/key.rs
+++ b/bitcoin/src/crypto/key.rs
@@ -825,7 +825,10 @@ impl CompressedPublicKey {
/// # Errors
///
/// See [`secp256k1::PublicKey::from_slice`].
- #[deprecated(since = "TBD", note = "use `from_bytes` instead; if you only have a slice, use `<&[u8; 33]>::try_from` first")]
+ #[deprecated(
+ since = "TBD",
+ note = "use `from_bytes` instead; if you only have a slice, use `<&[u8; 33]>::try_from` first"
+ )]
pub fn from_slice(data: &[u8]) -> Result<Self, secp256k1::Error> {
let bytes_arr = data.try_into().map_err(|_| secp256k1::Error::InvalidPublicKey)?;
Self::from_bytes(bytes_arr)
Why this scored 15/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.