docs: the three checks before any code (confederation, Phase 0)
Kinds 9430-9433 are free; quartz's NIP-44 takes a fixed nonce; and a share does not imply an admin, so the coordinator is checked against the room's admins as well. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
6cb9dd7d1b
commit
e84fc9b599
1 file changed
+17
-9
+17
-9
@@ -35,8 +35,14 @@ Read these first:
|
||||
the cryptography this plan ends on, and why that cryptography cannot run across devices
|
||||
yet.
|
||||
|
||||
Written against `c9e6f07c` on 2026-11-21. **Not built.** Phases 0 to 8 can be built now.
|
||||
Phases 9 to 16 wait on upstream (see the next section).
|
||||
Written against `c9e6f07c` on 2026-11-21. Phases 0 to 8 can be built now. Phases 9 to 16
|
||||
wait on upstream (see the next section).
|
||||
|
||||
## Progress
|
||||
|
||||
| phase | result |
|
||||
|---|---|
|
||||
| 0 | done. 9430–9433 appear in neither the NIP README's kind table (nothing between 9321 and 9734), quartz 2.20.1, Curare nor Bennu. `Nip44v2.getConversationKey` and `encryptWithNonce` are public in quartz 2.20.1. A demoted admin can still hold a share of the active generation while refresh is experimental, so `canSign` does not imply admin: D4 now checks it |
|
||||
|
||||
---
|
||||
|
||||
@@ -189,11 +195,13 @@ pubkey is the signing session's proposer. A member cannot volunteer someone else
|
||||
cannot be volunteered.
|
||||
|
||||
Proposing a group signature needs a share of the group's key (`canSign`, the gate
|
||||
`GroupStatementCapability` already applies). Every admin holds a share and members who are
|
||||
not admins hold none ([member-admin-promotion.md](./member-admin-promotion.md)). So the
|
||||
coordinator is always one of the proposing group's admins, and always holds a role in the
|
||||
confederation. Nothing extra is needed to make the coordinator a participant, as the
|
||||
ChillDKG coordinator already is.
|
||||
`GroupStatementCapability` already applies). Every admin holds a share
|
||||
([member-admin-promotion.md](./member-admin-promotion.md)), but the converse does not hold
|
||||
while share refresh is experimental: a demoted admin keeps a share of the active generation
|
||||
until a refresh runs (Phase 0). So the coordinator also has to be one of the proposing
|
||||
group's **current** admins, by `RoomAdmins.of`. That is checked on the proposer's screen and
|
||||
refused on every signer's device (Phase 3). With it, the coordinator always holds a role in
|
||||
the confederation, as the ChillDKG coordinator is always a participant.
|
||||
|
||||
The coordinator is trusted with exactly what the request gives them: reading every group's
|
||||
admin list. ChillDKG and the confederation DKG both treat a coordinator as untrusted for
|
||||
@@ -268,7 +276,7 @@ statement, so a person has to." So the checks split in two:
|
||||
| the batch shape is wrong (D3); a field is malformed | a listed group's kind:0 cannot be found on relays right now |
|
||||
| this room is not among the listed groups | the proposal expires within a day |
|
||||
| `T` is outside `2..N`, or `N` is outside `2..64` | a listed group is one this device has never seen |
|
||||
| the coordinator is not the session's proposer | |
|
||||
| the coordinator is not the session's proposer, or not a current admin of the proposing group | |
|
||||
| the seal does not reproduce (D5), or the admin list or `t_g` disagrees with this device's | |
|
||||
| this group has already answered this proposal | |
|
||||
| the proposal has expired, or names an expiry more than 30 days away | |
|
||||
@@ -480,7 +488,7 @@ object ConfederationRefusal {
|
||||
Wired in the four places listed in D6, beside `GroupStatementRefusal`:
|
||||
|
||||
- **A batch containing a 9430** must be exactly `[9430, 9431]`, with the 9431 e-tagging the
|
||||
9430's id. The 9430 must list this room. `coordinator` must equal the session's proposer.
|
||||
9430's id. The 9430 must list this room. `coordinator` must equal the session's proposer and be in `RoomAdmins.of` for this room.
|
||||
`N` must be in `2..64` and `T` in `2..N`. The expiry must be in the future and at most
|
||||
30 days ahead. The 9431 must pass the acceptance checks below against that 9430.
|
||||
- **A lone 9431** must e-tag a proposal this device holds (Phase 4), and that proposal must
|
||||
|
||||
Reference in new issue
Block a user