1
2
3
4
5
6
7
8
9
10
11
12
/// Btc address types
#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum BtcAddressType {
    /// Pay to public key hash.
    P2pkh,
    /// Pay to witness public key hash.
    P2wpkh,
    /// Pay to script hash (P2SH) wrapped pay to witness public key hash.
    P2shP2wpkh,
    /// Taproot.
    P2tr,
}