Commit Graph
1338 Commits
Author SHA1 Message Date
Kgothatso NgakoandClaude Opus 5.5 d1513ef2d0 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>
2026-11-22 14:14:17 +02:00
Kgothatso NgakoandClaude Opus 5.5 bad5d122d4 feat: who makes the confederation's room, when nobody coordinates (confederation-without-coordinator, Phase 8)
The roster's people in order: the first makes the room at once, the k-th
after k hours with no room here. A confederation records whose MLS group it
holds as its room, and a welcome from someone earlier in the order replaces
it, so two creators end in one room on every device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:13:41 +02:00
Kgothatso NgakoandClaude Opus 5.5 66932a8439 feat: the confederation's screens look for every group's inbox (confederation-without-coordinator, Phase 6)
The form asks for each group's profile, inbox key and inbox relays, shows a
group with no inbox as out of reach, waits on this group's own inbox, and
stops at twelve groups. A device that hears a proposal asks about every named
group's inbox, and a failed ceremony offers Try again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:06:27 +02:00
Kgothatso NgakoandClaude Opus 5.5 f64f161959 feat: the confederation's statements between inboxes, and a ceremony nobody opens (confederation-without-coordinator, Phases 3 to 5 and 7)
A proposal and every answer are rumors a group seals to every group's
announced inbox key, its quorum signing the seals; every admin of every group
files them, computes the state and reads every admin list. The key ceremony
is joined by each admin from the statements their device holds: its room is
derived from its people, its seed from everyone's contribution, and every
device computes the broadcast. Schema 48 drops version 1's public statements.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:59:38 +02:00
Kgothatso NgakoandClaude Opus 5.5 c3d707767b feat: the confederation's statements as rumors (confederation-without-coordinator, Phase 2)
The proposal, acceptance, rejection and withdrawal as rumors between groups,
a proposal carrying its proposer's own admin list, and the attestation,
ceremony id and session seed every device derives. Beside version 1 until the
switch.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:28:31 +02:00
Kgothatso NgakoandClaude Opus 5.5 e2de3fa80c test: pin the coordinator's part in a confederation (confederation-without-coordinator, Phase 1)
An opening from anyone but the coordinator is refused, and every device waits
on the coordinator's broadcast. Phase 7 flips both.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:24:29 +02:00
Kgothatso NgakoandClaude Opus 5.5 b2f22f2cd4 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>
2026-11-22 13:23:43 +02:00
Kgothatso NgakoandClaude Opus 5.5 f78bd16b68 docs: a confederation with no coordinator (confederation-without-coordinator, Phase 0)
A plan to send the confederation's proposal and answers between the groups'
NIP-4E inboxes, so every admin of every group reads every admin list, and to
compute the key ceremony's coordinator steps on every device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 13:19:18 +02:00
Kgothatso NgakoandClaude Opus 5.5 064ca2c4af Merge branch 'claude/dazzling-aryabhata-889d64' into giza
Material Design conformance / budgets (push) Canceled after 0s
Material Design conformance / tests (push) Canceled after 0s
A group sends and receives NIP-17 at its own npub by threshold ECDH
(docs/group-threshold-ecdh.md, Phases 0 to 11), beside the group inbox.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:29:05 +02:00
Kgothatso NgakoandClaude Opus 5.5 f57e9b8dd0 Merge branch 'giza' into claude/dazzling-aryabhata-889d64
The group inbox (NIP-4E) and confederation Part C landed on giza meanwhile.
Where threshold ECDH meets the inbox:

- schema: the inbox has 45 and 46, so the group's direct messages are v47,
  AutoMigration(46, 47);
- the group's 10050 is one event: InboxRefusal declines a bad relay list and
  InboxAnnouncements publishes it; GroupDmRelayRefusal and the second
  publisher are gone, and the inbox's line and label are the ones shown;
- kind 13 batches split on the seal's n tag, by InboxSeal's own reading:
  inbox replies to InboxRefusal and InboxReplies, every other seal to
  GroupDmRefusal and GroupDmSender;
- a wrap to the group tries the inbox keys first, and opens a round only for
  what they cannot; the inbox's unopened count leaves out what was opened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:28:55 +02:00
Kgothatso NgakoandClaude Opus 5.5 082d097143 docs: the group's direct messages, built (group-threshold-ecdh, Phase 11)
The plan marked built through Phase 10, with what it said against what was
built, and its known gaps; the README row and a since note on confederation.md
D5. The device run has not been done, and the flag stays off in a release
until it has.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:08:26 +02:00
Kgothatso NgakoandClaude Opus 5.5 49fb8a92bf test: a non-admin device now forgets the wraps it held (group-threshold-ecdh, Phase 10)
Phase 5's round tests put ledger rows on devices that are not admins; since
Phase 10 those devices forget them when partials reach them, so the tests read
the wrap as absent or unopened.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:07:12 +02:00
Kgothatso NgakoandClaude Opus 5.5 6f33f6f128 feat: admin changes for the group's direct messages (group-threshold-ecdh, Phase 10)
A device that sees its member removed as an admin forgets the room's kept
conversation keys, its opened messages and its rounds, and says so in the
room, once. Partials stop reaching it the moment the removal lands. A promoted
admin answers rounds and reads the group's history; a share rotation after a
removal leaves every kept key valid, since the group's key never changed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 12:03:50 +02:00
Kgothatso NgakoandClaude Opus 5.5 7ddc3f3b65 feat: the group writes, and every signer reads it first (group-threshold-ecdh, Phase 9)
GroupDmSender drafts one rumor and a seal per recipient under the kept
conversation key, carries a manifest sealed to the current admins, and
proposes the seals as one batch; a recipient without a key has a round opened
and the composer waits. On completion the proposer wraps each seal for its
recipient and owes it to their 10050; any admin can send again.

GroupDmRefusal runs D13 in the four places: a manifest this device can open,
bare kind 13s by the group, evidence signed by each recipient, the same rumor
in every seal naming exactly the manifest's recipients, words in it, and
NIP-59's dates. A proposal waiting on a key is held and retried when the key
combines. A non-admin signer declines; a room-signed seal draws no line.
Phase 1's kind 13 pin flips: nothing is signed blind.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:59:20 +02:00
Kgothatso NgakoandClaude Opus 5.5 0e952f9905 feat: the group's messages, seen (group-threshold-ecdh, Phase 8)
GroupDmListScreen: conversations with names, the last line and what is unread,
and what is still being opened, naming the admins it waits on and how many are
queued. GroupDmConversationScreen: messages in and out, outgoing ones with
where they have got to. The group's Messages row opens the list; only a
current admin sees anything of the group's mail.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:48:39 +02:00
Kgothatso NgakoandClaude Opus 5.5 ffb254da43 feat: receiving the group's direct messages (group-threshold-ecdh, Phase 7)
live-group-dm subscribes for kind 1059 p-tagged to every group whose mail this
device reads, on its 10050 relays and the app's own, two days before the
newest wrap. GroupDmReceiver files a wrap in the ledger, opens its round, then
its seal's round or uses the kept key, and files the rumor once. A wrap to such
a group skips the personal inbox and writes no NostrEvent row. New wrap rounds
are capped at 60 per room per hour; the rest queue, newest first.

Partials now say which partials their sender holds, so a device that already
answered re-sends to an admin promoted after a round combined.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:44:51 +02:00
Kgothatso NgakoandClaude Opus 5.5 b2cb0aaa85 feat: where the group receives direct messages (group-threshold-ecdh, Phase 6)
A kind 10050 the group signs is its decision to receive: proposed from a setup
screen, named on the signing screen, a transcript line when signed, owed to
relays by the proposer's device through GroupDmPublisher with backoff, and
broadcastable again by anyone. GroupDmRelayRefusal declines a list with a
relay that is not public wss:// in the four places. The group's screen gains
its messages row. Phase 1's 10050 pin flips.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:37:16 +02:00
Kgothatso NgakoandClaude Opus 5.5 311f61abd7 feat: the admins answer and combine rounds (group-threshold-ecdh, Phase 5)
GroupEcdhManager: a current admin holding the active share answers a round
once it holds the point's evidence, batches its partials into one 30400 per
pass sealed to the other admins, verifies every proof, names a bad one in a
30401, and combines at t. A seal's or recipient's key is kept; a wrap's opens
its wrap. Rounds restart when a refresh overtakes them. Dispatched from the
group room, swept every 20s, behind ExperimentalFeatures.groupDirectMessages.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:33:27 +02:00
Kgothatso NgakoandClaude Opus 5.5 42ebfc4568 feat: storage for a group's direct messages, schema 45 (group-threshold-ecdh, Phase 4)
GroupEcdhRound, GroupEcdhPartial, GroupConversationKey, GroupDmWrap,
GroupDmMessage and GroupDmOutbound, by AutoMigration(44, 45). Redelivery of a
partial, wrap or rumor is a no-op; wiping a room takes its kept keys with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:23:56 +02:00
Kgothatso NgakoandClaude Opus 5.5 fcdc2db78e feat: the wire for a group's direct messages (group-threshold-ecdh, Phase 3)
Kinds 30400 and 30401; a payload encrypted once under a key sealed to each
admin's host key; partials that name a wrap by id; the manifest a signer
reads; opening NIP-59's layers with a threshold key; conversation ids; and
D5's evidence rule in one function. A seal the group builds opens in quartz's
stock unwrap with the recipient's own key.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:21:04 +02:00
Kgothatso NgakoandClaude Opus 5.5 77e154d4f5 feat: threshold ECDH's arithmetic, alone (group-threshold-ecdh, Phase 2)
Lagrange coefficients that can only scale a point, the npub's tweak replayed
with its signs, a holder's partial, a Chaum-Pedersen proof of it, and the
combination into NIP-44's conversation key. Every t-subset of a 3-of-5 key
gives quartz's own key; nothing in the package can build x or d.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:17:36 +02:00
Kgothatso NgakoandClaude Opus 5.5 c8df363318 test: what Giza does with a group's direct messages today (group-threshold-ecdh, Phase 1)
A wrap to the group's npub is stored and never opened; a peer's kind 13 or
10050 is put to the member as a raw kind; nothing subscribes for the group's
mail. Each is flipped by a later phase, on purpose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:14:54 +02:00
Kgothatso NgakoandClaude Opus 5.5 2563572eb1 Merge branch 'claude/nip4e-group-profiles-38d2ac' into giza
Material Design conformance / budgets (push) Canceled after 0s
Material Design conformance / tests (push) Canceled after 0s
The group's inbox (docs/group-inbox.md) and the confederation's signing both took
schema 45. The confederation landed first, so it keeps 45 and the inbox moves to
46 with its own AutoMigration(45, 46); ShippedProfileUpgradeJvmTest's current is 46.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:14:09 +02:00
Kgothatso NgakoandClaude Opus 5.5 0d33923877 test: threshold ECDH's six premises, against the real libraries (group-threshold-ecdh, Phase 0)
The combined point gives quartz's own NIP-44 conversation key for every
3-subset of a dealer key. Check 6 changed the wire: a payload encrypted once
under a key sealed per admin, with wraps and seals carried by reference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:13:49 +02:00
Kgothatso NgakoandClaude Opus 5.5 dae0a345d2 docs: the group's direct messages, by threshold ECDH (group-threshold-ecdh, Phase 0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 11:10:07 +02:00
Kgothatso NgakoandClaude Opus 5.5 31bcb3a3ff docs: the group's inbox is built, and what it chose differently (group-inbox, Phase 10)
Marks the plan built behind its flag, with a what-the-plan-said table:
the kinds moved to 30410-30416, one publication table, announcements
that wait for a ceremony still finishing, watchers who learn the key,
wraps routed by key as well as by npub, rotation read off what every
device holds with crossing ceremonies settled the same way everywhere.
The README row says so, and confederation.md's D5 gets a since note:
something can now be encrypted to a group that has an inbox.

Not done: the device run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:11:47 +02:00
Kgothatso NgakoandClaude Opus 5.5 8bc7ab3e33 feat: the inbox key changes with the group's admins (group-inbox, Phase 9)
InboxRotation reads what every admin's device already holds: the key
was made over one set of admins and the room's policy now names
another. That covers a removal, a demotion, a step-down and a promotion
alike, and a change that landed while the app was closed. The admin
whose key sorts first starts the new ceremony, asking nobody, after any
share rotation the same change owes; the rotated key's announcement is
vouched for and signed unasked; the removed admin's device has already
let go. Run by the governance follow-through and the sweep, and offered
by hand in the settings, which say when the admins have changed since
the key was made.

Two admins who start a rotation at once end in one ceremony on every
device: each keeps the one whose session id sorts first and ends the
other out loud. A proposal for a generation a device already has is
dropped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:09:01 +02:00
Kgothatso NgakoandClaude Opus 5.5 6b59282ebe test: two pins Phase 8 moved, moved with it (group-inbox, Phase 8)
A DM peer's sync now asks for their 10044 too, and Phase 0's seal
premise in SignedGroupKeyStateTest is a seal nobody can read, which a
signer now declines (D12). The premise itself is checked end to end in
InboxReplyJvmTest; this one now pins the decline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:09:01 +02:00
Kgothatso NgakoandClaude Opus 5.5 d21d6ecd05 feat: the group answers from its inbox, once its quorum has read and signed the reply (group-inbox, Phase 8)
InboxReplies builds a reply as one rumor authored by the group, sealed
from the announced inbox key to each recipient's announced key (or
their identity) and once to the group itself, per nostr-protocol/nips#2361,
and proposes the seals as one batch with the manifest beside them,
sealed to the inbox key, so a member who is not an admin learns how
many seals there are and nothing else. Every signer reads the reply
before signing it: InboxRefusal opens the manifest and every seal, and
declines out loud a copy that says something else, a seal to a key its
recipient did not announce, a forged 10044, a recipient the reply does
not name, a blank reply, a seal dated outside two days, or anything it
cannot read -- including on a device that holds no inbox key. The
manifest rides a resend, and the signing screen says the reply's words,
its recipients, and who has announced no key.

Once signed, the proposer's device wraps each seal for its recipient's
relays and the group's copy for the group's, owed through
GroupInboxPublisher, and files the copy at once; other admins file it
when it arrives. A reply not yet on a relay offers Send again. The
conversation screen gets the composer, which warns about a recipient
whose app may not open a message from a group. A seal draws nothing in
the room's transcript.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:05:46 +02:00
Kgothatso NgakoandClaude Opus 5.5 12a93bd4d7 feat: the group's inbox, seen (group-inbox, Phase 7)
Three screens, each with a way back, readableContent, the four states
and the transition between them: the inbox (its conversations, newest
first, with who they are with and what is unread; mail this device
cannot open, counted with why; an inbox the group has not yet announced
saying nobody can write to it; and for an admin promoted after the
first key, why earlier mail is missing), a conversation (theirs on the
leading edge, the group's replies marked as the group's), and the
inbox's settings (setting one up with where mail should arrive, the
key generation by generation, the ceremony with who it waits on and
Abandon, and Rotate the inbox key).

The group's screen gets an Inbox row with the unread count on a device
that holds the key, the ceremony while it runs, or Set up an inbox for
an admin who could start one. A member who is not an admin sees no row.
The ceremony's own screen planned for Phase 4 is the settings screen's
ceremony card. m3Audit at its budgets; compileDebugKotlinAndroid builds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 02:00:09 +02:00
Kgothatso NgakoandClaude Opus 5.5 5370527a4f feat: the group's inbox, read on its admins' devices (group-inbox, Phase 6)
live-group-inbox asks the relays a group's mail is announced to arrive
on for every gift wrap tagged with the group's npub, as #2361 has a
sender tag it, or with one of the inbox keys this device holds, as an
app that knows only the announcement tags it. What arrives goes to
GroupInboxManager, never through the personal inbox or a NostrEvent
row: each wrap into a ledger, opened with the newest key that opens it,
the seal by its n tag, the sender's own 10044, or their identity, and
filed as one message per rumor in a conversation keyed by its people.
A wrap no key opens is kept and counted; a key that arrives later
reopens the ledger. A device that sees its owner is no longer an admin
forgets the keys and the mail, and says so once. Peers' 10044s are now
fetched with their other DM kinds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:52:39 +02:00
Kgothatso NgakoandClaude Opus 5.5 1c29df61d8 feat: the group announces its inbox, and declines a wrong announcement out loud (group-inbox, Phase 5)
The coordinator of a finished inbox key ceremony asks the group to sign
its announcement: the first time a 10044 and a 10050 in one batch,
which is the group deciding to have an inbox and is asked; after that a
rotation's 10044 alone, which every admin's device vouches for and signs
unasked. InboxRefusal declines, in all four places, a 10044 naming a key
the admins did not make together, one since replaced, or one made over
admins the room no longer has, and a 10050 a stranger could not reach.
An announcement that arrives before this device has finished the same
ceremony waits rather than being declined, and is looked at again when
it finishes. A member who only watched the ceremony aggregates its
public messages to learn the key, so it can check too.

Once signed, the key moves to ANNOUNCED and the ones before it to
RETIRED; the transcript says the group has an inbox, or changed its
key; and the proposer's device sends both events through
GroupInboxPublisher until a relay takes them, never through a NostrEvent
row. InboxSigning (reasons kept for the decline) and
InboxKeyCeremony.announceRelays fold into schema 45, which has not
shipped.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:49:03 +02:00
Kgothatso NgakoandClaude Opus 5.5 057d0b79d9 feat: the group's inbox key, made by its admins at threshold 1 (group-inbox, Phase 4)
InboxKeyRitualManager runs ChillDKG at t = 1 over the room's admins
as MLS inner events on 30410-30416, so every admin ends with the same
secret and the group a key nobody chose alone. Nobody is asked: an
admin's device takes part on arrival, and a proposal over anyone but
the admins as this device reads them fails out loud with the
difference named. A member who is not an admin watches and holds
nothing. The secret is checked against the key on every run and
written once to InboxKey; the sweep resumes a ceremony left mid-round.

The ceremony's screen moves to Phase 7 with the inbox's others.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:41:46 +02:00
Kgothatso NgakoandClaude Opus 5.5 1f66c39f2f feat: where a group's inbox is kept, schema 44 to 45 (group-inbox, Phase 3)
InboxKeyCeremony, InboxKeyCeremonyMessage and InboxKey, apart from
DkgSession so no signing path can find a threshold-1 key; and
GroupInboxWrap (the ledger, opened or not), GroupInboxMessage (one row
per rumor) and GroupInboxPublication (what this device owes relays).
New tables only, so an AutoMigration. InboxStorageJvmTest pins
redelivery, the wipe and that the signing lookups see none of it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:36:20 +02:00
Kgothatso NgakoandClaude Opus 5.5 e215cff843 feat: the group inbox's wire, in one package (group-inbox, Phase 2)
nostr/inbox: the inbox key ceremony's kinds (30410-30416) and tags; the
group's 10044 and 10050 through quartz's own events, with the strict
shape a group signs; NIP-17 seals and gift wraps with a decoupled key,
built by hand per nostr-protocol/nips#2361 because quartz's encrypt to
the key they tag; the reply manifest a signer reads, sealed to the
inbox key; and the conversation id. InboxWireTest checks every layer,
including both directions against quartz's own wraps.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:32:42 +02:00
Kgothatso NgakoandClaude Opus 5.5 dd16df9c40 test: pin what a group's inbox events do today (group-inbox, Phase 1)
A peer's kind 10044 or kind 13 proposal reaches the member as a bare
number and nothing declines it; the only gift wraps the app asks for
are its identity's own. Phases 5, 6 and 8 flip these.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:27:53 +02:00
Kgothatso NgakoandClaude Opus 5.5 877f5bbe58 test: a threshold-1 ceremony leaves every admin one secret, and a group-signed seal verifies (group-inbox, Phase 0)
The five checks before any code. ChillDKG at t = 1 gives every
participant the same secret, whose public key is the ceremony's; a
batch of kind 13 events the quorum signs verifies as the room. The
plan's kinds 30390-30396 collide with quartz's trusted lists, so the
ceremony takes 30410-30416, which nothing else uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:27:02 +02:00
Kgothatso NgakoandClaude Opus 5.5 ccc439b2db docs: the group's inbox, planned as NIP-4E on a group's npub (group-inbox, Phase 0)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:24:34 +02:00
Kgothatso Ngako 4108f21511 Merge branch 'claude/confederation-part-c' into giza
Material Design conformance / budgets (push) Canceled after 0s
Material Design conformance / tests (push) Canceled after 0s
2026-11-22 01:11:14 +02:00
Kgothatso NgakoandClaude Opus 5.5 e909313c76 docs: Part C is built, and what it chose differently (confederation, Phase 16)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:10:46 +02:00
Kgothatso NgakoandClaude Opus 5.5 bacd53a1ae feat: what a confederation signs: its profile, its posts and its charter (confederation, Phase 15)
The profile and post editors work in a confederation's room, proposing
through the confederation instead of a FROST key, and the signed event
lands where the existing screens read it. A charter names exactly the
confederation's groups under its name; once signed it goes to relays,
and every member group's room hears of it, which is how members who
are not admins learn the confederation exists. A request to sign opens
from its line in the room for each member to approve or decline.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:10:30 +02:00
Kgothatso NgakoandClaude Opus 5.5 e723e70a59 feat: a confederation signs as itself, one person per device (confederation, Phase 14)
Every role holder is asked; the proposer fixes the selection from the
first yeses, and each selected role makes a nonce held in memory only,
confirms and gives its partial. The transcript, the certificate, each
group's partial and the signature need no secret, so every device
computes them and checks the signature against the room's id before
keeping it. A device that restarts mid-attempt ends it out loud.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 01:00:30 +02:00
Kgothatso Ngako 5ac4c05352 Merge branch 'claude/confederation-part-b' into giza
Material Design conformance / budgets (push) Canceled after 0s
Material Design conformance / tests (push) Canceled after 0s
2026-11-22 00:51:23 +02:00
Kgothatso NgakoandClaude Opus 5.5 8bb34e6cfb docs: Part B is built, and what it chose differently (confederation, Phases 10-13)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:44:18 +02:00
Kgothatso NgakoandClaude Opus 5.5 c9f7d08b18 feat: the confederation's room, the key's own (confederation, Phase 13)
Once the key exists, the coordinator's device makes a Marmot room whose
id the confederation's key derives, with every role holder a member and
an admin, born governed. It waits on missing key packages and retries
when one arrives; a record that does not verify, or a device with no
role, makes no room. The room's screen says it is the confederation's
and that its members are fixed until the confederation can sign.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:44:00 +02:00
Kgothatso NgakoandClaude Opus 5.5 615afc30a1 feat: what a finished ceremony leaves: the confederation, certified (confederation, Phase 12)
Every device that took part files the confederation under the room id
its key derives, as upstream's canonical roster, key state and genesis,
with its own shares kept as recovery packages. The genesis is verified
against the key state before anything is written, and each of the
device's own member groups gets a line saying it is part of it now.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:38:20 +02:00
Kgothatso NgakoandClaude Opus 5.5 02f041431a feat: the confederation's key ceremony, one person per device (confederation, Phase 11)
The coordinator opens a NIP-17 room over every admin of every group and
discloses the key that opens each acceptance. Each device rebuilds the
roster from what the groups signed and checks its own groups' admins
before it will join; joining is the only thing a member is asked, and
every DKG step after it runs from stored inputs over ConfederationDkg.
Each device derives the key state and assembles the certified genesis
itself, and keeps its share as a recovery package.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:35:38 +02:00
Kgothatso NgakoandClaude Opus 5.5 e1a18f83c5 feat: the confederation's roster, the same bytes on every device (confederation, Phase 10)
ConfederationRosterBuilder writes upstream's roster from the proposal
and the opened acceptances: groups and admins sorted, the proposal's
outer threshold, each group's sealed threshold, the admin's npub as
the entity and an attestation hash over the proposal and acceptances.
Host keys derive from the member's nsec per group and proposal, so one
person in two groups holds two roles with a key each.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:20:31 +02:00
Kgothatso NgakoandClaude Opus 5.5 ba3800e1fc Merge the confederation's rounds made public upstream (confederation, Phase 9)
Material Design conformance / budgets (push) Canceled after 0s
Material Design conformance / tests (push) Canceled after 0s
secp256k1-zkp exports the confederation's DKG and Option A signing steps,
secp256k1-kmp binds them, bitcoin-kmp wraps them as ConfederationDkg and
ConfederationSigning, and lightning-kmp-app, lightning-kmp and the chain
below are bumped to them. lightning-kmp's master now carries the threshold
line, with its earlier Iceberg port reconciled into it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:10:35 +02:00
Kgothatso NgakoandClaude Opus 5.5 9be5a6358f feat: the confederation's rounds reach Giza, one role per device (confederation, Phase 9)
Bumps lightning-kmp-app to 572b931, and with it the chain below:
lightning-kmp 47a0f585 (its master, now carrying the threshold line),
bitcoin-kmp bca235a, secp256k1-kmp 8022069 and secp256k1-zkp b5819301. zkp
now exports the confederation's DKG and Option A signing steps,
secp256k1-kmp binds them, and bitcoin-kmp wraps them as ConfederationDkg
and ConfederationSigning.

ConfederationReachableJvmTest gains a run in which three groups make a key one
role at a time, through ConfederationDkg with only bytes between the roles,
and then sign as their room's id through ConfederationSigning, with every
signer spent at the end. Confederation.signLocal now takes nonce randomness,
so the fixture gives its callers fixed per-signer values.

docs/confederation-upstream.md records each phase's commit and what checked
it, and how lightning-kmp's master was reconciled. docs/confederation.md
marks Phase 9 done, so Parts B and C can start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 00:09:58 +02:00