News for hackers. Stuff that matters.
Re:Eagle Cash by max_ on Friday January 01, 2021 @03:33AM (#25601753)
Interesting.

How does this thing solve the "double spend problem" [0].

Without needing network access?

You usually need server communication in electronics payment systems to confirm payment & update account balances. How does Eagle Cash solve this problem?

[0]: https://www.investopedia.com/terms/d/doublespending.asp

Re:Eagle Cash by louwhopley on Friday January 01, 2021 @03:43AM (#25601789)
Similar to many Mastercard/Visa cards. The electronic chip on the card is capable of actually storing the balance and then syncing it back when it reaches a terminal machine that’s connected to the internet.

In my experience, many (most) chip-card based transport systems for busses or trains (eg tap n go) operates in this offline mode where it only syncs when you go to the kiosk to top it up.

It uses cryptographic methods to securely store and update the balance. The chip itself is an embedded processor.

Re:Eagle Cash by sargun on Friday January 01, 2021 @04:14AM (#25601909)
How do you solve the FLP problem?

e.g.

Kiosk->Device: Give me $100

Device: Subtract $100 from myself

Device->Kiosk: Send $100 (fail)

Alternatively, what if this happens the other direction?

Re:Eagle Cash by lmz on Friday January 01, 2021 @05:20AM (#25602223)
Those cards typically store the last few transactions (e.g. [0] is an Android app that can display transit card usage history), so it should be possible to code idempotency into the card firmware.

[0]: https://play.google.com/store/apps/details?id=com.codebutler...

Re:Eagle Cash by texse on Friday January 01, 2021 @07:45AM (#25602877)
Technically FLP impossibility only applies to deterministic algorithms, not randomized ones, otherwise no consensus protocol would work. So you could imagine a complicated technical solution that could work (eg. treating everything as a big Raft cluster and using Raft's membership changes every time a device is connected / disconnected).

In practice the solution is to realize that failures are rare (especially compared to events like the soldier simply misplacing the card), and to have a trusted human available to resolve any issues that do occur.

Re:Eagle Cash by wyattpeak on Friday January 01, 2021 @05:17AM (#25602210)
Atomic transactions, as with any database. After sending the money, confirm that it arrived. If it didn't, undo the subtraction.

That said, shoddy implementations of these systems often do fail in numerous ways. As an end-user, you really just have to live with it.

Re:Eagle Cash by sargun on Friday January 01, 2021 @05:57AM (#25602359)
What protocol guarantees that there is an atomic transaction, in the presence of faults, in such a system?
Re:Eagle Cash by murderfs on Friday January 01, 2021 @03:38AM (#25601771)
You trust the secure element, and if you think that's not enough, you reconcile spending logs and bring the wrath of the federal government on whoever was dumb enough to try.
Re:Eagle Cash by lcabral on Friday January 01, 2021 @03:54AM (#25601839)
This uses the same flow as many transportation cards (which in some countries can also be used to purchase goods). Essentially the card chip holds the debit amount it has (the user makes an initial transaction to load it, debiting the money from a debit/credit card or paying for directly with money) so that every time a transaction occurs, the value in card is altered directly. This system also has the potential of making transactions fully anonymous as no-one needs to know who the holder of the card is or where he spends his money.
Re:Eagle Cash by alasdair_ on Friday January 01, 2021 @03:41AM (#25601785)
They rely on the fact that the double spenders are easy to find and punish.
Re:Eagle Cash by max_ on Friday January 01, 2021 @03:47AM (#25601804)
So security is maintained using violence? Not technology?
Re:Eagle Cash by est31 on Friday January 01, 2021 @03:53AM (#25601834)
I think that's the entire point of any army :). In this instance I guess the military police would be responsible though.

It's a centralized system, and every account holder is fully identified to the government (even with DNA samples IIRC). The kiosks likely keep the logs and upload them when a connection can be made. Then the data get collected and compared centrally, and any discrepancy would show up. At least that's how I understand the "batch processing" remark in the wiki page.

Re:Eagle Cash by eecc on Friday January 01, 2021 @04:11AM (#25601899)
What do you think society is all about? I can recommend Debt by the late David Graeber
Re:Eagle Cash by lucb1e on Friday January 01, 2021 @04:18AM (#25601932)
Not sure a whole book is needed, it seems fairly straightforward to show that society is based on threats of violence.

If you don't pay someone, that someone can go to a judge. If you indeed did something illegal (e.g. if you did a double spend, money forgery, whatever) you should be declared guilty and ordered to pay the damages plus perhaps a fine. If you don't do that, the amount due will increase and eventually you get ordered to jail. If you don't go voluntarily, they will make you. Of course everything comes down to force and eventually violence in the end. Why else would you comply with things that don't please you? (Because you're an honest party, okay, and the vast majority of people are, but not everyone is in the privileged position where they have what they want without applying dishonesty.)

Even if you think to solve it with technology, preventing a crime is indeed better than detecting and punishing one, but let's say it's impossible to detect the double spend ahead of time and your technological solution only finds out that there was a double spend after the fact. What's it going to do, block your card from now on? In the end, it will still have real world consequences for you. Taking away someone's card, through physical or technological means, it's all more or less the same thing.

Re:Eagle Cash by max_ on Friday January 01, 2021 @05:23AM (#25602235)
One reason I am interested in Bitcoin is that it doesn't rely on violence to enforce it's rules.
Re:Eagle Cash by dandanua on Friday January 01, 2021 @06:12AM (#25602434)
It doesn't prevent from physical torturing that can be used to steal your coins. I've already seen a bunch of news about missing or killed people in this field. The creator is also probably dead.
Re:Eagle Cash by texse on Friday January 01, 2021 @07:50AM (#25602908)
If someone can round up 51% of Bitcoin's miners and hold them at gunpoint, then they have full control over Bitcoin's rules.

Well over 51% of bitcoin mining happens in China, so Xi Jinping can probably change Bitcoin's rules tomorrow if he desires.

Re:Eagle Cash by max_ on Wednesday January 06, 2021 @01:21AM (#25655098)
> if someone can round up 51% of Bitcoin's miners and hold them at gunpoint, then they have full control over Bitcoin's rules.

This is not true. Most of the rules are maintained using cryptography and game theory.

For someone to break bitcoin, they need to be irrational. i.e spend more than they will benefit from an attack.

And even if such an attack happens, it's very trivial to roll back & undo the damages.

It's not a democracy, it's a game.

Re:Eagle Cash by eecc on Friday January 01, 2021 @03:41PM (#25606834)
It still acts as a token for debt, and the underlying force of that is violent retribution for default
Re:Eagle Cash by max_ on Wednesday January 06, 2021 @01:23AM (#25655104)
No. contemporary economies have figured out that everyone is better of doing "wealth exchange" instead of coercing people for their wealth.
Re:Eagle Cash by lucb1e on Friday January 01, 2021 @09:40AM (#25603536)
I think you missed the last paragraph.
Re:Eagle Cash by murderfs on Friday January 01, 2021 @03:52AM (#25601827)
I find it hilarious that someone running a "fintech studio" doesn't understand this.
Re:Eagle Cash by KirillPanov on Friday January 01, 2021 @04:06AM (#25601876)
The card chips are issued by a trusted central authority and (supposedly) tamperproof.

You can't "run EagleCash" on your laptop; it only runs on card chips issued by the military.

Re:Eagle Cash by 0x426577617265 on Friday January 01, 2021 @03:39AM (#25601774)
Funds are stored on the card and loaded from a kiosk.
Re:Eagle Cash by smhg on Friday January 01, 2021 @03:47AM (#25601801)
Something similar existed in Belgium from 1995 to 2014 for small payments, called Proton [0].

[0] https://en.wikipedia.org/wiki/Proton_(bank_card)

Re:Eagle Cash by eecc on Friday January 01, 2021 @04:13AM (#25601906)
Also Chipnik in NL, discontinued several years ago. Too fiddly, nobody worries about privacy any longer.

https://en.m.wikipedia.org/wiki/Chipknip

Re:Eagle Cash by flemhans on Friday January 01, 2021 @06:01AM (#25602380)
And Danmønt in Denmark, 1991-2005.

I think Sweden had one called Kash or something like that.

Re:Eagle Cash by fuzzy2 on Friday January 01, 2021 @06:13AM (#25602438)
In Germany, there's GeldKarte. Still relatively widely supported on public transportation ticket machines and cigarettes vending machines, so they can be used offline.

I found it awesome to use with at-home recharging (with an appropriate card terminal) and use on trains. Often, the ticket machine would refuse coins or not have change. Electronic payment to the rescue! :)

Unfortunately, its fate is already sealed with basically all banks having announced their withdrawal from the system.

https://en.wikipedia.org/wiki/Geldkarte