test: the premises of a confederation with no coordinator (confederation-without-coordinator, Phase 0)
The broadcast is the same on every device, the ceremony's room id is the set of its people, and one group's inbox seal opens in another's. A statement's size grows with the square of the groups: 12 fit, 16 do not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
f78bd16b68
commit
b2f22f2cd4
2 files changed
+183
No files matched your search
@@ -473,6 +473,17 @@ This document and its row in [README.md](./README.md). Then, before code:
|
||||
|
||||
**Done when** all six are recorded here, and checks 2, 3 and 5 are tests.
|
||||
|
||||
**Done**, on 2026-11-22. `ConfederationWithoutCoordinatorPremiseJvmTest` keeps checks 2 to 5:
|
||||
|
||||
| check | result |
|
||||
|---|---|
|
||||
| 1. the session seed | **asked, not answered.** §7.1 asks only that a seed be fresh and never reused within a role; nothing in §7 needs it before the host keys exist, since the host keys do not take it. D9 is built as written, with the contributions as an input that can be dropped |
|
||||
| 2. the broadcast | **holds.** `coordinatorStep1` gives the same bytes over the same dealings in any order, and every role going on with the broadcast it computed itself reaches the same key |
|
||||
| 3. the room id | **holds.** Two people calling `createNip17ChatRoom` over the same people get the same `ChatRoom.id` |
|
||||
| 4. size | **D4's ceiling is wrong.** The bytes a statement's FROST proposal carries grow with the square of the groups (each seal holds a rumor naming every group): 5 KB for 2 groups, 28 KB for 8, 44 KB for 12, **65 KB for 16**, 609 KB for 64, at five admins a group. So a confederation in the supergroup is held to **12 groups** (`ConfederationKinds.MAX_SUPERGROUP_GROUPS`), and every statement is checked against 60,000 bytes when it is proposed (`MAX_STATEMENT_BYTES`), since an admin list of 128 adds about 8 KB a seal. The one-rumor proposal of D4 is still right: two would halve the ceiling again |
|
||||
| 5. group to group | **holds.** A seal from A's inbox key to B's announced key, wrapped to B's npub, is opened by B's admin with the seal's `n` tag and verifies as A's. Today it is filed as an inbox message of kind 9430; Phase 5 flips that |
|
||||
| 6. two creators | **a welcome for a room id the device already holds is ignored** (`NostrDao`'s welcome branch joins only when `findChatRoomById` is null). So with two creators each device keeps whichever welcome reached it first, and the room splits. D11's tie rule needs code in the welcome path: for a confederation's room, a welcome from a creator who sorts before the one this device joined under replaces it. Phase 8 |
|
||||
|
||||
### Phase 1: pin today
|
||||
|
||||
`ConfederationCoordinatorTodayJvmTest`, written to pass now and flipped on purpose:
|
||||
|
||||
Reference in new issue
Block a user