The standing notice under the newest message read only the shared key's
ceremonies, so a member owed the Lightning wallet's join, reveal or confirm
had to scroll to its request line. AwaitingCeremony now says which ceremony
and what it wants, the chat's view model observes the Lightning ceremonies
beside the shared key's, and a tap opens the screen that ceremony has.
The member who opened the Lightning ceremony is also asked, once its key is
made, to open the wallet -- the counterpart to ChillDKG's room awaiting
creation -- until a wallet statement for it is being signed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Lightning wallet now opens on the node's own network, mainnet,
where the group's onchain wallet already is, so the separate testnet3
onchain wallet and its row on the group's screen are gone.
GroupLightningRollout.allows takes mainnet and regtest, nothing else.
This lifts the plan's mainnet gate by decision, ahead of its condition:
an outside review of the Iceberg scheme and the DKG, and a month on
testnet3. The LSP's signing deadline was never measured either.
Meanwhile:
- Every co-signer refuses to sign for a mainnet channel over
MAINNET_CHANNEL_CAP, 1,000,000 sats, so a bigger one never opens; none
grows, since splices are refused.
- The opening screen says the scheme is unreviewed and names the cap.
Running the co-signing suite on mainnet (now a second test class) found a
bug that would have stopped everything there: every key manager was built
with a testnet swap-in tpub, which lightning-kmp rejects on mainnet. That
covers every co-signer and the operator's node. Mainnet now takes the
mainnet LSP's published xpub; nothing derives from it.
The full JVM suite (1,578 tests) and the regtest run pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in an Electrum client for a profile with no node: IdentityElectrum
gives an nsec or npub profile a StandaloneElectrum of its own, so every
profile can watch the chain.
For the group Lightning wallet:
- GroupChainClients now sits on IdentityElectrum's client for the node's
network, so group wallets and the watcher work on profiles with no node
too.
- Each other network (testnet3, for the Lightning wallet) now gets a
StandaloneElectrum instead of this branch's own connection loop. The
old loop picked a server with ElectrumServers and connected directly,
ignoring the profile's Tor setting, so a profile with Tor on would have
reached a testnet3 server in the clear. The new one uses onion servers
while Tor is on. A test covers it.
- The group's Lightning node takes its context and logger from the app,
not the identity's Phoenix business, so a profile with no node that
holds a share can be elected and run it.
- The member wallet's follow() keeps its network parameter.
The full JVM suite (1,568 tests) and the regtest run pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the guarded member wallets, guarded subgroup wallets, ceremony
creation, and the removal of the group's nostr profile, relays and posts.
Two clashes needed more than a textual resolution:
- Event kinds. The guarded-wallet family took 30333-30337, the numbers
the Lightning family used for its ceremony. Nothing conflicted
textually and nothing would have failed, since each side reads the
other's events by kind. The Lightning family moves to a fresh run,
30350-30366, which costs nothing: rumor kinds that never shipped.
GroupLightningEventsTest now knows the guarded-wallet kinds and asserts
the family starts past every kind the app uses.
- Schema versions. bennu used 27-31. This branch's four versions were
never on an installed database, so they become one migration, 31 to 32,
adding the 13 Lightning tables.
Also:
- bennu's new member-wallet calls (broadcast, confirmationsOf,
guardianSpends, the fee suggestion) now take the network, because this
branch made Electrum clients per network.
- bennu's watcher conflict check uses the transaction's own network.
- NEVER_BROADCAST is gone with the broadcast screen, and so is the test
that checked the Lightning statements against it.
The full JVM suite (1,554 tests) and the regtest run pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wallets are non-null wherever a screen is reached with an identity, and
with them go GroupWalletAddressesUIState.CannotWatch, the CANNOT_WATCH refusal,
canWatch on both wallet states and the new-member-wallet view model, and the
two strings that explained it. An nsec profile can now ask for a member wallet.
The profile screen keeps a nullable wallets, for previews and tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in guarded-wallet forwarding (docs/guarded-wallet-forwarding.md),
which made telling the groups above automatic and touched the same
sharing code in GuardianManager.
Resolved by keeping both: its upwardOf, elected sender and catch-up,
and this branch's naming and certificate tag. Its automatic forward now
carries the guardian's birth certificate too (guardianCertificateFor),
and D5's re-tell rule moved into its told(), replacing alreadyTold. Its
wallet-level named() is dropped in favour of this branch's, which also
fills the guardian and branch names.
GuardedWalletForwardJvmTest's "the button offers only what goes up"
now shares with the certificate, as every share from this build does;
without it the wallet is rightly offered once more.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wallets your groups guard drew one row per holding group, so a wallet
held by a group and its parent appeared twice, each row calling its
holder the guardian. MemberWalletManager.byWallet gathers the rows into
one entry per wallet: headed by its label, "Guarded by #M" for the
group that signed its certificate, and under it each group here with a
leaf in it, nearest first -- "#P: after 144 blocks, about 1 day" --
with Spend where this device holds a share, described as "Spend from
Savings as #P".
GuardedHere.guardianName, which was the holder's room name, is now
holderName, so it is not mistaken for the direct guardian's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Members' guarded wallets move under a Members' wallets sub-heading, one
header per person -- @alice, "2 wallets, guarded by 2 groups" -- that
opens their profile, with a card per wallet beneath it. Each card says
which group below guards it: "Guarded by #N", "Guarded by #M, below
#P" where it is further down than this group's own child, "Guarded by
this group", or, with no name this device can check, "Guarded by a
group below #P". An unlabelled wallet is headed by that line.
Fund and Spend now name the wallet as well as the person, so a screen
reader tells one member's several wallets apart. The spend form's
title, the proposal a signer reads and the transcript line name a
labelled member wallet the same way: @alice's guarded wallet "Savings".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Tell the groups above stays, as the fallback for what the automatic
forwarding could not send, and now says so once under its heading:
this device tells the groups above on its own when it can, and Share
is for a group above that has not heard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
"Choose a group to guard it" no longer lists a group that never opened to
its members' wallets, or has closed: neither is a choice. A group whose
key -- and so whose policy -- this device has not been told stays, with
the button that asks, since the answer is how it learns the group is
open; so do the refusals about the profile itself. The empty list now
says how that changes: a group's signers can turn it on from its page.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group's page shows, first in Members' guarded wallets, where the group
stands -- guarding them after a delay, never having said so, or having
stopped -- to everybody in a Marmot group, with Change or Guard members'
wallets for a device that can sign. It opens MemberWalletPolicyScreen:
the delay chooser, what a change reaches (only wallets asked for from now
on), the older-app caveat, Ask the group, and for an open group Stop
guarding new wallets behind a dialog saying closing releases nothing.
Each proposes a 30337 through the existing signing session.
GuardianDelayChooser and its state, GuardianDelayInput, move out of the
subgroup picker so both screens share them; the picker's behaviour is
unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MemberWalletManager.judgePolicy is D6 of docs/member-wallet-delay.md: a
request carrying an open policy its group signed is judged at that delay
unless this device holds a newer one -- then it is stale, asked under a
changed delay or of a group that has since closed. A request carrying no
policy, a closed one or another group's is refused. refuseCertificate
checks the grant at the judged delay, and putToGroup runs the same check
before it proposes.
The member sees it: a wallet not yet guarded carries refusedBecause, the
wallet screen says why, and Ask again makes a new request under the
group's newest policy with a new key -- the old one, never offered, is
discarded -- or, for a closed group, leaves only Discard.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MemberWalletManager.refusal gains NOT_OFFERED -- the group has signed no
policy -- and CLOSED, after the refusals it had; a member with no key yet
still gets KEY_UNKNOWN and its button to ask, since the answer brings the
policy too. request() works out the grant at the open policy's delay and
the request carries that policy whole as ["member_wallet_policy", ...];
delaysOf reads it, and is null for a group that is not open.
MemberWalletRequestEvent.verified gains a sixth check: a carried policy is
an open one the asked group signed, and the nearest guardian's delay is
its delay. A request carrying none still reads, so certificates signed
before policies keep verifying; that a new request must carry one is the
signers' rule, which comes next.
The member-wallet test fixtures open their groups at the default.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in member guarded wallets and funding a descendant's guarded wallet.
- Schema: bennu's v30 (MemberWallet, MemberWalletSpend) is kept as it is;
DkgSession.guardianDelay moves to v31, with a 30 -> 31 auto-migration.
- Conflicts: strings and README take both sides; the send form's guardian
delay line moves into the shared SpendForm; the guarded wallet card keeps
its Fund and Spend buttons and gains this group's own leaf's delay.
- bennu's uses of ANCESTOR_DELAY become each leaf's own delay:
GuardedWalletRow.arriving, the funding form's "spend these coins again"
line, the member wallet screens' reach text (MemberWalletManager.delaysOf)
and the member certificate's proposal summary.
- Four of bennu's fixtures built a "guarded" wallet with no guardian leaf;
they now carry the ancestor's, as a verified statement would.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in a group funding a descendant's guarded wallet. Three conflicts:
- GroupSendScreen: funding replaced the address field and named the
funded wallet in the preview, inside the fields this branch moved
into SpendForm. SpendForm now takes a destination slot, which a
funding fills with its card, and the funded wallet's name; the
preview takes both that name and the member's ownWallet words.
- GroupWalletScreen: the guarded wallet row is funding's card with Fund
beside Spend, headed by this branch's #name / @name and carrying a
member's label.
- docs/README.md: both rows.
Funding reads guarded wallets through GuardianManager.guardedWalletsOf,
which this branch widened to members' wallets, so a group can now fund
a member's guarded wallet. Every place funding named a wallet with
`name ?: "a subgroup"` -- the title, the destination card, the preview,
the proposal summary, a signer's refusal -- uses displayName, so it
reads "Fund @alice's guarded wallet". A test funds a member's wallet
end to end through GroupSpend.fundingsOf.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ChatRoomDetailScreen gets a Members' guarded wallets section of its own
under Subgroups: a row is a person, @name and the wallet's label, and
it opens their profile rather than a room. A request no signer has put
to the group yet says so, and a share-holder can put it to the group
from the row; a member who could ask has the way in beneath.
ProfilePreviewScreen lists the person's wallets the groups this profile
is in guard, one row per guarding group, with Spend where this device
holds a share -- the guardian spend the wallet screen already makes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A guarded wallet's subject is now a subgroup or a member.
GuardianManager.verify takes a member wallet certificate beside a
subgroup's statement, checks it on its own and walks the ancestor's
guardian root down a line of descent that ends in the wallet's id. The
group that signed a certificate lists it from its own signed events;
the groups above learn of it from a 30333 notice, and a member in both
rooms can carry it upward from the wallet screen as before.
The guardian spend is unchanged: the guarded tag carries W, the builder,
the check and the signing cache take any id. The wallet screen names a
subgroup's wallet #name and a member's @name -- the live profile name,
since the certificate fixes who the member is, not what they are called.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MemberWalletManager.signSpend checks a spend the way a group member
checks a group's -- GroupSpend.check against the account the wallet
rederives to -- signs every input on the key path with the member's
key, asserts correctlySpends, and files it as a MemberWalletSpend.
While member wallets are shut on mainnet a member's own spend there is
held to the same cap as every group spend.
MemberSendScreen is the group's SpendForm with a button that signs and
sends; the line above it says there is no quorum after this. There is
no session for GroupTransactionWatcher to follow, so the wallet screen
follows the member's spends while it is open, sending again any
Electrum has not heard of, and lists them.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupSendScreen's fields and preview move, unchanged, into SpendForm,
which emits into the caller's column so the group's form lays out as it
did. The button stays the caller's: a group asks its quorum, a member
will sign alone. An ownWallet flag changes the words -- "your coins",
"this wallet" -- and nothing else, so the two forms cannot drift.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Under the guarded row, SelectSubgroupAdminsScreen offers the delay for
this group's own leaf: presets for an hour, two (the default), a day, a
week, a month, six months and the longest, and a custom field in blocks
whose supporting text says what it works out to, or why it cannot be
used. The view model keeps what was typed rather than clamping it,
refusal() refuses a delay outside 6..65,535 for a guarded subgroup, a
retry restores it, and confirm passes it to proposeRitual. The guarded
row and the join gate stop quoting 12.
Lands with Phase 6, which puts the chosen delay into the certificate.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The profile lists every guarded wallet of its own this device knows
about, named for the group that guards it: the ones whose key is here,
and the ones a group this device is in has certified for this npub,
which includes wallets made on another device and shown watch-only.
Each row says where the asking has got to -- asked, signing, not
signed, open -- or the balance.
MemberWalletScreen offers addresses only once a group has certified
the wallet. Before then the member can ask again or discard the key,
which is safe exactly then; after, it shows the balance, the address,
the coins and every coin a guardian took, read off the chain. Export
key, behind a confirmation, shows both descriptors with the private
key in them.
wipeData has no callers and deletes nothing yet, so there is no wipe to
guard; a note on it says what a caller must do once it does.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Each guarded wallet on an ancestor's wallet screen becomes an outlined card:
the name (now up to two lines) and what is within reach, then Fund and Spend
in a flow row under them rather than in the list item's trailing slot, each
naming its wallet to a screen reader. Fund is offered only where the room has
a wallet of its own and can sign and watch. The supporting line adds what is
arriving -- coins not yet past the leaf's lock -- so a funding does not look
lost for two hours. The send form's destination card names the wallet once,
under "To", instead of repeating the title.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Before a parent can choose a delay, the screens stop saying "12":
- the child's wallet screen, opened or not, lists each guardian nearest
first with its own delay -- "#Council: after 144 blocks, about 1 day" --
named by the room this device holds for it;
- an ancestor's Guarded wallets list says, per wallet, the delay that
wallet gives this group, and GuardedWalletRow.withinReach counts coins
past that delay rather than the default (GuardedWallet.delay);
- the send screen tells a guardian that only coins past its leaf's lock
can be spent;
- the subgroup rows and a subgroup's parent row say "Guarded wallet,
after <delay>", off the certificate.
The strings that quoted one number are reworded without it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MemberWalletManager.request makes a random key, works out the group's
leaf and every inherited one, builds both descriptors, stores the key,
and only then puts the signed request into the group's room. It checks
the request the way every signer will before it goes, and a member who
holds a share of the group's key puts it to the group in the same step.
NewMemberWalletScreen is a consent screen first: who can take the
member's coins and after how long, who will see them, and that the
group is the recovery path -- then an optional label and one button.
Every refusal is named, and a member who does not know the group's key
can ask for it from there. Its entrances arrive with the profile's
guarded wallets (Phase 8) and the group's page (Phase 11).
GroupWalletRollout.MEMBER_WALLETS_ON_MAINNET is shut: the entrances are
offered on test networks only, since the member's own spend is the
first single-signer path the app has.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
text/BlockDuration.approximate: within 5% of exactly one hour, day, month
or year, that unit singular; otherwise the largest unit that comes to at
least 2, rounded -- 216 blocks is about 36 hours, 65,535 about 15 months.
delayText says it beside the block count, "144 blocks, about 1 day", and
the block count alone on regtest.
The catalogue's first plurals, so nothing reads "about 1 hours";
StringCatalogueJvmTest asserts they resolve. Nothing shows a delay yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupSendRoute.fundChatRoomId opens the form in fund mode: the address field
gives way to a fixed destination card naming the wallet, the address
fundingAddress chose and its index, and that the group can spend the coins
again after the leaf's lock. The form follows the descendant's chain state and
the room's open fundings, so a paid or held address moves on while it is open.
A route naming both a source and a destination is not opened.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`testing/regtest/` builds bitcoind, electrs, an eclair v0.14.4 LSP set up as
a Phoenix LSP, and a payer. `GroupLightningRegtestJvmTest` (run with
BENNU_REGTEST=1) drives four devices through it with a real lightning-kmp
node: open, receive on a channel opened on the fly, pay through the LSP's
trampoline, close mutually, then force-close a second channel and sweep its
delayed output with a FROST script-path spend. It passes from a fresh
network in about thirty seconds.
The run found four bugs in the operator's node, fixed here:
- It learned the chain's height only at the next block, and until then
could answer no invoice request and take no payment. It now asks as it
starts.
- It turned down every on-the-fly channel, because lightning-kmp's default
liquidity policy caps fees at 2,000 sats and the statement's signed
`maxLiquidityFeeSat` never reached it. The node's policy is now the
statement's.
- A channel could ask for round one before the pool held it. The node now
waits for a minimum pool before connecting, and otherwise refuses and
retries.
- A force close waited forever for feerates, which lightning-kmp fetches
only once. The node now refreshes them, and takes a flat rate on regtest.
Public eclair cannot route a Bolt11 payment to a wallet by its peer-id
route hint, so the run pays the group's Bolt12 offer. The offer is now part
of the wallet: every snapshot carries it, every member keeps it only if
its own copy of the seed derives it, and the receive screen shows it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupWalletViewModel reads the room's own wallet policy through
ChatRepository.walletPolicyOf: a parent that decided guarded leaves the
guarded wallet alone, one that decided unguarded the plain one alone, and
an undecided subgroup or a root group keep what they had. openWallet will
not build a plain statement under a guarded policy, and OpenWalletAction
shows one button with a line saying the decision was the parent's.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
SelectSubgroupAdminsScreen gains a wallet section under the quorum
stepper: guarded (the default) or unguarded, carried to proposeRitual.
Under a guarded parent the unguarded row is shown disabled with its
reason, setWalletPolicy will not move off guarded, a retry is pulled back
to guarded, and refusal() refuses it -- D4. A parent whose guardian keys
do not read cannot make a guarded subgroup, which is now refused before a
ceremony rather than after.
SubgroupManager.walletPolicyOf is the one reader of a group's own policy,
reached through ChatRepository with guardiansOf. DkgJoinApprovalScreen
tells an admin what the subgroup's wallet will be before they join.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gates are in code and stay closed. `GroupLightningRollout.ENABLED` is
false because its own condition, a regtest end-to-end run, has not been
met; mainnet is refused by `allows` whatever a screen offers.
The ceremony screen names every participant who has not answered the
proposal, with a word that their build may not know the new kinds: a
member on an old build is a co-signer who never answers, and the group
is smaller for it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Iceberg cannot reshare, so a member who leaves keeps a share of the key
and the node's seed until the group opens a new wallet without them.
- A ceremony is now over the onchain key's holders who are still in the
room (D1, narrowed), and a statement verifies when every participant
holds the onchain key, so the wallets before and after a removal both
stand.
- A room can have several wallets on a network. The highest-numbered is
current, and a new statement takes the next number, under a key no
wallet uses yet.
- The wallet screen names who has left and offers the new key or the new
wallet. It lists earlier wallets with their balance, one decision to
close every channel they still have, their sweeps, and a way to run
their node when nobody does.
- `GroupLightningNodes` runs one node per wallet a device operates.
- Removing a member who holds a share says what the removal leaves.
A five-device test removes a member, refuses the leaver's own ceremony,
re-keys over the four who remain, opens wallet 1 beside wallet 0 with an
operator each, and closes wallet 0's channels in one session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The operator's snapshot now lists what closing channels pay to the
group's basepoints, found by the fork's `GroupHeldOutputs`. Any member
proposes a sweep from the wallet screen. A sweep is a FROST session of its
own subject, `SWEEP`: every input is a taproot script-path spend, signed
under the leaf key each member derives from its own basepoints, and every
output must be a receive address of the onchain wallet. `GroupSweep.check`
refuses anything else.
A signed sweep is a `GroupTransaction` row like a spend, so the watcher
sends it, again every ten minutes until the network accepts it once the
delay is over. The approval screen, the proposal list and the onchain
wallet's history say what a sweep is.
A four-device test sweeps a to_remote and a to_local output built with
lightning-kmp's own scripts, and the interpreter accepts the result.
Splicing out is not built; the plan's doc says why.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Two new authorisation actions on kind 30346, `close` and `force-close`,
each naming one channel and open for three days. The operator's node acts
on each once: a mutual close to the onchain wallet's first address, or
publishing our own commitment. Any member proposes one from the channel's
menu on the wallet screen.
Co-signers sign our own commitment only under a force-close
authorisation, only after rebuilding it, and never one more than a step
behind the counterparty commitment they last signed: anything older is
revoked. A four-device test force-closes with a signature that spends the
funding output.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A member proposes a payment from the new send screen: an invoice, the
amount when it names none, and a fee limit. The group signs it as an
authorisation (kind 30346, `pay`) like any decision; the summary leads
with the amount and the most the fee can be.
Every co-signer reads the signed authorisations as budgets, so the
operator can only make payments the group signed for. An expired one
closes to new HTLCs but still settles what is in flight. The operator's
node pays each authorised payment once.
The co-signers now also hold what the group offers at once under the
statement's in-flight cap, which nothing checked while nothing could be
offered.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wallet screen's title and the row on the group's detail screen read
"<group name> onchain wallet" instead of "Group onchain wallet". A room
with no subject, and the wallet screen before its room has loaded, keep
the generic name.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A member asks for an invoice (kind 30347) from the new receive screen; the
operator's running node finds each request no invoice answers yet, makes
one with lightning-kmp's `createInvoice`, and sends it to the room (kind
30348). Every member files an invoice only from the operator, and only if
it pays the node the group's statement names, so the screen never shows
an invoice that pays somebody else.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The running node sends a snapshot (kind 30345) as it starts, whenever its
channels or payments change, and every five minutes otherwise: the channels,
the payments it has seen, and the round-one label assignments, so whoever
operates next signs under the verification nonces this operator published.
A member believes a snapshot only from the operator the group elected for
the term it names, about the node the statement names. It files the newest
(schema 30) and keeps every payment, and the wallet screen shows balance,
channels and payments, each channel checked against what this device last
co-signed for it.
The invoice wire and its table land here too, because they share the
schema bump; Phase 11 puts them to use.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The group's detail screen loses its "Nostr profile", "Relays" and "Posts"
rows, and the six screens behind them go with them: the profile, its
editor, the relay lists, their editor, the posts and the composer. So do
the readers they stood on (GroupNostrProfile, GroupRelayList, GroupPost),
their ChatRepository methods, and 97 strings.
Two things go that were not named, because nothing else reaches them.
BroadcastGroupSignedEventScreen was only opened from those three screens,
so the app no longer sends a group-signed event to a relay, and
EventPublishTransport goes with it. "Propose event" accepted only a
profile, a post or a relay list, so it would refuse every paste;
ProposeGroupEventScreen and GroupEventProposal are removed, and with them
the detail screen's canEditNostrProfile gate. What is left of that block
is the wallet row, shown in Marmot rooms only.
The transcript keeps what it already holds. The three message types stay
as private legacy names in GROUP_IDENTITY_TYPES, as the curated-lists
types did, so rows already written stay system lines. A profile or relay
list arriving in a room now applies to nothing, so a signing session an
older build opened for one ends without a raw-JSON bubble. A kind:1 falls
through to "unsupported", which is what it was before posts existed.
ProposedEvent no longer describes the three kinds.
GroupSignedWorkRowsJvmTest now covers the wallet row and the absence of
the removed rows. The chronicle tests still use a profile, a relay list
and a post as their kinds; they compare GroupSignedEvent rows, which are
unchanged, so only ChronicleTestKinds' account of why is corrected.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The wallet statement (30338) binds the onchain wallet it closes to, the
Iceberg key and its holders, the node its seed produces, the LSP and a
policy, and every member checks it against what they can recompute. The
proposer sends the node seed to each participant encrypted to them, and
a device files it only after deriving the node id itself (schema 28).
The operator statement (30339) carries a term that only goes up; the
newest term wins, a tie goes to the lower event id, and only the
operator can step down. Both stay inside the group. A Lightning wallet
screen walks a room from no onchain wallet to an elected operator.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
IcebergRitualManager runs the Iceberg DKG in the group's Marmot room over
the people who hold the onchain wallet's key, behind the same three
approval gates the ChillDKG ceremony has. Contributions travel NIP-44
encrypted to the members who will hold them. Schema 27 adds the session
and message tables; a screen and transcript lines show who has done what.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupChainClients gives each network its own Electrum connection: the
node's client for the node's network, and one made on first use for any
other. The wallets and the transaction watcher take their client from
it, the wallet routes carry their chain, and a second wallet row for the
Lightning wallet's test network sits behind GroupLightningRollout, which
is off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing navigated to the artifact, chapter, dialect or translation screens:
ArtifactDetailRoute, AddArtifactRoute and AddDialectRoute were never built,
and the other six were only reached from inside those screens. Removed with
their view models, UI states, routes, nav host entries, the repository behind
them, TranslationScaffold, DetailRow, and the 65 strings only they used. The
group details screen loses the document repository it stored and never read.
The string catalogue test now checks its escapes on a string that stays.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was no way to end a ceremony: ChillDKG has no "no" short of it, and
the approval screens pointed at an abandon action on the ritual screen that
did not exist. ChillDkgRitualManager.abandon now ends a running ceremony this
device is in, filing and broadcasting the same FAILURE a fault sends, and the
ceremony screen offers it behind a confirmation.
record() now ignores a FAILURE from anyone outside the ceremony. In a
parent's room every member can read a subgroup's proposal, so any of them
could otherwise end it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CreateSharedKeyScreen takes the quorum and a single button, and nothing
else. It refuses a Marmot room and a group of one with a reason, hands over
to a ceremony the group already has rather than offering a second, and
replaces itself with the ceremony once it is opened so back never returns to
an offer. The group details' Shared key button and the card shown when a
robust group was created without its ceremony both lead here.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A guarded wallet's coins have a spender outside the room: a guardian can
take a coin the child's open spend wants, and the child can move one a
guardian's wants. Neither winner is a row in the loser's room, so the loser
sat signed and rebroadcast forever. The watcher now asks the chain, for a
signed spend Electrum has not heard of, which transaction took each coin;
once that one confirms, recordReplaced marks the spend replaced and settles
every other spend of the coin, as recordConfirmed does for the room's own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GroupSpend checks a spend as a guardian would sign it: every input under
the descendant's account, locked by the leaf's 12 blocks, signed over the
script-path sighash as the key the ancestor's walk reaches, and witnessed
with the leaf and its control block. The builder waits out the lock and
weighs the leaf; the signing manager proposes, accepts, signs and completes
it, and every signer reads the descendant's wallet from its own copy of the
statement. A guarded wallet row on the ancestor's wallet screen opens the
send form for it. Schema v27 adds GroupTransaction.guardedChatRoomId.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>