pub fn principal_to_account_identifier( principal: &Principal, sub_account: &Subaccount, ) -> AccountIdentifier
Converts a principal and subaccount into an account identifier.
principal
sub_account
An AccountIdentifier derived from the given principal and subaccount.
AccountIdentifier