frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Ask HN: Data integrity in a decentralized trustless system

1•ah1508•2h ago
Hi,

I am working on a voting system for a local community, people will vote with their smartphone, tablet or computer. They previously receive a link to the vote form with an access key in the url.

Once someone has voted he cannot see is vote (like in real world polling station), which partly avoid the "cash for vote" problem. "Partly" because someone can still force someone else to vote like he wants. For this, my idea was to allow to vote multiple times but with idem-potency: only the first or the last vote is recorded in the database. "you can give me 5$ to vote like you want, once back home I vote for the one I want".

But since voters cannot check if their vote has been properly recorded they must trust the system.

Block chain that involves several parties (an NGO, an university, etc...) could be an idea but nothing prevent the API that receives the votes and insert records in the blockchain to insert fake data. Code audit (+ CI/CD audit + DNS records audit) can help.

My idea: each party (NGO 1, NGO 2, university 1, university 2, etc...) deploy the API and its database. The source code is obviously open.

Then, a proxy receives the HTTP request and forward them to each API. The goal is to reach eventual consistency.

Outages may occur, if API deployed at university 1 is unreachable some data will be missing in its database. A retry policy at the proxy level can help but only for short time network failure, not for several minutes or hours outage.

So differences between databases at the end of the election will probably happen and should be corrected. If consensus is met on chunks of data (example: 2/3 of the databases have the same data for each 1 hour period) then we can get reach eventual consistency.

The proxy becomes the weak link. Each party should must have access to its configuration for audit purpose and must also have access to the DNS records.

At the ends the voters don't have to understand all these details, they trust the system because they trust the parties who participates.

What do you think ?

Thanks !

Comments

3np•2h ago
I think it's a very important and interesting problem you're tackling and you probably need to iterate a bit further on several points of the architecture and protocol.

As to your main question re the proxy: Why is there a proxy in the first place? The client could just make the same requests the proxy would directly to the multiple parties, obviating the for it, no?

ah1508•1h ago
Thanks for your answer.

Without the proxy the client would request a specific instance of the API (university 1, university 2, NGO 1, NGO 2), which then would be responsible for forwarding the data to the other. What if he changes the code and forward a false data:

user A votes for candidate X (HTTP POST request received by API deployed at university 1). API deployed at university A is compromised (by the university itself or not) and the information persisted in the DB is "user A votes for candidate Y". This information is then forwarded to other API.

If a proxy like NGINX is responsible for request forwarding the problem is solved (assuming that all parties trust nginx and its "mirror" module). https://nginx.org/en/docs/http/ngx_http_mirror_module.html

SQLite's Use of Tcl

https://www.tcl-lang.org/community/tcl2017/assets/talk93/Paper.html
1•ripe•1m ago•0 comments

You Vibe It You Run It?

https://uptimelabs.io/you-vibe-it-you-run-it/
1•mooreds•2m ago•0 comments

Show HN: Beelzebub (OSS) – MCP "canary tools" for AI agents

4•mariocandela•4m ago•0 comments

Visual representations in the human brain are aligned with LLMs

https://www.nature.com/articles/s42256-025-01072-0
1•brandonb•5m ago•0 comments

Ad/No

https://wgx.github.io/adno/
1•bookofjoe•5m ago•0 comments

Neurons that drive sociable behavior in children and teens turn off in adulthood

https://news.yale.edu/2025/09/03/quitting-time-neurons-drive-sociable-behavior-children-and-teens...
1•gmays•5m ago•0 comments

Fragrantica, Unhinged Reviews and the Joy of Niche Internet Spaces (2024)

https://www.polyesterzine.com/features/fragrantica-unhinged-reviews-and-the-joy-of-niche-internet...
1•bariumbitmap•7m ago•1 comments

Study finds major root cause of obesity

https://nypost.com/2023/10/25/health/fructose-targeted-a-major-root-cause-of-obesity-study/
2•ivewonyoung•9m ago•0 comments

Teen coder made first millennial Catholic saint

https://www.reuters.com/world/teen-coder-made-first-millennial-catholic-saint-youthful-vatican-ev...
1•m-hodges•11m ago•0 comments

Exploration and Epiphany – 3Blue1Brown [video]

https://www.youtube.com/watch?v=_BrFKp-U8GI
1•olooney•19m ago•0 comments

The Expression Problem and its solution

https://eli.thegreenplace.net/2016/the-expression-problem-and-its-solutions
1•ibobev•20m ago•0 comments

AI Mode Is Good

https://simonwillison.net/2025/Sep/7/ai-mode/
2•xnx•21m ago•0 comments

Life Cycle Assessment of Glass Cullet Recycling by Alkaline Activation

https://www.mdpi.com/2571-6131/8/3/109
1•PaulHoule•23m ago•0 comments

Vic 20 Ultima I – The First Age of Darkness

https://vic20ultima1.wordpress.com/
1•ibobev•23m ago•0 comments

Ask HN: Have you tried any such thing like Coursera's "Vibe Coding" course?

1•DrNosferatu•23m ago•0 comments

The canonical agent architecture: A while loop with tools

https://www.braintrust.dev/blog/agent-while-loop
1•tosh•24m ago•0 comments

Chrome extension that replaces occurrences of 'the cloud' with 'my butt'

https://github.com/panicsteve/cloud-to-butt
17•yakshaving_jgt•28m ago•8 comments

Security Patches for AOSP (Android Open Source Project) Delayed

https://twitter.com/grapheneos/status/1964561043906048183
6•transpute•28m ago•0 comments

Content Is King

https://mattpalmer.io/posts/content-is-king/
1•mattpal•29m ago•0 comments

80% of AI Projects Fail–LLMs Hallucinate 86%: Hybrid or Go Home. Now Act Today

https://lightcapai.medium.com/beyond-llms-the-next-frontier-of-ai-ddf54e6cb531
1•WASDAai•30m ago•0 comments

Carlo Acutis, a programmer being canonized as a saint

https://www.independent.co.uk/news/world/europe/saint-carlo-acutis-millennial-canonisation-b28217...
2•diegoholiveira•30m ago•1 comments

Engineers design origami structures that change shape and stiffness on demand

https://techxplore.com/news/2025-09-origami-stiffness-demand.html
1•Brajeshwar•31m ago•0 comments

Why Earth's Pacific Side Is Cooling So Much Faster

https://modernengineeringmarvels.com/2025/08/14/why-earths-pacific-side-is-cooling-so-much-faster/
2•Brajeshwar•31m ago•0 comments

GDPR-Compliant Email Finder

https://findforce.io/blog/gdpr-email-finder-2025
1•meysamazad•32m ago•0 comments

Russia Invaded Wikipedia

https://foreignpolicy.com/2024/10/04/russia-ukraine-putin-wikipedia-ruwiki-disinformation/
4•CaptainZapp•38m ago•0 comments

Cecil B. DeMille and the Google Android Gmail App

2•chrisjj•40m ago•0 comments

Engineering Excellence Starts on Edge

https://world.hey.com/dhh/engineering-excellence-starts-on-edge-c36e4c59
1•Bogdanp•40m ago•0 comments

This is the world's biggest animal migration: Few outsiders have seen it

https://www.wsj.com/world/africa/worlds-biggest-animal-migration-great-nile-b67e3c0b
1•bookofjoe•42m ago•1 comments

Using domain inspired ML for embedded DSP

https://buchanan.one/blog/micro-ml-transient-detector/
1•boscillator•43m ago•0 comments

Why is chat GPT suddedly DUMB?

1•OOvsuOO•44m ago•0 comments