Fix documentation error for `TweakedPublicKey::serialize`
This commit is contained in:
parent
2d93c8e5d1
commit
7ecef176f9
|
@ -899,9 +899,7 @@ impl TweakedPublicKey {
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn as_x_only_public_key(&self) -> &XOnlyPublicKey { &self.0 }
|
pub fn as_x_only_public_key(&self) -> &XOnlyPublicKey { &self.0 }
|
||||||
|
|
||||||
/// Serializes the key as a byte-encoded pair of values. In compressed form
|
/// Serializes the key as a byte-encoded x coordinate value (32 bytes).
|
||||||
/// the y-coordinate is represented by only a single bit, as x determines
|
|
||||||
/// it up to one bit.
|
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn serialize(&self) -> [u8; constants::SCHNORR_PUBLIC_KEY_SIZE] { self.0.serialize() }
|
pub fn serialize(&self) -> [u8; constants::SCHNORR_PUBLIC_KEY_SIZE] { self.0.serialize() }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue