A deal could see Iran free US prisoners in return for the release of billions of dollars worth of Iranian assets.