What I understand is that in Venezuela you can ask for a voting “receipt” to know the results for the station where you voted (done electronically) so if you’ve got enough of those you can tell if the public numbers are real or not.
Those receipts never got released by the government but the opposition acquired enough of them to prove that the results are fake.