A formed confederation opens its own screen, from its row on each member
group's screen and from its card among the group's confederations: its
signed profile, its groups with who holds their roles, the changes to its
profile and the way to propose one. A member who is not an admin sees the
public part and is told why the changes are missing.
Editing the profile asks the member's group to propose the change (or
the group they pick, when they are an admin of more than one); a change
opens on its own screen with what it would change field by field, every
group's answer, and Endorse, Object or Withdraw. The lines in each
group's room open the change, or the confederation once it is published.
The five profile fields move to a shared NostrProfileFields, used by the
group's form too, with decorative icons beside their labels.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A line in each member group's room a device holds, for every change,
endorsement, objection and withdrawal it files, once each, and for the
answers that arrived before their change once the change does. The line
carries the change's id so the next phase can make it open the change.
Another group proposing a change notifies; the answers are quiet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A change is a statement by the editing group, sealed by its quorum to
every member group's inbox, with a voucher signed in the same session.
Every other group endorses (with its own voucher) or objects, the same
way. The confederation's groups and threshold come from its record, or
from its charter, which now says the threshold too.
A member's device reads what its group would sign: the seals to exactly
the confederation's other groups, a readable profile editing the newest
one it holds, one voucher for exactly that kind:0, an answer to a change
still open that this group has not answered. Anything else is declined
out loud. The approval screen's notes say what would change, field by
field.
The inbox hands the statements to the confederation and files no copy
as a conversation.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kinds 9435 to 9438: a group proposing a new profile for its confederation,
another endorsing or objecting to it, and the voucher a group signs beside
its seals. None is public, so none joins ConfederationKinds.ALL. A change
carries the unsigned kind:0, dated as itself, so its id is fixed before
anyone answers.
ConfederationProfileChangeStatus computes where a change stands from what
a device holds: T of N groups endorse it, an objection blocks only when T
is out of reach, a newer signed profile supersedes it, and nothing past
its expiry counts.
Everything is filed in ConfederationEvent under a new confederationId
(schema 50), the signed kind:0 included, because GroupSignedEvent hangs
off a room that a member who is no admin does not hold.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plan, and three of its premises as tests. A batch of seals with one
voucher is declined today, by refusals that are ours to change. A voucher
a group's quorum signs verifies under its npub with nothing else known. A
profile change carries the whole kind:0 in every group's seal, so it can
carry about 1.1 KB of profile to twelve groups and 13 KB to two: the plan
now says so, rather than "a few KB".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Notifications took schema 48 first, so the confederation's statements
between inboxes are schema 49, AutoMigration(48, 49).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
The group's direct messages took schema 47 first, so notifications' read
marks and ledger move to 47 -> 48. GizaRuntime builds the new group DM
repository and hands it to the sync engine. TYPE_GROUP_DM_FORGOTTEN is
placed with the classifier's silent types.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
The work below Giza that unblocks the confederation's key ceremony and
signing: public step functions in secp256k1-zkp, their bindings in
secp256k1-kmp and wrappers in bitcoin-kmp, then the bump. Covers the
three one-process shortcuts the steps must not inherit and the storage
contract a device follows.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Once every group has accepted, the coordinator's own key opens each
acceptance: each group's admins and threshold, the roles they add up
to, admins who sit in more than one group, and any group with no
public profile here, which stands in the way. The plan is marked as
Part A built, with what the build chose differently.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A proposal opens on its own screen with every group's answer; an invited
group's member proposes accepting or declining, the proposing group's
can withdraw, and a pending answer stands in for both. The approval
screen lists the groups, the coordinator, what an acceptance discloses
and each group with no public profile here. Three groups signing real
answers end to end found answers filed before their proposal losing
their line; the proposal now writes them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Confederations row on a keyed group's screen opens every proposal
naming the group, watched as answers arrive. An admin holding a share
proposes from a form that looks every group up on the relays, this one
included, and hands over to the group's signing session. Each proposal
and answer writes one system line in every room it names.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Behind ExperimentalFeatures.confederation. A live subscription asks
the public relays for what names our rooms and what answers open
proposals, and files it in the confederation's table rather than as a
NostrEvent. What a group signs is filed on every device and owed to
relays by the one that proposed it; a publisher keeps at it until a
relay takes each, and the broadcast screen can send one again.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The refusals run where the wallet's and the statement's do: on arrival,
again at approval, as the decline's reason and in a resend. A proposal
is signed only with its proposer's own acceptance, by a coordinator who
is the proposer and an admin, and an acceptance only if its seal holds
exactly the admins and threshold this device sees in the group. The
seal's secret and the proposal being answered ride the FROST proposal.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Schema 43: ConfederationEvent for every proposal and answer, verified
as its author's before it is filed and never a NostrEvent row;
ConfederationInvitee so a room finds the proposals naming it; and
ConfederationSigning for what a signing session has to remember past
its proposal's arrival.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kinds 9430-9433, regular rather than addressable. A proposal, an
acceptance carrying the group's admins sealed to the coordinator with
NIP-44 under a shared ephemeral secret, a rejection and a withdrawal;
the admin list has one encoding, and a proposal's state is computed
from the answers a device holds, never stored.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SharedKeyDerivation.Derived carries the tweak scalars it applied, so a
key held some other way can reach the same room key. The three premises
of the plan pass: the room-id derivation replays under a confederation
key, NIP-44 seals reproduce byte for byte, and the new kinds currently
reach the member unrefused.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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>
Groups with a public nostr profile propose, accept or reject a
confederation in public; an acceptance seals the group's admins to the
coordinator in a way every signer recomputes; the DKG, the Marmot room
and confederation signing follow once upstream publishes the rounds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The plan gets its Built header and a table of where the build chose
differently, among them the broadcast screen's refusal of every kind but
0 and 1, which the plan did not have. Four notes that said these features
were gone now say they came back. The device run is not done, and the
header says so.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ConfederationReachableJvmTest runs a local confederation DKG and two
signatures -- one plain, one under a taproot tweak checked against the
P2TR output key -- through the desktop JNI library Giza loads. A compile
proves only that the classes are on the classpath; a libsecp256k1 built
from an older secp256k1-zkp fails here with an UnsatisfiedLinkError.
Not a ceremony: dkgLocal and signLocal run every role in one process,
and nothing in the app calls them.
The plan records Phases 1-4, the Android launch over an existing build,
and why secp256k1-kmp's instrumented tests do not build (FrostRefreshTest's
spaced method names, from before this update).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>