Yes this is cunning.
There is no way that Trump would make this offer if he didn’t
already have Barry’s disputed records.
That is the implied threat here.
I think it was an extremely safe bet even without foreknowledge of what the records hold. If they were in order and his grades were even average 0bama could have generated a lot of political capital by releasing them a long time ago.