docs: the record of a confederation with no coordinator (confederation-without-coordinator, Phase 9)
Phases 0 to 8 built, with what each turned out to be; since-notes in confederation.md where its coordinator, seal and opening no longer describe the app. The device run has not been done. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
bad5d122d4
commit
d1513ef2d0
3 files changed
+55
-11
No files matched your search
+2
-2
@@ -15,8 +15,8 @@ the [retired](./retired/) notes now.
|
||||
| [shared-key-ceremony.md](./shared-key-ceremony.md) | ChillDKG over NIP-17: the rounds, the approval gates, the chat transcript, participant ordering |
|
||||
| [shared-key-derivation.md](./shared-key-derivation.md) | deriving further keys from the group's threshold key with FROST tweaks — why not BIP32, why no chain code, and the one rule that must not be broken |
|
||||
| [subgroups.md](./subgroups.md) | a group making another group — the four ceremonies, what the parent's signature actually covers, and why the child's key is fresh rather than derived |
|
||||
| [confederation.md](./confederation.md) | a group made of groups: a phased plan, built behind a flag that is off in release but for its device run and the room's governance. Agreeing to form (Part A), the key ceremony and room (Part B), and the confederation signing its profile, posts and charter (Part C). Groups with a public nostr profile propose, accept or reject a confederation in public, an acceptance carries the group's admins sealed to the coordinator in a way every signer recomputes, and the confederation's DKG and Marmot room follow. Covers why the public events are regular kinds, why nothing can be encrypted from or to a group's npub, how the coordinator is kept from substituting a roster, and why everything after the agreement waits on upstream publishing the distributed rounds |
|
||||
| [confederation-without-coordinator.md](./confederation-without-coordinator.md) | a confederation nobody coordinates: a phased plan, not built. The proposal and every answer travel as NIP-17 messages between the groups' NIP-4E inboxes, each sealed by its group's quorum, so every admin of every group reads every admin list and computes the outcome, and the key ceremony derives its room and session seed and computes the coordinator's broadcast on every device. Covers why a group could be the DKG's coordinator and does not need to be, why the admin lists stop being a payload encrypted to one person, how a group that says different things to different groups is caught, and who makes the confederation's room when nobody is in charge |
|
||||
| [confederation.md](./confederation.md) | a group made of groups: a phased plan, built behind a flag that is off in release but for its device run and the room's governance. Agreeing to form (Part A), the key ceremony and room (Part B), and the confederation signing its profile, posts and charter (Part C). Groups with a public nostr profile propose, accept or reject a confederation in public, an acceptance carries the group's admins sealed to the coordinator in a way every signer recomputes, and the confederation's DKG and Marmot room follow. Covers why the public events are regular kinds, why nothing can be encrypted from or to a group's npub, how the coordinator is kept from substituting a roster, and why everything after the agreement waits on upstream publishing the distributed rounds. Its coordinator and its public statements have since been replaced (confederation-without-coordinator.md) |
|
||||
| [confederation-without-coordinator.md](./confederation-without-coordinator.md) | a confederation nobody coordinates: a phased plan, built but for its device run and behind flags that are off in release. The proposal and every answer travel as NIP-17 messages between the groups' NIP-4E inboxes, each sealed by its group's quorum, so every admin of every group reads every admin list and computes the outcome, and the key ceremony derives its room and session seed and computes the coordinator's broadcast on every device. Covers why a group could be the DKG's coordinator and does not need to be, why the admin lists stop being a payload encrypted to one person, why a confederation names at most twelve groups, how a group that says different things to different groups is caught, and who makes the confederation's room when nobody is in charge |
|
||||
| [confederation-upstream.md](./confederation-upstream.md) | the work below Giza that unblocks the confederation's Parts B and C: a phased plan, not built, across secp256k1-zkp, secp256k1-kmp and bitcoin-kmp. Covers why the one-process DKG and signing cannot simply be exposed step by step (the coordinator derives everyone's key state, acknowledgment is signed before the share is stored, nonce randomness is derived from the session id), why every DKG step can stay stateless, the storage contract a device follows, and Prefractal as an all-groups-must-sign path that needs no upstream work |
|
||||
| [automatic-key-ceremony.md](./automatic-key-ceremony.md) | joining is the only approval: a phased plan, built but for its device session, that makes a key ceremony run by itself after a member joins. Covers why contributing and confirming were never decisions a person could add to, the resume sweep that replaces the tap, the coordinator's follow-up steps and the one key state a device can sign without asking, and why abandon stays |
|
||||
| [ceremony-creation.md](./ceremony-creation.md) | one place to start a key ceremony — how joining a subgroup's ceremony opened a second one for the parent room, the screen that showed a ceremony and offered to start one in the same button, and the removal of the nip30303 documents, whose kinds collided with the ceremony's, leaving the member chronicle with nothing to carry and nothing to say |
|
||||
|
||||
@@ -25,8 +25,28 @@ and keeps its reasoning wherever it does not say otherwise. Then
|
||||
for a new kind of message. [group-threshold-ecdh.md](./group-threshold-ecdh.md) is the other way
|
||||
a group can be written to, and is mentioned where it would fit.
|
||||
|
||||
Written against `064ca2c4`, on 2026-11-22. **Not built.** Paths starting `K/` are under
|
||||
`composeApp/src/commonMain/kotlin/mobi/giza/compose/`.
|
||||
Written against `064ca2c4`, on 2026-11-22. **Built, Phases 0 to 8**, behind
|
||||
`ExperimentalFeatures.confederation` and `ExperimentalFeatures.groupInbox`, both off in release; the
|
||||
device run (Phase 9) has not been done. Each phase says under it what was built and where it differs
|
||||
from what it planned. Paths starting `K/` are under `composeApp/src/commonMain/kotlin/mobi/giza/compose/`.
|
||||
|
||||
| phase | commit | result |
|
||||
|---|---|---|
|
||||
| 0 | `f78bd16b`, `b2f22f2c` | the plan, and four premises as tests. The broadcast needs no coordinator; the room id is the set of its people; one group's inbox seal opens in another's. **A statement grows with the square of the groups: twelve fit, sixteen do not**, so a confederation names at most 12 groups, not 64. A welcome for a room a device holds is ignored, which Phase 8 had to handle |
|
||||
| 1 | `e2de3fa8` | two coordinator behaviours pinned beside the two already pinned |
|
||||
| 2 | `c3d70776` | the statements as rumors, the attestation, ceremony id and seed, admin lists version 2 -- beside version 1 |
|
||||
| 3 to 5, 7 | `f64f1619` | one commit: statements sealed to every group's inbox and signed by the quorum, read by every admin of every group; the refusals; the ceremony nobody opens, its id from the proposal, its seed from everyone, its broadcast computed everywhere. Schema 48 |
|
||||
| 6 | `66932a84` | the form looks for every group's inbox and stops at twelve; a heard proposal asks after every group's inbox; Try again |
|
||||
| 8 | `bad5d122` | an order of who makes the room, an hour a place; a welcome from earlier in the order wins |
|
||||
| 9 | this commit | the record. **No device run** |
|
||||
|
||||
Full `jvmTest` 1,786 at the end, all passing (from 1,776 at Phase 5), with `m3Audit`, `brandAudit`
|
||||
and `walletAudit` at their budgets and `compileDebugKotlinAndroid` building. Two of the seven full runs
|
||||
along the way died on a segfault in the bundled SQLite driver, inside a background write
|
||||
(`UnsignedNostrEvent`, under `NostrDao.commitPublishedNostrEvent`) in a test fork running the identity
|
||||
and database tests, none of which this work touches; each rerun was clean. It is the crash
|
||||
[rotate-shares-single-approval.md](./rotate-shares-single-approval.md) recorded: a test leaving a
|
||||
write running against an in-memory database it has closed. Not investigated here either.
|
||||
|
||||
---
|
||||
|
||||
@@ -715,6 +735,10 @@ Full `jvmTest` 1,786, all passing; `m3Audit`, brand and wallet audits at budget;
|
||||
|
||||
### Phase 9: the record, and devices
|
||||
|
||||
**The record done; the device run not.** Nothing here has run across real devices, relays or an
|
||||
iOS build: no statement has crossed real inboxes, no ceremony has formed with nobody opening it on
|
||||
more than one real device, and no confederation's room has been made by the second in the order.
|
||||
|
||||
- Mark this plan built, with a *what the plan said / what it turned out to be* table, and update the
|
||||
README row. In [confederation.md](./confederation.md), a *since* note on D3, D4, D5, D7, Phase 11 and
|
||||
Phase 13 pointing here, and its *What this does not do* line on the coordinator struck.
|
||||
|
||||
+27
-7
@@ -234,6 +234,10 @@ key look the same on the wire (see *What this does not do*).
|
||||
|
||||
### D3. The proposal is signed together with the proposer's own acceptance, in one session
|
||||
|
||||
> **Since [confederation-without-coordinator.md](./confederation-without-coordinator.md):** a proposal *is* its proposer's acceptance: its rumor carries the proposing
|
||||
> group's own admin list, since two statements, each sealed to every group, would halve how many
|
||||
> groups fit in one signing proposal.
|
||||
|
||||
The proposing group is a participant like any other, so it has to commit to its own admin
|
||||
list too. The proposal's id is known before it is signed, since it is the hash of the
|
||||
unsigned fields. So the proposer's device builds both events and proposes them as one batch
|
||||
@@ -250,10 +254,11 @@ A device refuses a 9430 that arrives without its acceptance in the same batch (P
|
||||
|
||||
### D4. The coordinator is the member who proposes, and in practice that member is an admin
|
||||
|
||||
> **Planned in** [confederation-without-coordinator.md](./confederation-without-coordinator.md):
|
||||
> no coordinator. The statements travel between the groups' inboxes, every admin of every group
|
||||
> reads the admin lists, and the ceremony computes the coordinator's steps on every device. Not
|
||||
> built; D4, D5 and D7 stand until it is.
|
||||
> **Since [confederation-without-coordinator.md](./confederation-without-coordinator.md):** there
|
||||
> is no coordinator. The proposing group proposes, and nobody is named. The statements travel
|
||||
> between the groups' inboxes as rumors sealed by each group's quorum, every admin of every group
|
||||
> reads the admin lists, and the ceremony computes the coordinator's steps on every device. D4, D5
|
||||
> and D7 below are the reasoning for what was built first, and no longer describe the app.
|
||||
|
||||
The proposal names the coordinator in a `coordinator` tag. Every signer checks that this
|
||||
pubkey is the signing session's proposer. A member cannot volunteer someone else, and
|
||||
@@ -274,6 +279,10 @@ everything else, and D7 makes sure they cannot substitute a roster.
|
||||
|
||||
### D5. Encrypting the admin list: a seal every signer can recompute
|
||||
|
||||
> **Since [confederation-without-coordinator.md](./confederation-without-coordinator.md):** no seal. An admin list travels in the clear inside a NIP-17 rumor sealed to
|
||||
> every group's inbox key, so the admins of every group read it and nobody else does, and a signer
|
||||
> compares it with its own view of the group directly. `ConfederationSeal` is gone.
|
||||
|
||||
> **Since [group-inbox.md](./group-inbox.md):** something *can* now be encrypted to a group,
|
||||
> through the inbox key its admins make and its quorum announces (NIP-4E), and from one, by
|
||||
> sealing with that key and signing the seal as the group. Only for a group that has set up an
|
||||
@@ -361,6 +370,9 @@ statement, so a person has to." So the checks split in two:
|
||||
|
||||
### D7. The coordinator shows every participant the admin lists they were sent
|
||||
|
||||
> **Since [confederation-without-coordinator.md](./confederation-without-coordinator.md):** nothing to show. Every participant has read every list from its own group's
|
||||
> inbox before the ceremony starts.
|
||||
|
||||
Part A leaves only the coordinator able to read the acceptances. In Part B, every
|
||||
participant has to check the roster before contributing to the DKG. Otherwise a coordinator
|
||||
could put an extra role into group B's segment (for example a key they control) and no one
|
||||
@@ -782,6 +794,11 @@ identical bytes. An admin in two groups gets two distinct host keys. 129 roles i
|
||||
|
||||
## Phase 11: the ceremony
|
||||
|
||||
> **Since [confederation-without-coordinator.md](./confederation-without-coordinator.md):** nobody opens it. Every admin joins from the statements their device holds;
|
||||
> the room's id is the set of its people, the ceremony's id comes from the proposal and the attempt,
|
||||
> the session seed from a contribution in every person's 30381, and every device computes the
|
||||
> broadcast. 30380 and 30383 are not sent. A failed attempt is tried again as the next.
|
||||
|
||||
**The room.** The coordinator's device creates a NIP-17 room over the coordinator and every
|
||||
admin in the roster: `createNip17ChatRoom`, with id `deriveChatRoomId(members)`, exactly as
|
||||
group creation does. An admin who is in two groups is one member of the room and two roles.
|
||||
@@ -866,6 +883,9 @@ group, rather than "17 of 21".
|
||||
|
||||
## Phase 13: the confederation's room
|
||||
|
||||
> **Since [confederation-without-coordinator.md](./confederation-without-coordinator.md):** the first of the roster's people, sorted, makes the room, and the `k`-th
|
||||
> after `k` hours with none; a welcome from earlier in the order replaces the room a device holds.
|
||||
|
||||
- `MarmotGroupCreation.createForConfederation(confederation)`, beside `createFor`:
|
||||
- `groupId = marmotGroupId(02 || X, m/9420/0/0)` (D10);
|
||||
- the routing id is random;
|
||||
@@ -943,9 +963,9 @@ Kinds 30390 to 30399 are reserved for this phase now, so nothing else takes them
|
||||
wants to leave cannot.
|
||||
- **Every admin of every group must join** (D11). One absent admin stalls the ceremony.
|
||||
- **Members of a group who are not admins learn little** until Part C's charter.
|
||||
- **The coordinator cannot be replaced** in Part A, because only their key opens the
|
||||
acceptances. If the coordinator is lost, the proposal lapses at expiry and is proposed
|
||||
again. In Part B, any participant can resume, because D7 has disclosed the keys.
|
||||
- ~~**The coordinator cannot be replaced**~~ -- there is no coordinator any more
|
||||
([confederation-without-coordinator.md](./confederation-without-coordinator.md)). A lost
|
||||
phone is one admin's, and the proposal, the ceremony and the room go on without it.
|
||||
- **Not for value.** Upstream's warning stands, and the flag stays off in release.
|
||||
|
||||
---
|
||||
|
||||
Reference in new issue
Block a user