pub type UntweakedPublicKey = XOnlyPublicKey;
Expand description

Untweaked BIP-340 X-coord-only public key

Trait Implementations

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.

Tweaked key type with optional auxiliary information

Tweaked key type

Directly converts an UntweakedPublicKey to a TweakedPublicKey Read more