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>
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>
The screen takes a signed event's id as a navigation argument, and this
device still holds group-signed events of other kinds: the wallet removal
kept every GroupSignedEvent row, a Bennu-era wallet statement among them,
whose xpub on a public relay is the group's whole history on chain.
Curare's screen refused the wallet's kind; this refuses every kind but 0
and 1, before anything reaches the relays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ProposeGroupEventScreen and GroupEventProposal come back from Curare,
accepting kinds 0 and 1 only: a relay list is refused like any kind with
no section on the group's screen (D1, D9). Its profile and post checks are
GroupStatementRefusal's, so the member proposing and the member signing
refuse the same pastes. A "Propose event" button sits under the posts
row for a member who can propose and an identity that can sign.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The broadcast screen comes back from Curare: the event named as the
signing screen names it, a relay list the member edits, the raw JSON to
copy, and each relay's answer under its row with the sum above. It sends
through EventPublishTransport, reinstated and implemented by
RelaysSocketManager, and never writes a NostrEvent, Profile or queue row
for the group's event (D7, pinned in BroadcastLeavesNoRowJvmTest).
With no group relay lists (D1), defaultRelaysFor seeds the app's publish
set; it stays a function of the event so the lists can return. The one
piece of Curare's GroupRelaySet it needed is RelayUrlInput. A Broadcast
button sits under the profile card and under each post, open to every
member, since the signature is already the group's (D4).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A Posts row under the profile row counts the group's kind:1s; behind it,
the posts screen and the composer from Curare, newest first and under the
group's byline. The composer refuses a blank note through the same
predicate every member's device declines on (GroupStatementRefusal), and
says above the button that a signed post cannot be taken back. Proposing
is gated as for the profile (D4); a device holding no posts says so (D8).
The broadcast under each post comes with Phase 7.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group's screen gets a Nostr profile row in Marmot rooms, under the
description: what the group is called and its nostr address, or that it
is not described yet. Behind it, the profile screen and the editor, ported
from Curare. The editor proposes a kind:0 through proposeSigning and hands
over to the signing session in its place.
Who may propose is the room's half (a Marmot room, not left, not
disbanded) and the device's (a share of the key), as GroupStatementCapability
and canProposeAsGroup; an npub-only identity is offered no editor (D4).
The editor offers no lightning address and the profile shows none, while
an edit keeps one already there (D6). A device holding no profile says so
rather than that the group never described itself (D8). The broadcast
button under the profile comes with Phase 7.
The detail screen's absence test for these rows moves into
GroupSignedWorkRowsJvmTest, which now checks the row is there.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A kind:0 whose content is not a profile, or a kind:1 with nothing in it,
would be signed and filed and shown nowhere: every reader refuses them.
Giza signs only what it can check, so GroupStatementRefusal declines them
on arrival beside WalletRefusal, in the approve backstop, and with a
reason of its own on the wire, so the group counts the refusal. An empty
profile is still a profile, and is put to the member. (D5)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A kind:0 the room's own key signed is a system line naming what the group
is now called; a verifying kind:1 is "The group posted in its own name".
A member's own profile passing through is still no line, a member's post
or a forged one is still the raw bubble, and relay lists stay silent (D1).
The two types are public again under the strings Bennu stored, so rows an
older build wrote render as today's (D3).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupNostrProfile and GroupPost come back from Curare as read models over
GroupSignedEvent, verified as the room's own. The profile's template no
longer takes a lightning address and leaves one already there alone (D6).
ProposedEvent names a kind:0 and a kind:1 again, so the signing screen and
the proposal list say "Nostr profile" and "Post" rather than a number;
a relay list is still said by its kind (D1). ChatRepository reads the
profile, the posts and one signed event by id within a room.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A room-signed kind:0 writes no line, a room-signed kind:1 is a raw-JSON
bubble, and the stored types older builds wrote stay system lines. The
premise the plan rests on is pinned in the signing harness: what a keyed
room signs passes GroupSignedEvent.verifies on every device.
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>
The key's roster has a row per participant id. An admin removed and later
reinstated holds two -- the old id, retired for good, and the one bound at
reinstatement -- under the same nostr key. The Shares section drew a row
per id keyed by that nostr key, and the LazyColumn threw "Key ... was
already used" opening or scrolling the room detail.
SharesSummary.byMember folds the roster to one row per member, showing the
id that says what they hold now (live over stale over retired) in the place
of their first id. The repair offer reads the same row: it used to read the
first id, the retired one, and so never offered a reinstated admin whose new
id is stale a repair.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Comments that state a current version now state the new one: the material3
notes in the catalogue, Theme.kt's expressive note, m3-audit.sh's role list
(ColorScheme declares the same getters at 1.12.0-alpha03), the Kotlin/Native
workaround's note, and two lines of quartz-mls-marmot-update.md. Notes that
record what was true when they were written are left. The plan's status
names what is left: pushing the four submodule branches, Phase 8, and
Compose 1.13.0 once final.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
lightning-kmp-app moves to 63a48b2, which carries AGP 9.5.1 down to
secp256k1-kmp. AGP 9.5 registers a Compose Preview runfiles task on every
Compose variant and refuses to create it unless that variant's unit tests
exist and include Android resources, so unit tests include resources and run
for release as well as debug. Merged manifests are identical to 9.4.0's.
The submodule commits are on claude/dependency-update branches, not pushed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
TextNoteFeedItem made its expansion state without remember, so it was new on
every recomposition (nothing sets it yet, so nothing changes). SearchScreen and
SearchResultScreen never applied their scaffold's innerPadding: the SearchBar
takes the insets itself, so the scaffold now gives its content none and the
zero padding is applied. Layout is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Desktop had no icon at all, so jpackage and the window showed Java's. The installers now
name a generated .icns (Apple's Big Sur plate), .ico and .png, and the window takes the
in-app logo. The .deb carries the icon and its .desktop entry points at it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
compose-multiplatform.xml, the mark in the middle of every QR code, is generated from the
master: the same shape as before -- a background square, then the mark -- with the old
#FF3A1A and black swapped for black and sand. AppLogoDrawableJvmTest samples it where the
master is unambiguous, and fails against the drawable it replaces.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Eight libraries, the sqldelight plugin alias and six version keys that no
build script references, and the commented-out lines that named them or
Room 2's aliases. The jvm, debug and release runtime graphs are identical
to Phase 0's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
magpieLockAudit runs docs/scripts/magpie-lock-audit.sh from check, beside the
M3, brand, wallet and marmot audits. Every catalogue library in a group Magpie
serves must be declared strictly (D3) and have a lock line for its root,
-jvm and -android modules -- read as text, so a bump made on one platform is
caught on any. Verified both ways: silent on a clean tree; a dropped lock line
or a plain, unlocked bump names the module and fails the build.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
giza deleted FoundingAdmins.check (remove-founding-admins-card): it
cannot tell a founder left out by a buggy creator from one the group
demoted, and every founder is an admin when the room is made. RoomAdmins
drops its missing-founders guard, and A4 says why.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C1 measured again on mls-kmp 1.3.1: the old-blob, shipped-profile, store,
sender-ratchet, skipped-generation and fork tests are green untouched, and the
authored fork is still open. The re-save test only said "newer than 4", which
a library that moved to 11 would pass, though a bump is what an older build
cannot read back; the seventh case pins 10 exactly, checked red at 11.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
mls-kmp 1.3.1 gives a new group the RFC 9420 §11 epoch-0 interim transcript
hash, where quartz 1.15.2 and mls 1.3.0 left it empty. A state saved the old
way keeps its empty hash -- 1.3.1's audit commit dropped the restore-time
repair -- so the room the old engine created is restored as it was, and the
commit that adds its first member is the one the hash feeds. Pinned both ways,
and measured: the add, the Welcome, and a message each way across it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The running card names the members whose share it takes away because
the group removed them as admin, and their rows read Share being
rotated away instead of Holds a share. Removing an admin says nobody
is asked again.
The plan is marked built, with where the build chose differently, and
the notes it changes point to it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Make admin at the ceremony's generation no longer sends the admin to
rotate by hand and come back: the offer starts that rotation, which
withholds nobody new and so asks nobody, and the accepted offer's
proposal waits in GovernanceFollowThrough until the group has signed
the new shares. A rotation abandoned or failed ends the offer out loud,
once. The confirmation says the shares are rotated first.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A recipient takes part unasked when the rotation withholds nobody the
group has not already decided about: everyone it leaves out until they
are back is stale already, and everyone it leaves out for good is
someone the group's signature took out of a governed room's admins.
The check sits at advance's one gate, so arrival, a replay and the
sweep all meet it, and the room is told in place of being asked.
Every rotation now retires the live holders the group removed as admin
(A3), so whichever runs first after a demotion takes their share away.
Neither applies in an ungoverned room or to a founder the admin policy
has been missing from the start.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A change that moves who holds a share -- any change of admins, or the
removal of a holder -- is refused while a rotation is under way, until
its key state is signed, and so are offers and step-down requests. A
step-down request or an accepted offer that arrives meanwhile waits and
is taken up on the next pass. A removal whose owed rotation would fail
the majority rule is refused before anyone signs (A12). The member rows
list the rotation as the reason, with whom it waits on.
rotateAway no longer takes a running rotation that still deals to the
removed member for the one it owes, which left them a live share and
said nothing.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
rotationHold gains two reasons: a signed change that moves who holds a
share is still being signed or on its way to a relay, and a new admin's
bound id has no share yet. rotationPending is the part admin changes
wait on, through AdminGovernance.adminChangeHold: a rotation running, or
its key state not yet signed. RoomAdmins reads the live admin policy,
with a seam for the in-memory ritual devices. The Shares section's held
line names the two new reasons.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A removal's rotation asks every remaining holder. A removal during a
rotation is handed the running one, which deals the removed member a
live share. A new admin bound mid-rotation fails the rotation's round-2
check. A statement being signed fails when the rotation lands. A
step-down request taken up during a rotation is used up. The first
promotion is refused at generation 0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
FoundingAdmins.check, announceIfMissing, ChatRepository.foundingAdmins and
addAdmins, MarmotOutboundDao.addAdmins and FoundingAdminsJvmTest are deleted:
nothing calls them any more. ceremonyOf, the one piece still used, moves to
MarmotGroupCreation beside uninvitedFounders and finishFoundingInvite.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The line ended "An admin can add them back from the room's details", and
nothing there does that any more. TYPE_FOUNDING_ADMINS_MISSING stays in
MEMBERSHIP_TYPES, retired, so the rows already written still render as
captions.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
missingFoundingAdmins and addMissingFoundingAdmins go with the card that read
them, and every detail load drops a group decode. founderNames now names only
the uninvited founders.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A founder missing from a keyed room's policy is now usually one the group
demoted or who stepped down, and the card's "Make them admins" offered to
undo that. The "not every founding member was invited" card stays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The retired caption type's place in MEMBERSHIP_TYPES moves to
ChatRoomLastMessagePreviewTest, and the legacy-room case asserts no key
state directly rather than through FoundingAdmins.check.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>