pub type UntweakedKeyPair = KeyPair;
Expand description

Untweaked BIP-340 key pair

Trait Implementations

Tweaks private and public keys within an untweaked KeyPair with corresponding public key value and optional script tree merkle root.

This is done by tweaking private key within the pair using the equation q = p + H(P|c), where

  • q is the tweaked private key
  • p is the internal private key
  • H is the hash function
  • c is the commitment data The public key is generated from a private key by multiplying with generator point, Q = qG.
Returns

The tweaked key and its parity.

Tweaked key type with optional auxiliary information
Tweaked key type