Function bitcoin_serai::wallet::tweak_keys
source · pub fn tweak_keys(keys: &ThresholdKeys<Secp256k1>) -> ThresholdKeys<Secp256k1>
Available on crate feature
std
only.Expand description
Tweak keys to ensure they’re usable with Bitcoin’s Taproot upgrade.
This adds an unspendable script path to the key, preventing any outputs received to this key from being spent via a script. To have keys which have spendable script paths, further offsets from this position must be used.
After adding an unspendable script path, the key is incremented until its even. This means the existence of the unspendable script path may not provable, without an understanding of the algorithm used here.