pub type UntweakedPublicKey = XOnlyPublicKey;
Expand description

Untweaked BIP-340 X-coord-only public key

Aliased Type§

struct UntweakedPublicKey(/* private fields */);

Trait Implementations§

source§

impl TapTweak for UntweakedPublicKey

source§

fn tap_tweak<C: Verification>( self, secp: &Secp256k1<C>, merkle_root: Option<TapNodeHash> ) -> (TweakedPublicKey, Parity)

Tweaks an untweaked public key with corresponding public key value and optional script tree merkle root.

This is done by using the equation Q = P + H(P|c)G, where

  • Q is the tweaked public key
  • P is the internal public key
  • H is the hash function
  • c is the commitment data
  • G is the generator point
§Returns

The tweaked key and its parity.

§

type TweakedAux = (TweakedPublicKey, Parity)

Tweaked key type with optional auxiliary information
§

type TweakedKey = TweakedPublicKey

Tweaked key type
source§

fn dangerous_assume_tweaked(self) -> TweakedPublicKey