News for hackers. Stuff that matters.
Re:Show HN: An API to store balances and transactions by jonahbenton on Friday May 29, 2020 @08:50PM (#23357418)
Am not the parent but, for example, the Bitcoin blockchain is essentially a double-entry transaction ledger. Every transaction has to balance inputs and outputs.

If the product poster is using has that property, then perhaps is a reasonable choice.

Postgres does not have any ledger balancing primitives.

Re:Show HN: An API to store balances and transactions by andriosr on Friday May 29, 2020 @08:54PM (#23357430)
For Decimals I’m using a hash-chain. So, entries are always balanced, atomic and immutable. Not a blockchain, as there is no need for consensus, but the properties for checking integrity are all in there.
Re:Show HN: An API to store balances and transactions by ethn on Saturday May 30, 2020 @01:03AM (#23358628)
Bitcoin-like blockchains are by default triple-entry accounting: https://onlinelibrary.wiley.com/doi/abs/10.1111/acfi.12556