News for hackers. Stuff that matters.
Re:Activists release code to generate free public transporta... by southerndrift on Monday September 02, 2019 @06:53AM (#20858227)
While still online, let people download a bunch of signed tokens from a server in exchange for their public key, which is linked to their phone number and thus identity and credit card.

Now when offline, they can create their tickets by linking a token to a fare and sign that with their private key.

At check-in, collect those tickets and when online again, charge the credit card.

Re:Activists release code to generate free public transporta... by matthewmacleod on Monday September 02, 2019 @07:03AM (#20858281)
Ah, so essentially require the inclusion of a pre-signed, server-generated token identifying the user in the ticket’s QR code and perform the actual charge when the ticket is used.

That’s much better, though it’s subject to some edge cases similar to the London Underground, caused by the potential for using invalid payment methods. Not bad though; probably low-enough potential for abuse to ignore.

Re:Activists release code to generate free public transporta... by bschne on Monday September 02, 2019 @06:59AM (#20858254)
Off the top of my head, if the backend holds either the payment details or an alias to them from a payment service provider, you could also implement a solution where the turnstile/conductor is connected to a network and the payment gets done on the backend once a ticket generated offline gets scanned/used