Merge rust-bitcoin/rust-bitcoin#4456: Fix documentation error for `TweakedPublicKey::serialize`

7ecef176f9 Fix documentation error for `TweakedPublicKey::serialize` (Daniel Roberts)

Pull request description:

  Fixes an ancient copy/paste error in documentation ( `secp256k1::schnorrsig::PublicKey::serialize()` docs copied from ECDSA docs, which was copied into rust-bitcoin)

  Is there a threshold beneath which a PR is too trivial?

ACKs for top commit:
  apoelstra:
    ACK 7ecef176f9523cd8fece7e8e71040507f46fb9c2; successfully ran local tests; thanks!
  tcharding:
    ACK 7ecef176f9

Tree-SHA512: 9b7469d34eadfcabc93264c114f292c415d2dbb09b41ec05de4ac399677d5c80f1d09ecd0c382680996450824f1fd60503d3e3d3ec8bdd8135cebdf7ef82fe0d
This commit is contained in:
merge-script 2025-05-07 16:04:16 +00:00
commit f1418bcafa
No known key found for this signature in database
GPG Key ID: C588D63CE41B97C1
1 changed files with 1 additions and 3 deletions

View File

@ -901,9 +901,7 @@ impl TweakedPublicKey {
#[inline]
pub fn as_x_only_public_key(&self) -> &XOnlyPublicKey { &self.0 }
/// Serializes the key as a byte-encoded pair of values. In compressed form
/// the y-coordinate is represented by only a single bit, as x determines
/// it up to one bit.
/// Serializes the key as a byte-encoded x coordinate value (32 bytes).
#[inline]
pub fn serialize(&self) -> [u8; constants::SCHNORR_PUBLIC_KEY_SIZE] { self.0.serialize() }
}