fn hash_spending_data(xpub: &XPub, attrs: &Attributes) -> [u8; 28]