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: ACK7ecef176f9
Tree-SHA512: 9b7469d34eadfcabc93264c114f292c415d2dbb09b41ec05de4ac399677d5c80f1d09ecd0c382680996450824f1fd60503d3e3d3ec8bdd8135cebdf7ef82fe0d
This commit is contained in:
commit
f1418bcafa
|
@ -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() }
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue