fn calc_tweaked_keypair( keypair: &Keypair, merkle_root: Option<TapNodeHash>, ) -> Result<Keypair, BridgeError>