Add helper function to properly get invoice pubkey