diff --git a/src/util/schnorr.rs b/src/util/schnorr.rs index 13e14794..834bf338 100644 --- a/src/util/schnorr.rs +++ b/src/util/schnorr.rs @@ -44,7 +44,7 @@ pub trait TapTweak { /// The tweaked key and its parity. fn tap_tweak(self, secp: &Secp256k1, merkle_root: Option) -> (TweakedPublicKey, bool); - /// Directly convert an UntweakedPublicKey to a TweakedPublicKey + /// Directly converts an [`UntweakedPublicKey`] to a [`TweakedPublicKey`] /// /// This method is dangerous and can lead to loss of funds if used incorrectly. /// Specifically, in multi-party protocols a peer can provide a value that allows them to steal. @@ -74,12 +74,12 @@ impl TweakedPublicKey { TweakedPublicKey(key) } - /// Returns the underlying public key + /// Returns the underlying public key. pub fn into_inner(self) -> PublicKey { self.0 } - /// Returns a reference to underlying public key + /// Returns a reference to underlying public key. pub fn as_inner(&self) -> &PublicKey { &self.0 }