Fix documentation error for `TweakedPublicKey::serialize`

This commit is contained in:
Daniel Roberts 2025-05-06 03:02:12 -05:00
parent 2d93c8e5d1
commit 7ecef176f9
1 changed files with 1 additions and 3 deletions

View File

@ -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() }
}