The two parties can transact in money rather than barter in goods precisely because there is a third party authority behind the cash. Though that third party doesn't, of course, have visibility of individual transactions.