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>