From 7ecef176f9523cd8fece7e8e71040507f46fb9c2 Mon Sep 17 00:00:00 2001 From: Daniel Roberts Date: Tue, 6 May 2025 03:02:12 -0500 Subject: [PATCH] Fix documentation error for `TweakedPublicKey::serialize` --- bitcoin/src/crypto/key.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/bitcoin/src/crypto/key.rs b/bitcoin/src/crypto/key.rs index be464bc33..6c2d30d9e 100644 --- a/bitcoin/src/crypto/key.rs +++ b/bitcoin/src/crypto/key.rs @@ -899,9 +899,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() } }