L'OctetClermont-Ferrand · 2032

← All appendices

Project · Patrick Fox

Translation of Patrick Fox's original French text.

LibreDemocracy

The free application for digital democracy, peer-to-peer

Project version 1.0 — November 2026 Author: Patrick Fox — Libre Expert, Clermont-Ferrand — www.libre-expert.pro Licence: GPLv3

“To provide an architecture as totally decentralised as democratic power is, where every adult is equal to every other adult, as robust as the Internet is, against repression, war, arrests, censorship, destruction, the police state, theft and interruptions.” — LibreDemocracy Project v0.8.2.4, December 2022


Contents

  1. The idea on one page
  2. What LibreDemocracy takes from previous versions
  3. The seven places of democracy
  4. The journey of an idea into law
  5. The interface: 4 windows, 4 zones
  6. Votes, referendums and elections
  7. The Free Patrick protocol (FPP)
  8. Data: three databases per module
  9. Exchanging with other networks
  10. Security, threats and countermeasures
  11. Moderation and rules of debate
  12. What we draw on
  13. What is possible today, and what requires legislation
  14. Roadmap
  15. Open questions
  16. Glossary

1. The idea on one page

LibreDemocracy is a free application, installed on each citizen's computer or phone, which contains everything needed to make a democracy work: debating, proposing, amending, voting, electing, scrutinising.

Three principles set it apart from existing platforms:

  1. No central server. Each citizen carries a copy of the shared data. Machines talk directly to one another, peer to peer, through the Free Patrick protocol (FPP). Shutting down a server, seizing a computer or blocking a site is not enough to silence democracy: it carries on on all the other machines.
  2. Simple to use. The whole application fits into 4 windows at most, and each window into 4 zones at most. Someone who is not a computer specialist must be able to use it from day one.
  3. Transparent and verifiable. The code is free (GPLv3). Every debate, every amendment, every moderation decision is time-stamped, signed and open to consultation. Every voter can check that their ballot was counted, without anyone being able to know whom they voted for.

It contains seven places: the Agora, the Forum, the IRC, the Assembly, the Senate, the Parliament, and the Ballot Box, where votes, referendums and elections are held, from the municipality up to the presidential election.

LibreDemocracy is the digital tool of the eight values: liberty (free software, no central censorship), equality (one person, one vote), fraternity (we debate between fellow citizens, not against enemies), and emulation (the best argument wins, whoever puts it forward).


2. What LibreDemocracy takes from previous versions

This document extends the project notes written between December 2022 and January 2023. The original ideas are kept and modernised:

Idea in versions 0.8 (2022-2023) What it becomes in version 1.0
Cross-platform desktop application, HTML5 and CSS3 interface HTML5/CSS3 interface kept, embedded in a lightweight application (desktop, phone, and optional web version)
Three databases per module: personal, references, shared Kept as is (see part 8)
Shared database “dated, brought by peer to peer, which can be asynchronous and offline” Signed, time-stamped logs, synchronised by the FPP protocol, which work even without the Internet
File sharing by cutting an archive with split and then transferring the pieces Generalised: each file is cut into blocks identified by their fingerprint, downloadable from any peer
Encrypted SSH tunnel Replaced by end-to-end encryption built into the protocol, with no configuration
One XML settings file per module One settings file per module (readable format), translations in language files
Deployment “by simple copying” Kept: the application and its data fit on a USB stick
Server version without a graphical interface (headless) Kept under the name relay node, for town halls, associations and volunteers
35 modules (Forum, Agora, Assembly, Senate, Poll, Laws, Election, Chat, Share…) The democratic modules are brought together in the 4 windows; the others (LibreBank, Shop, Blog…) become extensions
Scales: municipality, département, region, country, union of countries Kept: every place of debate and every vote exists at every scale

3. The seven places of democracy

Each place exists at five scales: the municipality, the département, the region, the country, the European Union (or any union of countries). A citizen of Clermont-Ferrand therefore sees the Agora of Clermont-Ferrand, that of the Puy-de-Dôme, that of Auvergne-Rhône-Alpes, that of France and that of Europe.

3.1 The Agora — the public square

For whom: any registered citizen. For what: submitting an idea, a petition, a citizens' bill, reporting a problem.

It is the marketplace of Athens: you enter freely, you take the floor. Each proposal can receive support. When it reaches a threshold set in advance (for example 1% of those registered at the scale concerned), it automatically moves to the Forum for an organised debate.

To avoid a hubbub, the Agora uses an opinion map inspired by Pol.is: everyone votes “agree / disagree / pass” on short statements, and the application groups participants by affinity. The points of consensus appear, those on which even opposing camps agree. That is often where the solutions lie.

3.2 The Forum — in-depth debate

For whom: any registered citizen. For what: debating at length, in writing, on a specific subject.

The Forum is organised into thematic threads (economy, ecology, health, education, security, culture…). Each contribution is classified as an argument for, an argument against, a question, a source or a proposed amendment. So one does not read a jumbled conversation, but a map of the debate: on one side the arguments for, on the other the arguments against, each with its replies.

The most useful contributions rise thanks to readers' votes, but a well-sourced minority argument always remains visible: the ranking algorithm is public and does not favour the number of supporters, seniority or reputation alone.

3.3 The IRC — live discussion

For whom: any citizen. For what: talking in real time, getting organised, coordinating.

This is the instant chat room, in the manner of the historic IRC channels: one channel per municipality, per subject, per working group, per association. People talk freely there, prepare debates, get to know one another. Channels can be public or private (end-to-end encrypted). A bridge makes it possible to link a LibreDemocracy channel to a real IRC channel, a Matrix room or other free messaging services (see part 9).

3.4 The Assembly — the citizens' assembly

For whom: citizens drawn by lot, alongside experts, elected officials and philosophers. For what: examining proposals from the Agora and the Forum, hearing experts, drafting texts.

It takes up the proposal of The Handbook of Virtue: “assemblies in which citizens drawn by lot, experts, elected officials and philosophers sit together, and where each counts as one”. The drawing of lots is carried out by the application itself, in a way that is verifiable by all (see part 6.6). Members are renewed regularly, for example by thirds each year.

Sessions are public: any citizen can follow them live, read the minutes and submit written questions.

3.5 The Senate — the chamber of the territories

For whom: representatives of municipalities, départements and regions. For what: reviewing texts from the territories' point of view, defending rural areas and small municipalities, proposing amendments.

Just as the Senate of the French Republic represents local authorities, the LibreDemocracy Senate makes sure that a law designed for a big city does not crush a mountain village. Its members are appointed by the local scales (elected or drawn by lot, as each territory chooses).

3.6 The Parliament — the workshop of the law

For whom: the members of the Assembly and the Senate together, in view of all citizens. For what: writing the law, amending it, voting on it.

The Parliament is the place where the text becomes law. It brings the two chambers together for the shuttle: a text passes from the Assembly to the Senate and back until the two agree. If they do not agree, a joint committee seeks a compromise; failing that, the text can be put to a referendum.

The text of the law is written there by many hands, live, like a shared document: each amendment is a visible change, signed, discussed and voted on. The law can be displayed article by article, with, for each sentence, its author, its date and the debate that gave rise to it.

A note on words. In the French Republic, Parliament means the National Assembly and the Senate together. LibreDemocracy keeps this logic: the Assembly and the Senate are two chambers, and the Parliament is the place where they work together on the final text.

3.7 The Ballot Box — votes

For whom: any voter registered on the list for the scale concerned. For what: polls, consultations, referendums, elections.

The Ballot Box is described in detail in part 6.


4. The journey of an idea into law

   AGORA            FORUM             ASSEMBLY           SENATE           PARLIAMENT         BALLOT BOX
 ┌────────┐      ┌────────┐        ┌──────────┐      ┌────────┐       ┌──────────┐      ┌─────────┐
 │ Idea   │ ───► │ Reasoned│ ───►  │ Drafting │ ───► │Territor.│ ───► │ Vote on  │ ───► │Citizens'│
 │support │thresh│ debate  │summary│ the text │      │ review  │◄───  │final text│ if   │referend.│
 └────────┘      └────────┘        └──────────┘      └────────┘shuttle└──────────┘asked └─────────┘
      ▲                                                                                       │
      └──────────────────────── IRC: open discussion at every stage ◄─────────────────────────┘
  1. Agora — A citizen submits an idea. It gathers support.
  2. Forum — The threshold is reached: an organised debate opens for a set period (for example four weeks). A summary of the arguments is drafted and approved by the participants.
  3. Assembly — The citizens drawn by lot examine the summary, hear experts and draft a text.
  4. Senate — The text is reviewed from the point of view of the territories and amended.
  5. Parliament — Shuttle between the two chambers, then vote on the final text.
  6. Ballot Box — A referendum is held if citizens ask for one (a petition reaching a threshold) or if the two chambers do not agree. The people have the last word.

At every stage, everything is public: who proposed what, who voted how (for elected officials and those drawn by lot, not for citizens in the Ballot Box), which amendments were accepted or rejected, and why.


5. The interface: 4 windows, 4 zones

The principle

A democracy that only computer specialists know how to use is not a democracy. The interface therefore obeys a strict rule:

  • 4 windows at most, chosen with four large buttons that are always visible;
  • 4 zones at most per window, always laid out in the same way:
┌───────────────┬───────────────────────────────────┬─────────────────┐
│               │                                   │                 │
│   ZONE 1      │            ZONE 2                 │     ZONE 3      │
│  Navigation   │         Main content              │     Context     │
│ (where I am)  │   (what I am reading / doing)     │   (who, what)   │
│               │                                   │                 │
├───────────────┴───────────────────────────────────┴─────────────────┤
│                    ZONE 4  —  Action (write, vote, reply)            │
└──────────────────────────────────────────────────────────────────────┘

On a phone, zones 1 and 3 fold into side drawers; only zone 2 and zone 4 remain displayed.

The four windows are: ① The City, ② The Floor, ③ The Ballot Box, ④ My space.


Window ① — THE CITY (Agora, Forum, Assembly, Senate, Parliament)

This is the window of the institutions and written debates.

┌─ ① THE CITY ──── ② The Floor ──── ③ Ballot Box ──── ④ My space ────────────────┐
├──────────────────┬──────────────────────────────────────┬──────────────────────┤
│ SCALE            │ FORUM › Ecology › Transport           │ DEBATE DETAILS       │
│ ○ Clermont-Fd    │                                       │ Opened 2 Dec.        │
│ ○ Puy-de-Dôme    │ “Completely free trams?”              │ Closes 30 Dec.       │
│ ○ AURA           │                                       │ 412 participants     │
│ ● France         │  FOR (14)           │  AGAINST (11)   │                      │
│ ○ Europe         │  ▸ Fewer cars in    │  ▸ Cost for the │ OPINION MAP          │
│                  │    the city  ▲ 87   │    city   ▲ 64  │   ◉ group A  41 %    │
│ PLACES           │    ↳ INSEE source   │    ↳ reply…     │   ◉ group B  35 %    │
│ ▸ Agora          │  ▸ Equal access     │  ▸ Overcrowding │   ◉ group C  24 %    │
│ ▸ Forum        ◄ │    ▲ 59             │    ▲ 33         │                      │
│ ▸ Assembly       │                     │                 │ CONSENSUS: 78% agree │
│ ▸ Senate         │  QUESTIONS (6)  SOURCES (19)          │ to trial it on one   │
│ ▸ Parliament     │                                       │ line.                │
├──────────────────┴──────────────────────────────────────┴──────────────────────┤
│ ✎ Add:  [Argument for] [Argument against] [Question] [Source] [Amendment]      │
└─────────────────────────────────────────────────────────────────────────────────┘
Zone Content
1. Navigation Choice of scale (municipality → Europe) and place (Agora, Forum, Assembly, Senate, Parliament)
2. Content Depending on the place: Agora proposals, Forum debate map, Assembly or Senate session, text of the law article by article in Parliament
3. Context Timetable, participants, opinion map, points of consensus, history of versions of the text
4. Action Support, argue, ask a question, cite a source, propose an amendment

Window ② — THE FLOOR (IRC and messaging)

This is the window for live discussion.

┌─ ① The City ──── ② THE FLOOR ──── ③ Ballot Box ──── ④ My space ────────────────┐
├──────────────────┬──────────────────────────────────────┬──────────────────────┤
│ CHANNELS         │ #clermont-transport                   │ PRESENT (37)         │
│ # clermont       │                                       │ ● Patrick            │
│ # clermont-trans◄│ 09:12 Marie   Has anyone got the      │ ● Marie              │
│ # puy-de-dome    │              passenger figures?       │ ● Ahmed              │
│ # france-health  │ 09:13 Ahmed   Yes, I'm putting them in│ ○ Lucie (away)       │
│ # agora-europe   │              the Forum, “tram” thread.│                      │
│                  │ 09:15 Patrick Thanks! Let's discuss   │ SHARED FILES         │
│ PRIVATE 🔒       │              it at Thursday's meeting.│ 📄 passengers.ods    │
│ @ Marie          │                                       │ 📄 minutes.odt       │
│ @ local-committee│                                       │                      │
├──────────────────┴──────────────────────────────────────┴──────────────────────┤
│ > Write a message…                                     [📎 File] [Send]        │
└─────────────────────────────────────────────────────────────────────────────────┘
Zone Content
1. Navigation Public channels (by territory, by theme), private channels and encrypted direct messages
2. Content The live discussion thread
3. Context People present, files shared in the channel, pinned items
4. Action Write, attach a file, create a quick poll in the channel

Window ③ — THE BALLOT BOX (votes, referendums, elections)

This is the window of decision.

┌─ ① The City ──── ② The Floor ──── ③ BALLOT BOX ──── ④ My space ────────────────┐
├──────────────────┬──────────────────────────────────────┬──────────────────────┤
│ BALLOTS          │ REFERENDUM — France                   │ VERIFICATION         │
│ IN PROGRESS      │                                       │                      │
│ ● Referendum   ◄ │ Question:                             │ My ballot:           │
│   France         │ “Do you approve the bill              │ ✔ cast on 12/12      │
│ ○ Particip.budget│   introducing a basic income?”        │ ✔ in the ballot box  │
│   Clermont-Fd    │                                       │ Receipt: 7f3a…c91e   │
│                  │   ( ) YES                             │                      │
│ UPCOMING         │   ( ) NO                              │ THE BALLOT BOX       │
│ ○ Municipal      │   ( ) BLANK                           │ 18,412,503 ballots   │
│ ○ Legislative    │                                       │ Closes: 14/12 8 pm   │
│                  │ 📄 Read the text  📄 Read the debate  │ Results: after       │
│ COMPLETED        │                                       │ closing              │
│ ○ Tram poll      │ You can change your vote              │                      │
│                  │ until the ballot closes.              │                      │
├──────────────────┴──────────────────────────────────────┴──────────────────────┤
│                     [ Check my choice ]   [ VOTE ]                              │
└─────────────────────────────────────────────────────────────────────────────────┘
Zone Content
1. Navigation Ballots in progress, upcoming, completed, at every scale
2. Content The question or the list of candidates, with direct access to the text and the debate that preceded it
3. Context Verification of one's own ballot (receipt), state of the ballot box, timetable, then detailed results
4. Action Vote, verify, and after closing: recount it yourself

Window ④ — MY SPACE (identity, network, data)

This is the window of the citizen and their machine.

┌─ ① The City ──── ② The Floor ──── ③ Ballot Box ──── ④ MY SPACE ────────────────┐
├──────────────────┬──────────────────────────────────────┬──────────────────────┤
│ MY SPACE         │ MY CITIZEN IDENTITY                   │ FPP NETWORK          │
│ ▸ Identity     ◄ │                                       │ ● connected          │
│ ▸ My contribut.  │ Patrick Fox                           │ 214 peers            │
│ ▸ My channels    │ Voter: Clermont-Ferrand (63)          │ 3 relays             │
│ ▸ Notifications  │ Credential valid until 03/2028        │ Last sync:           │
│ ▸ Data           │ Public key: fpp1q9x…k2m               │ 12 s ago             │
│ ▸ Extensions     │                                       │                      │
│ ▸ Settings       │ [Back up my key on paper]             │ MODE                 │
│                  │ [Back up to USB stick]                │ ● Internet           │
│                  │ [Revoke this device]                  │ ○ Local network      │
│                  │                                       │ ○ Offline (USB)      │
├──────────────────┴──────────────────────────────────────┴──────────────────────┤
│ Language: English ▾     Text size: A A A     Theme: light / dark               │
└─────────────────────────────────────────────────────────────────────────────────┘
Zone Content
1. Navigation Identity, contributions, channels, notifications, data, extensions, settings
2. Content The details of the chosen section
3. Context State of the peer-to-peer network: number of peers, relays, synchronisation, connection mode
4. Action Accessibility settings: language, text size, theme, read aloud

Accessibility

  • Read-aloud for all texts and dictation for all contributions, for people who are visually impaired or who find reading difficult.
  • “Easy to read” mode: short sentences, pictograms, a three-line summary at the top of each debate.
  • All the languages of the European Union and the regional languages, thanks to language files.
  • No smartphone required: the application runs on an old computer, and every town hall can offer a public-access terminal. This is the answer to the “problem of smartphone confirmation”.

6. Votes, referendums and elections

6.1 Types of ballot

Type Scale Organised by Status
Poll all any citizen indicative, not verified
Consultation all a LibreDemocracy institution advisory
Participatory budget municipality, département, region the local authority as decided by the local authority
Citizens' initiative referendum (RIC) all triggered by a signature threshold advisory today, binding if the law allows
Referendum all an assembly or the Parliament same
Municipal election municipality the electoral authority see part 13
Legislative election constituency the electoral authority see part 13
Presidential election country the electoral authority see part 13
European, departmental and regional elections corresponding scale the electoral authority see part 13

6.2 Available voting systems

Each ballot chooses its voting system before it opens, and this choice is recorded in the public log: the rules cannot be changed along the way.

  • Yes / No / Blank — for referendums.
  • Two-round single-member majority voting — the current system for French presidential and legislative elections, with configurable thresholds.
  • List voting with proportional representation and a majority bonus — the system for municipal elections, configurable according to the size of the municipality and the rules in force.
  • Full proportional representation — for European elections or any assembly that wishes it.
  • Majority judgment — each voter gives a grade to each candidate (Excellent, Very good, Good, Fair, Poor, Reject); the winner is the one whose median grade is the best. A system invented by two French researchers, it avoids “tactical voting” and leaves plenty of room for emulation between candidates.
  • Approval voting — you tick all the candidates you accept.
  • Preferential voting — you rank the candidates in order of preference.

The blank vote is always counted and published.

6.3 The guarantees of a real vote

An electronic vote worthy of the name must keep all the promises of the wooden ballot box, at the same time:

Guarantee What it means How LibreDemocracy keeps it
Secrecy Nobody can know whom I voted for The ballot is encrypted on my machine; it is never decrypted on its own, only the totals are
One person, one vote Each voter votes once, and only if registered Anonymous voter credential issued from the electoral roll (see 6.4)
Individual verifiability I can check that my ballot is in the ballot box I receive a receipt (fingerprint of my encrypted ballot) and I find it in the public ballot box
Universal verifiability Anyone can recount The encrypted ballot box and the mathematical proofs are public; anyone can redo the calculation with the application
No coercion No one can force me to vote a certain way Re-voting possible until closing, only the last vote counts; voting at the polling station always possible and takes precedence
No partial results Nobody knows the result before closing Decryption requires several independent guardians, who act only after closing
Availability You can vote even if servers go down No central server; the ballot box is copied onto thousands of peers

6.4 How it works, simply

We draw on Belenios, a free voting system developed by French researchers (Inria, CNRS, University of Lorraine), itself descended from Helios.

  1. Registration. The voter receives, once, a voter credential issued by the authority that keeps the electoral roll (the town hall, for example), at the counter or through a recognised digital identity procedure. The credential is built in such a way that the authority knows who received a credential, but cannot afterwards link the credential to a ballot.
  2. The guardians. Before the ballot, several independent guardians (for example a representative of each list, a magistrate, an association, citizens drawn by lot) generate the election key together. A majority of them (for example 3 out of 5) must cooperate to decrypt the result. None can do it alone.
  3. Voting. On their machine, the voter makes a choice, and the application encrypts the ballot with the election key, attaches a proof that the ballot is valid (a single choice, no rigged ballot) and signs it with the voter's credential.
  4. The ballot box. The encrypted ballot is broadcast on the FPP network and added to the election's public bulletin board, a log copied onto thousands of peers. The voter keeps their receipt and can check at any time that their ballot is there.
  5. The count. At closing, the encrypted ballots are added up without being decrypted (so-called “homomorphic” encryption). The guardians decrypt only the total, publishing proof that they did so correctly.
  6. Checking. Any citizen can press “Recount”: their application redoes the whole operation from the public ballot box and checks every proof.

6.5 National and local elections in LibreDemocracy

  • Presidential — national ballot, two rounds, candidates validated by the electoral authority; display of a comparable programme sheet for each candidate, linked to Forum debates.
  • Legislative — one ballot per constituency; each voter sees only the candidates in their own. The constituency map is a public, signed reference database.
  • Municipal — one ballot per municipality, list voting; each list publishes its programme and its running mates.
  • For each election: timetable, published campaign accounts, fair speaking time in organised debates, and the voting record of outgoing members in the LibreDemocracy Assembly, Senate and Parliament.

6.6 Verifiable drawing of lots

For the Citizens' Assembly, the drawing of lots must be indisputable. The method:

  1. The list of volunteers (or of all those registered) is frozen and published in the form of a fingerprint.
  2. The randomness is drawn from a public source impossible to predict in advance, for example the combination of contributions from several peers revealed in two stages (each first commits to a secret number, then reveals it).
  3. Any citizen can redo the draw and obtain exactly the same result.
  4. The draw can be stratified (age, sex, territory, social category) so that the Assembly resembles the country.

7. The Free Patrick protocol (FPP)

7.1 Overview

The Free Patrick protocol (FPP) is the common language spoken by all copies of LibreDemocracy to find, recognise and communicate with one another, without a central server.

Its specification was designed with the help of artificial intelligence, drawing on the best proven peer-to-peer technologies. FPP does not invent any cryptography: it assembles well-known, public, audited building blocks. That is a rule of absolute caution in computer security.

7.2 The seven layers of FPP

┌──────────────────────────────────────────────────────────────┐
│ 7. VOTE        public ballot box, homomorphic encryption,    │
│                proofs                                        │
├──────────────────────────────────────────────────────────────┤
│ 6. FILES       blocks identified by fingerprint (“split”)    │
├──────────────────────────────────────────────────────────────┤
│ 5. DATA        signed logs + collaborative texts (CRDT)      │
├──────────────────────────────────────────────────────────────┤
│ 4. BROADCAST   publication by topic (gossip)                 │
├──────────────────────────────────────────────────────────────┤
│ 3. DISCOVERY   distributed directory (DHT) + local network   │
├──────────────────────────────────────────────────────────────┤
│ 2. TRANSPORT   encrypted connections, NAT traversal          │
├──────────────────────────────────────────────────────────────┤
│ 1. IDENTITY    cryptographic keys + citizen credential       │
└──────────────────────────────────────────────────────────────┘
Layer 1 — Identity
  • Each device has a key pair (Ed25519 type): the private key stays on the device, the public key serves as an address.
  • A citizen can link several devices to their identity and revoke a lost or stolen device.
  • A citizen credential (see 6.4) proves that one is a registered voter, without revealing more than necessary.
  • The key can be backed up on paper (a sequence of words) and on a USB stick.
Layer 2 — Transport
  • End-to-end encrypted and authenticated connections (Noise-type protocol, as in libp2p).
  • A choice of several transports: QUIC and TCP over the Internet, WebRTC for the browser version, and optionally Tor or I2P for countries where democracy is repressed.
  • Traversal of Internet routers (NAT) by direct “hole punching”; failing that, routing through a relay node that sees only encrypted data.
Layer 3 — Discovery
  • Distributed directory (Kademlia-type DHT, like BitTorrent and IPFS): other peers are found without asking anyone.
  • Local discovery on the same Wi-Fi network (mDNS): a municipal hall, an association or a school can debate and vote even if the Internet is cut off.
  • Bootstrap list of a few known relay nodes (town halls, associations, volunteers), editable by the user.
Layer 4 — Broadcast
  • Each place of debate is a topic (for example fr/63/clermont-ferrand/forum/ecologie) to which one subscribes.
  • Messages spread from peer to peer by gossip (like libp2p's gossipsub), without any node seeing the whole network.
  • Each peer keeps only the topics that concern it (its municipality, département, region, country, Europe), which limits disk space.
Layer 5 — Data

This is the realisation of the 2022 idea: a dated shared database, brought by peer to peer, asynchronous and offline.

  • Each citizen writes in their own log: a sequence of numbered, time-stamped, signed messages, in which each message contains the fingerprint of the previous one. It is impossible to change the past without it showing (the principle of the logs of Secure Scuttlebutt and Hypercore).
  • The shared database of each module is the merger of the logs of all participants. Two peers that meet again after a week offline exchange what they are missing, and always arrive at the same result.
  • Texts written by several people (laws, amendments, summaries) use CRDTs (such as Automerge or Yjs): several people can edit the same text at the same time, even offline, and the changes merge without conflict.
Layer 6 — Files

This is the generalisation of the “peer to peer” method of January 2023 (an archive cut up with split, transferred in pieces, reassembled):

  • every file (text of a law, report, video of a session) is cut into blocks;
  • each block is identified by its fingerprint: it can be downloaded from any peer, and one can be sure it has not been altered;
  • the more a document is consulted, the more available it becomes, as with BitTorrent.
Layer 7 — Vote
  • Each ballot has its bulletin board: an append-only log, signed by the organising authority, in which each encrypted ballot is recorded.
  • Peers copy and compare this board: if someone tried to show a different version to certain voters, the contradiction would be detected and reported.
  • The cryptographic proofs and decryption by the guardians follow the scheme described in 6.4.

7.3 Working without the Internet

Situation What works
Normal Internet Everything
Filtered or censored Internet Routing via Tor/I2P, volunteer relays, bridges
Internet cut off, local network available Local debates, IRC and votes in the hall or neighbourhood; synchronisation when the Internet returns
No network at all Synchronisation by USB stick passed from hand to hand, or from phone to phone (Bluetooth, Wi-Fi Direct), as the Briar application does

7.4 Relay nodes

The server version planned since 2022 becomes the relay node: a copy of LibreDemocracy without a graphical interface, installed on a server, a NAS or a small computer. It decides nothing and sees only what is public or encrypted. It:

  • helps new peers find the network;
  • keeps a copy of its territory's data for those who are often offline;
  • relays connections for devices behind a difficult router;
  • serves as web access for citizens who do not install the application.

Anyone can set one up: a town hall, an association, a library, a private individual.


8. Data: three databases per module

As planned in version 0.8.2.4, each module (Agora, Forum, IRC, Assembly, Senate, Parliament, Ballot Box) has three databases:

Database Content Shared?
Personal My drafts, my favourites, my notes, my keys, my private channels Never. Encrypted on my machine.
References What is fixed and signed by an authority: municipalities, constituencies, electoral calendar, laws in force, lists of candidates Yes, read-only, signed
Shared Everything citizens produce together: proposals, arguments, public messages, amendments, encrypted ballots Yes, synchronised by FPP

Technically, each database is a local SQLite database (lightweight, serverless, a simple file), rebuilt from the signed logs. Deleting one's database and rebuilding it from the network gives back exactly the same data.

Protection of personal data. Public data is public by choice (people debate under their own name or under a pseudonym, as each place decides). Nothing is collected about users' habits: no advertising, no tracking, no engagement algorithm. Complying with the GDPR raises a particular question in a system where messages are copied everywhere (the right to erasure): the solution adopted is to publish contributions under a key that the author can revoke, which makes the content unreadable for newcomers, while knowing that a copy already read cannot be erased from people's memories.


9. Exchanging with other networks

LibreDemocracy must not be an island. Bridges make it possible to talk with those who do not use it yet:

Network What the bridge allows
IRC (Libera.Chat, OFTC…) Linking a LibreDemocracy channel to a classic IRC channel
Matrix Linking a channel to a Matrix room (Element)
Fediverse (Mastodon, PeerTube, Lemmy…) via ActivityPub Publishing Agora proposals and vote results; receiving replies
E-mail Receiving notices of meetings, minutes and results; replying by e-mail
Web Each public debate has a web address that can be consulted without installing the application, via a relay node
Decidim, Consul Importing or exporting proposals with the participatory democracy platforms already used by municipalities

These bridges are optional extensions: the core of the application does not depend on them.


10. Security, threats and countermeasures

A democratic application will be attacked. This must be anticipated from the outset.

Threat Description Countermeasure
Fake accounts (Sybil attack) One person creates thousands of identities to carry more weight Voting and support rights require a citizen credential; accounts without a credential can read and discuss, but not decide
Vote buying, coercion Someone pays or forces a voter to vote in front of them Re-voting possible until closing; voting at the polling station always possible and takes precedence; the receipt does not prove whom one voted for
Infected computer A virus changes the vote before encryption Possibility of checking one's ballot from a second device; free, audited code; strongly advised to vote from an up-to-date device
Censorship, shutdown A government blocks the application No central server, Tor/I2P, local network, USB stick
Rigged bulletin board Some people are shown a different ballot box Peers compare their copies; any divergence is reported publicly
Corrupt guardians The guardians collude to decrypt individual ballots Many guardians from opposing camps; high threshold; public proofs
Flooding (spam) Thousands of useless messages Rate limits per identity, filters chosen by each user, a small computational cost for publishing
Disinformation False information spread on a massive scale Contributions classified by type (argument, source…), verifiable sources, replies visible just below the message
Flaw in the code Programming error Free code, public independent audits, bug bounty programme for flaws discovered, proven cryptographic building blocks

A principle never to forget. No electronic voting system is perfect. High-stakes elections (presidential, legislative) must always keep a paper voting option and the possibility of an independent recount. LibreDemocracy complements the wooden ballot box; it does not abolish it unless society has decided so with full knowledge of the facts.


11. Moderation and rules of debate

No central server means no all-powerful moderator. But no moderation at all would mean that the loudest and most violent would win. LibreDemocracy chooses democratic, transparent moderation:

  1. A charter for each place, voted on by its participants, short and readable, inspired by the eight values: respect for freedom of expression, equal dignity, no insults, no harassment, no incitement to hatred or violence.
  2. Moderators drawn by lot from among volunteer participants, for a limited period.
  3. Every moderation decision is public: who, when, why, under which rule of the charter. A decision can be appealed before a jury of citizens drawn by lot.
  4. Hiding is not deleting: a moderated message is folded away with the reason displayed; readers can choose to unfold it, except for manifestly illegal content.
  5. Everyone chooses their own filters: a user can hide for themselves what they do not want to see, without imposing it on others.
  6. Respect for the law: manifestly illegal content (child sexual abuse, terrorism, harassment) is neither relayed nor stored by relay nodes, and the legal obligations of hosting providers are respected.

The spirit is that of Kung-Fu Bodhisattva Attitude: defusing rather than defeating. The application can, for example, suggest to the author of an aggressive message that they reread it before sending, and highlight replies that bring people together rather than those that inflame.


12. What we draw on

Digital democracy

Tool What we take from it
Decidim (Barcelona, free software) Complete participatory processes, participatory budgets, tracking of proposals
Consul / CONSUL Democracy (Madrid, free software) Citizens' proposals with a support threshold, votes
Pol.is and vTaiwan (Taiwan) Opinion map, seeking consensus rather than confrontation
Loomio Small-group decision-making, proposals and reasoned positions
LiquidFeedback Liquid democracy: delegating one's vote on a topic, revocable at any time
Kialo Debates organised as a tree of arguments for and against
Citizens' Convention for Climate (France) An assembly of citizens drawn by lot, supported by experts

Electronic voting

Tool or experiment What we take from it
Belenios (France, free software) Verifiable voting, homomorphic encryption, multiple guardians
Helios The first widely used end-to-end verifiable voting system
Estonia (Internet voting since 2005) National digital identity, re-voting to counter coercion
Switzerland (electronic voting trials) Requirement for public audits and penetration tests open to all
Majority judgment (Balinski and Laraki) A voting system that avoids tactical voting

Peer-to-peer

Technology What we take from it
libp2p (IPFS, Ethereum, Filecoin) Transport, discovery, topic-based broadcast: the technical basis of FPP
BitTorrent Block-based file sharing, more and more available as a file becomes popular
Secure Scuttlebutt, Hypercore Signed append-only logs, offline operation
Automerge, Yjs Conflict-free collaborative editing (CRDT)
Briar Messaging that works without the Internet, over Bluetooth and Wi-Fi
Matrix Decentralised, federated messaging, bridges to other networks
Tor, I2P Resistance to censorship and surveillance
Git Complete, verifiable history of every change to a text

13. What is possible today, and what requires legislation

We must be clear, so as not to disappoint anyone.

What LibreDemocracy can do as soon as it exists, without changing the law: - debates, Agora, Forum, IRC; - citizens' assemblies and senates within associations or activist groups (in a party, an association, a cooperative, a neighbourhood committee); - polls, consultations and participatory budgets, if a municipality decides to use it; - simulations of elections and referendums, for training and for testing the system on a large scale; - internal votes of associations, trade unions, parties and cooperatives (a worker cooperative can hold its general meeting on it).

What requires a decision by the State: - Official elections (municipal, legislative, presidential) and national referendums are governed by the Electoral Code and the Constitution. Internet voting is currently allowed only in limited cases (for example for certain ballots of French citizens living abroad). Making LibreDemocracy an official tool would require a law, the opinion of the CNIL (the French data protection authority), an assessment by ANSSI (the national cybersecurity agency) and independent audits. - A binding RIC requires a revision of the Constitution. - An official citizen credential requires an agreement with the authority that keeps the electoral rolls.

This is consistent with what the 2022 notes said: “Bring LibreDemocracy into the institutions to avoid violence, little by little. It is better to consolidate than to bring the castle down.” We start with associative and local use, we prove its reliability, then we propose that the law take it into account.


14. Roadmap

Stage Content For whom
v0.9 — Prototype Windows ① The City (Agora + Forum) and ② The Floor (IRC); FPP protocol layers 1 to 5; operation on a local network A test group, a neighbourhood committee
v1.0 — Full debate Assembly, Senate, Parliament, collaborative texts, verifiable drawing of lots; window ④ My space; relay node Associations, parties, cooperatives
v1.5 — Ballot Box Window ③ The Ballot Box: polls, consultations, verifiable internal votes (layer 7); first independent security audit Associations, cooperative general meetings, voluntary participatory budgets
v2.0 — Bridges IRC, Matrix, Fediverse, e-mail, web; phone version; Tor/I2P; USB and Bluetooth synchronisation General public
v3.0 — Institutions Large-scale simulations of national elections; dossier for the CNIL and ANSSI; draft legislation Pilot local authorities, legislators

Proposed technical choices to get started: - Interface: HTML5 and CSS3, as planned since 2022, embedded in a lightweight application (for example Tauri) for Linux, Windows and macOS, and an Android/iOS app. - FPP network core: a safe, fast language (Rust, with rust-libp2p), for security and performance. - Data: SQLite for the three databases of each module; Automerge for collaborative texts. - Voting: a library derived from Belenios or recognised cryptographic libraries, never home-made cryptography. - Extensions and scripts: Python, so that citizens can write their own modules (the “Python interpreter (shell)” in the 2023 list of modules). - Code: public from day one, under GPLv3.


15. Open questions

These questions are to be settled democratically by the first users. Several come from the 2022-2023 notes.

  1. Competence and voting. The 2022 notes raised the question: “starting from a problem or a project for a debate and then a vote raises the question of competence: a matter for specialists or for everyone?” Should different weight be given according to competence on a specific question, or should we stick strictly to one person, one vote and rely on debate, the Assembly's experts and information to enlighten everyone? (The principle of equality in The Handbook of Virtue argues for the second solution.)
  2. Liquid democracy. Can one delegate one's vote on a topic to a trusted person, revocable at any time?
  3. Name or pseudonym. Debate under one's real name (accountability) or under a pseudonym (protection)? Should each place be allowed to choose?
  4. Age and representation. The 2022 notes mentioned the representation of “every person whatever their species or age”. How can minors, future generations, animals and nature be represented? By spokespeople drawn by lot? By a special college in the Senate?
  5. Thresholds. How much support is needed to move from the Agora to the Forum, and to trigger an RIC?
  6. Funding. Donations, public grants, paid extensions through a built-in shop and LibreBank, as imagined in 2022-2023? Should the core of the application remain free of charge for ever?
  7. Governance of the code. Who decides how LibreDemocracy evolves? Proposal: LibreDemocracy governs itself with LibreDemocracy, through its own users.

16. Glossary

Citizen credential — Digital proof that one is a registered voter, issued by the authority that keeps the electoral roll, usable without revealing one's identity at the time of voting.

Gossip — A way of spreading a message from peer to peer, each peer passing it on to a few others, until the whole network has received it.

Homomorphic encryption — Encryption that makes it possible to add up ballots without opening them. Only the total is decrypted.

CRDT — A data structure that allows several people to edit the same document at the same time, even offline, without conflict.

DHT (distributed hash table) — A directory spread among all peers, which makes it possible to find someone or something without a central server.

Fingerprint (hash) — A short code calculated from a piece of content; the slightest change to the content completely changes the fingerprint.

FPP (Free Patrick protocol) — LibreDemocracy's peer-to-peer protocol.

Guardian — A person who holds a share of the key for an election; several are needed to decrypt the result.

Majority judgment — A voting system in which each candidate is given a grade; the winner is the one whose median grade is the best.

Relay node — A copy of LibreDemocracy without an interface, installed on a server, which helps the network without deciding anything.

Peer — Each device that runs LibreDemocracy and takes part in the network.

Peer-to-peer (P2P) — A network in which devices talk to one another directly, without going through a central server.

Vote receipt — The fingerprint of one's encrypted ballot, which makes it possible to check that it is in the ballot box without revealing its content.

RIC — Citizens' initiative referendum: a referendum triggered by citizens themselves, when a sufficient number of signatures has been gathered.

Bulletin board — A public, append-only log in which all the encrypted ballots of a vote are recorded.

Verifiable drawing of lots — A draw whose calculation anyone can redo and obtain the same result.


“You can do it. And you are not alone.” — The Handbook of Virtue

Patrick Fox — Libre Expert · Clermont-Ferrand · www.libre-expert.pro LibreDemocracy Project — GPLv3

Discuss it on the forum