protocol0 0.1 e6aeb8 GitHub Get started

The 15 attack tests

Each test attacks a community the way a cheating member, a broken relay or the maker could. A test passes only when every copy refuses the attack or ends in the same state.

$ pnpm attack15 of 15 attacks were refused as the rules say.

Run the tests yourself

When a member cheats

  1. 2A changed old entry

    Read the test

    1 member changes an old entry in his own copy and offers that copy to the others.

    Refused

    Every copy refuses it and names the changed entry by its number and its code. A new computer that never saw the true entry refuses it as well.

  2. 3A decision with 1 signature

    Read the test

    1 member writes a rule change with only his own signature and marks it as decided.

    Refused

    Every copy refuses it and the rule stays as it was.

  3. 72 versions signed

    Read the test

    1 member signs 2 different versions of the same proposal on 2 branches of the record.

    Every copy agrees

    Every copy keeps both entries as proof against him and counts his signature once at most.

  4. 8A removed member

    Read the test

    A decision removes a member who then signs a new entry and tries to read an entry written after the removal.

    Refused

    Every copy refuses his key and he cannot open anything written after his removal.

  5. 12Final means final

    Read the test

    A signer tries to take back a signature after a decision passed and then a late entry from an older branch arrives.

    Refused

    The decision stands in every copy and the late change never takes effect.

When the maker tries to rule

  1. 4The maker tries to rule

    Read the test

    The maker of the app repeats tests 1 to 3, sends an order of a kind that does not exist and runs a changed app that skips the count.

    Refused

    Every copy checks each entry itself and refuses each attempt so no copy takes an order from the maker.

  2. 10An objection to a team

    Read the test

    A team's decision took effect and 3 of 5 members of the group object. The maker then tries to cancel the objection.

    Refused

    The change is undone in every copy and every copy refuses the maker's entry.

When the network fails

  1. 1Copies go silent

    Read the test

    2 of 5 copies go silent while the other 3 propose, sign and decide a rule change.

    Every copy agrees

    The 3 decide and after the 2 come back all 5 copies hold the same state.

  2. 9A relay fails

    Read the test

    A group lists 2 relays and relay A stops passing entries and later drops every second entry.

    Every copy agrees

    Every copy still reaches the same state through relay B.

  3. 11The maker is gone

    Read the test

    The maker's relay, site and code page are gone and a member runs the relay program on his own computer.

    Every copy agrees

    The group carries on and admits a new member through that relay.

When the helper oversteps

  1. 5The helper reads a closed page

    Read the test

    A script with the helper's key asks for a page that no decision opened to it.

    Refused

    The helper gets sealed bytes that it cannot open and reads only pages that a decision opened.

  2. 6The helper tries to sign

    Read the test

    The helper's script signs a decision and tries to add a friend to the member list.

    Refused

    Every copy refuses both entries and the count and the member list stay the same.

In communities and teams

  1. 13A community of 5 groups

    Read the test

    A community of 5 groups of 5 holds 3 proposals with signatures spread in different ways.

    Every copy agrees

    All 25 copies agree that only the third proposal is decided because it has signatures from 3 groups.

  2. 14A pause and an appeal

    Read the test

    A team pauses a member for 30 days and the member posts anyway. Then the group signs an objection to the pause.

    Every copy agrees

    Every copy refuses the posts during the pause and after the objection the member posts again.

  3. 152 rival moderator lists

    Read the test

    2 proposals change the moderator list in different ways and both reach their number.

    Refused

    Every copy accepts only 1 of them so the community never has 2 moderator lists.