TeachMeBitcoin

Key Path vs. Script Path

From TeachMeBitcoin, the free encyclopedia Reading time: 2 min

Key Path vs. Script Path

The "Magic" of Taproot lies in its dual-path spending mechanism. A single P2TR address can be spent in two completely different ways, but the blockchain only ever sees the way that was actually used.

1. The Key Path (The Fast Path)

The Key Path is used when everyone involved in the address agrees to sign the transaction.

2. The Script Path (The Recovery Path)

The Script Path is used if the parties cannot agree or if a specific condition (like a timelock) is met.

3. Why two paths?

Imagine a 2-of-3 multisig wallet for a business.

4. Economic Incentive

Because the Key Path is significantly cheaper (fewer bytes revealed), users are incentivized to cooperate and use the private aggregated signature path whenever possible. This "encourages" privacy through economics.

Spending Path Data Revealed Privacy Cost
Key Path 1 Signature Highest Lowest
Script Path Script + Proof Medium Higher

In the next section, we will look at MAST, the technology that powers the Script Path.

☕ Help support TeachMeBitcoin

TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation:

Ethereum: 0x578417C51783663D8A6A811B3544E1f779D39A85
Bitcoin: bc1q77k9e95rn669kpzyjr8ke9w95zhk7pa5s63qzz
Solana: 4ycT2ayqeMucixj3wS8Ay8Tq9NRDYRPKYbj3UGESyQ4J
Address copied to clipboard!