Commit Graph
839 Commits
Author SHA1 Message Date
Kgothatso Ngako da0841fd5e Merge branch 'claude/remove-nostr-relays-posts-fc5580' into bennu 2026-10-23 18:28:30 +02:00
Kgothatso Ngako 79f2ec3d4d Merge branch 'bennu' into claude/remove-nostr-relays-posts-fc5580
# Conflicts:
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/model/ChatMessage.kt
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/repository/DatabaseChatRepository.kt
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/nostr/wallet/GroupWallet.kt
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/repository/ChatRepository.kt
2026-10-23 18:28:25 +02:00
Kgothatso NgakoandClaude Opus 5.5 7093adc0ee feat(wallet): a group's onchain wallet is named for its group
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>
2026-10-23 18:26:44 +02:00
Kgothatso NgakoandClaude Opus 5.5 0449293963 fix(marmot): a direct message's envelope is opened, not taken for a signing decline
FrostSigningEvents.DECLINE and MarmotDirectMessage.ENVELOPE_KIND are both
30330. Recognising protocol kinds first (ceremony-creation Phase 6) returned
before the direct-message branch, so every direct message in a
current-profile room was dropped unopened. A 30330 that holds a gift wrap is
an envelope; only one that does not is a decline.

ProtocolKindDispatchJvmTest now opens an envelope through
fromGroupEventResult, which no test did before.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:13:02 +02:00
Kgothatso Ngako 79470dab1a Merge branch 'claude/taproot-group-hierarchy-spending-7a37ac' into bennu 2026-10-23 18:07:20 +02:00
Kgothatso NgakoandClaude Opus 5.5 7746f3d17f feat(wallet): offer guarded wallets on mainnet
GroupWalletRollout.GUARDIANS_ON_MAINNET is on, lifted by decision ahead of
the signet run its condition named. The mixed-version risk stays open and
is said so in the gate and the guardians note; guardian spends on mainnet
are held to MAINNET_CAP like every other spend.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 18:06:19 +02:00
Kgothatso NgakoandClaude Opus 5.5 af4304aaae fix(dkg): a parent's second subgroup is not shown its first one's signing sessions
A subgroup's ceremony runs in its parent's room, so that room holds a
certificate and a key-state signing session for every subgroup made under
it. The ceremony screen took the newest of each kind regardless of which
subgroup it was for, so a parent's second subgroup opened on the first
one's finished certificate, with "Ask the parent group to certify"
already disabled.

Each session is now matched on what its event names: the certificate on
the subgroup's threshold key, the key state on the ceremony. The newest
match still wins, so a failed request can be asked for again.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 17:59:34 +02:00
Kgothatso NgakoandClaude Opus 5.5 b21f4c4d2c refactor(groups): remove the group's nostr profile, relays and posts
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>
2026-10-23 17:56:58 +02:00
Kgothatso Ngako 61c6f0b68e Merge remote-tracking branch 'origin/bennu' into claude/taproot-group-hierarchy-spending-7a37ac
# Conflicts:
#	composeApp/schemas/com.machankura.bennu.compose.database.BennuDatabase/27.json
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/BennuDatabase.kt
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/database/model/ChatMessage.kt
2026-10-23 17:41:56 +02:00
Kgothatso NgakoandClaude Opus 5.5 4023e9c08b fix(dkg): the creation screen's title before it knows the room's name (Phase 9)
Found on the emulators: refusing a Marmot room left the app bar reading
"Shared key for " and nothing. It reads "Shared key" until the room is
loaded. The plan now records what was checked on the three emulators that
found the bug, and what was not.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 17:12:37 +02:00
Kgothatso NgakoandClaude Opus 5.5 2d57f9b4c9 refactor(db): drop the nip30303 document tables (Phase 8)
Schema 26 -> 27. MIGRATION_26_27 deletes the chat lines the removed document
arms wrote and the unsupported bubbles a subgroup's ceremony left in its
parent's chat -- found by the kind of the inner event behind them, so an
unknown payload's bubble stays -- then drops the twelve document tables,
children before parents, and MarmotInnerEvent.payloadEventId. Manual,
because it deletes rows. GroupSignedEvent keeps whatever the group signed,
and the chronicle keeps its column and its lines.

The nip30303 events and tags, the Mantra entities and DAOs, the repository
interface and the Markdown helper go with the tables, and so do the tests
that only exercised them. The key-state test signs posts where it signed
dialects. The migration test builds v26 from the exported schema and checks
the result against v27's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 17:04:00 +02:00
Kgothatso NgakoandClaude Opus 5.5 76f1df4e58 refactor: stop handling nip30303 documents, and keep the member chronicle quiet (Phase 7, part 2)
The inbound path no longer opens document submissions or applies document
kinds, and ProposedEvent no longer describes them. Nothing could send one:
the screens that did were removed in part 1.

The member chronicle carried nothing but document kinds. It is kept, and
what it may carry is now a ChronicleKinds value -- empty in the app, so a
device asks for no chronicle, sends none, and applies nothing from a page an
older build sends. The row-rebuild fallback and translation supersession go
with the documents. The chronicle's tests exercise the machinery with a kind
set of their own; the round trip through document rows is deleted with the
rows, as are the document-only apply test and the tests of translation
supersession.

Tests that used a dialect as an arbitrary signed payload now use a post.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:59:03 +02:00
Kgothatso NgakoandClaude Opus 5.5 68a86b4d77 refactor: remove the unreachable nip30303 document screens (Phase 7, part 1)
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>
2026-10-23 16:42:15 +02:00
Kgothatso NgakoandClaude Opus 5.5 02afa1eaec fix(marmot): ceremony and signing messages are recognised before anything sharing their kind (Phase 6)
A subgroup's ceremony runs in its parent's Marmot room, where its kinds
30310-30312 are also nip30303 document kinds. Round 1 (30312) was read as a
document submission first, failed to parse, and reached every other admin's
chat as an unsupported bubble of raw hex; the proposal and host keys reached
the translation arms before the ceremony's own. fromGroupEventResult now
stores a protocol message and returns before any document handling, and
applyInnerEvent checks the protocol arms first.

The comments that called the overlap safe are corrected, and the
"No app logic to handle" line every application message logged at info is
now a debug line that does not read like a failure.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:40:12 +02:00
Kgothatso NgakoandClaude Opus 5.5 726adfc02c feat(dkg): a participant can abandon a key ceremony, and only a participant (Phase 5)
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>
2026-10-23 16:35:56 +02:00
Kgothatso NgakoandClaude Opus 5.5 66887767b8 feat(dkg): the ceremony screen shows a ceremony and never starts one (Phase 4)
DkgRitualRoute and the three approval routes now require the ceremony's id,
and the screen loses its start button, its quorum stepper and its fallback to
the room's newest ceremony. A transcript line naming no ceremony opens
nothing. The title is the ceremony's name rather than the room's, so a
subgroup's ceremony is not called after its parent.

Try again on a failed ceremony goes back to the screen that starts that kind:
the creation screen for a group's own key, or the subgroup picker filled in
from the ceremony that failed. Retrying a failed subgroup used to open a
whole-room ceremony in the parent's room.

A test counts the screens that open a ceremony, so a fourth is a decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:34:02 +02:00
Kgothatso NgakoandClaude Opus 5.5 cc01f4aab9 feat(dkg): one screen that starts a group's own key ceremony (Phase 3)
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>
2026-10-23 16:27:15 +02:00
Kgothatso NgakoandClaude Opus 5.5 69095ba4a8 fix(dkg): the ceremony screen keeps hold of its ceremony (Phase 2)
Three ways the shared-key screen could lose the ceremony it was showing, and
so offer to start one:

- initiate() ran again whenever the screen came back into view, resetting
  the state to no ceremony and stacking another set of watchers. It now runs
  once per view model.
- five coroutines each read the state, changed one field and wrote it back,
  one of them across a suspending query, so an old copy could overwrite a
  newer one. The state is now built by one flow and written in one place.
- an approval closed its screen as the button was pressed, cancelling the
  view model's scope and with it a publish still in flight. The screen now
  closes once the approval has gone out.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:22:46 +02:00
Kgothatso NgakoandClaude Opus 5.5 e259634513 fix(dkg): a Marmot room hosts its subgroups' ceremonies and never one of its own (Phase 1)
proposeRitual now refuses a ceremony with no parent in a Marmot room, and
acceptProposal drops one arriving there. A Marmot room's id is derived from
the key it already has, so a key of its own is one it could never use -- and
the shared-key screen offering to start one in a parent's room is how a
second, whole-room ceremony opened beside a subgroup's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 16:19:28 +02:00
Kgothatso NgakoandClaude Opus 5.5 29328b4c5f fix(wallet): settle a spend whose coins another room's transaction took
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>
2026-10-23 16:12:48 +02:00
Kgothatso NgakoandClaude Opus 5.5 2b44ebcbbc feat(wallet): a subgroup's transcript names the guardian that spent from it (Phase 8)
Whenever a guarded wallet's coins change, the wallet screen reads every used
address's history off Electrum, recognises a guardian's leaf in the witness
that spent a coin, and writes one transcript line per transaction saying
which group above took how much -- the child's only notice, since nobody in
its room signed it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:40:43 +02:00
Kgothatso NgakoandClaude Opus 5.5 00df58c1f3 feat(wallet): an ancestor's quorum spends a descendant's coins through its leaf (Phase 7)
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>
2026-10-23 15:37:21 +02:00
Kgothatso NgakoandClaude Opus 5.5 634f51f915 fix(wallet): read a PSBT's key fingerprint as unsigned
bitcoin-kmp reads a taproot derivation's fingerprint back from a serialised
PSBT as a signed int, so for any account whose fingerprint has its top bit
set -- half of them -- every member but the proposer refused every spend as
not the wallet's own. Compare the fingerprint as an unsigned 32-bit value.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:34:30 +02:00
Kgothatso NgakoandClaude Opus 5.5 e7a1ad260f feat(wallet): a guarded wallet is told to the groups above, and they watch it (Phase 6)
A member in both rooms carries a descendant's signed guarded statement into
an ancestor's MLS room as a 30333 notice, and can pass one on a generation
further. Every ancestor device believes it only when its own guardian root
reaches the key the statement names for it. The wallet screen lists the
guarded wallets below the group with what is within its reach, and the
statements this device can still carry up.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:26:19 +02:00
Kgothatso NgakoandClaude Opus 5.5 cbe5330cac feat(wallet): a subgroup opens a guarded wallet, and spends from it as before (Phase 5)
A room whose certificate grants guardian keys is offered a guarded wallet,
with a plain one beside it, on test networks; mainnet waits behind
GroupWalletRollout.GUARDIANS_ON_MAINNET. A spend's account is the one the
statement opened, so its own spends sign the guarded addresses' key path,
and wallets are watched per descriptor rather than per xpub.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:17:24 +02:00
Kgothatso NgakoandClaude Opus 5.5 606b4bb12f feat(wallet): a guarded wallet statement, and the account it opens (Phase 4)
An account knows its guardians and puts a leaf per guardian in every
address, internal key unchanged. The statement names them and carries the
certificate that granted them, and verifies only when the certificate
certifies this room and grants exactly those keys. A guarded statement
outranks a plain one for its account, and its first guardians stand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:15:37 +02:00
Kgothatso NgakoandClaude Opus 5.5 e32419f0d8 feat(subgroup): a birth certificate carries the parent's guardian keys (Phase 3)
The parent grants the child its own guardian key and every key its own
certificate carries, one step further each, as guardian tags. Every parent
signer recomputes the grant and drops a certificate proposal carrying any
other keys before it is shown; one carrying none still signs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:10:30 +02:00
Kgothatso NgakoandClaude Opus 5.5 6a4bea0cf4 test(wallet): an ancestor's shares spend a descendant's coin through its leaf (Phase 2)
Real ChillDKG, real FROST, judged by correctlySpends: a parent's leaf and a
grandparent's one level down both spend, sequence 11 does not, and the room
key's, the guardian root's, a sibling's and the next address's caches all
sign for keys the leaf does not name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:06:11 +02:00
Kgothatso NgakoandClaude Opus 5.5 d414cd104b feat(wallet): guardian keys a parent grants a subgroup, and the leaves they sit in (Phase 1)
GuardianDerivation: a group's guardian root, the child index, the grant a
certificate carries, the 12-block leaf, the caterpillar tree, the descriptor
fragment and the cache an ancestor signs a leaf with. Pinned vectors checked
against an independent implementation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 15:04:58 +02:00
Kgothatso Ngako e3839da53e Update icon 2026-10-23 14:02:33 +02:00
Kgothatso Ngako 409be6db28 Merge remote-tracking branch 'origin/bennu' into claude/satoshi-amount-group-wallet-a12572
# Conflicts:
#	composeApp/src/commonMain/kotlin/com/machankura/bennu/compose/wallet/GroupOnchainWallet.kt
#	composeApp/src/jvmTest/kotlin/com/machankura/bennu/compose/wallet/GroupOnchainWalletJvmTest.kt
#	docs/README.md
2026-10-23 12:51:52 +02:00
Kgothatso NgakoandClaude Opus 5.5 c07a5a834f fix(wallet): the send form follows the room's spends while it is open
The form read which coins and change addresses open spends hold once,
when it opened. A spend another member proposed while it was open still
looked free, so sending everything would ask the group to sign a second
spend of coins only one spend can have. The form now combines the chain
state with observeGroupTransactions, as the wallet screen does, and
re-reads both reservations on every change, as one state.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:44:48 +02:00
Kgothatso NgakoandClaude Opus 5.5 affb90be41 Merge branch 'claude/receive-address-rotation-4731b9' into bennu
The group wallet's address list: every paid receive address, the
current one and the two after it, any unused one handed out as a QR
code, and the used change addresses -- docs/group-wallet-addresses.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:34:28 +02:00
Kgothatso NgakoandClaude Opus 5.5 95962b724a test(wallet): a spend with change is described by its payment (Phase 5)
Every place a spend is described -- the proposal list and the wallet's
spend rows through ProposedSpend.summarize, the approval screen through
isChange, and the signed and confirmed transcript lines through
amountSent -- already reported the payment rather than payment plus
change. Nothing needed fixing; ProposedSpendTest and the end-to-end
spend test now hold each of them to it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:33:38 +02:00
Kgothatso NgakoandClaude Opus 5.5 9a319e1ef1 feat(wallet): the amount field says what can be spent and what is wrong (Phase 4)
The amount field shows its unit, how many sats are confirmed and free to
spend, and on mainnet the cap; a problem with the amount -- not whole,
too large, more than the group has, too small, over the cap -- is said on
the field in its error state instead of under the form. The send-everything
row is one 48dp toggleable target, and turning it off again finds the
amount typed. The wording of every reason is one function shared by the
field and the preview.

GroupSendScreenJvmTest types into the form on regtest and mainnet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:31:00 +02:00
Kgothatso NgakoandClaude Opus 5.5 8e7782261f feat(wallet): send an amount from the group's wallet on every network (Phase 2)
SEND_AN_AMOUNT kept every network on send-all until a release had shipped
with no mislabelled change, which no release could do while the gate was
closed. It is removed: the send screen always offers the switch and the
amount, and on mainnet the existing 100,000 sat cap bounds what a change
bug could put at risk. Phase 3's end-to-end test is what stands in for
the release the gate was waiting for.

The view model test no longer branches on the constant, and a mainnet
test holds an amount to the cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:26:10 +02:00
Kgothatso NgakoandClaude Opus 5.5 b712d6d835 feat(wallet): the used change addresses, under the receive ones (Phase 4)
GroupWalletState.changeAddresses lists the change addresses that have
been used, newest first -- never a current or a next one, since change
is chosen by a spend. The address list shows them in a section of their
own once there are any, with copy and nothing else.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:24:54 +02:00
Kgothatso NgakoandClaude Opus 5.5 eb1f126adf feat(wallet): hand out any unused address as a QR code (Phase 3)
Tapping the current or a next address on the list opens it in a sheet
-- the receive card's QR code, selectable text and copy, titled with the
index so a member can say which one they gave. A used address has copy
and nothing else: copying is for checking, a QR code is for being paid.

The sheet closes itself, with "Address N was just paid", when Electrum
reports a payment to the address it is showing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:23:05 +02:00
Kgothatso NgakoandClaude Opus 5.5 5c77853cfa feat(wallet): change goes to an address the group can find (Phase 3)
Two open spends with change both paid to the first unused change
address, since a spend waiting for signatures has not used it yet.
Change indices are now reserved like coins: reservedChangeIndices reads
the claims of every open spend, and the builder takes the lowest watched,
unused, unheld index. It chooses among generated addresses only, so
change never lands outside the window; CHANGE_LOOKAHEAD rises to 10 and
past it a spend with change returns TooManyOpen.

The change branch not having answered is FindingChange rather than
NothingToSpend, and change too small to send back is reported as
Built.absorbed and said in the preview.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:22:32 +02:00
Kgothatso NgakoandClaude Opus 5.5 5b06c84401 feat(wallet): a screen listing the group wallet's addresses (Phase 2)
GroupWalletAddressesScreen, pushed from an "All addresses" button in the
wallet screen's receive card: index, address, and what each has been
used for, newest first, with the current address on the secondary
container and a copy button on every row. Its view model reads the
wallet GroupOnchainWallets already holds, so the list costs no
subscriptions and agrees with the wallet screen about which address is
current.

FakeElectrum moves out of GroupOnchainWalletJvmTest so the view model's
test can drive a chain too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:19:47 +02:00
Kgothatso NgakoandClaude Opus 5.5 de76311e1e feat(wallet): the group wallet's receive addresses, as a list (Phase 1)
GroupWalletState.receiveAddresses: every paid receive address, the
current one, and ADDRESSES_AHEAD (2) after it, newest first -- reaching
the highest paid address even when a watch-only wallet was paid past
that. Null until Electrum has answered, as receiveAddress is.

The test fake now reports a status over a script's history rather than
its unspents, as Electrum does, so an address spent from stays used.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:15:48 +02:00
Kgothatso NgakoandClaude Opus 5.5 bc348419bc feat(wallet): read an amount as whole sats, or say why not (Phase 1)
The gated amount field read its text by dropping every non-digit, so
21000.5 became 210,005 sats and 0.0005 became 5. parseSats accepts
thousands grouping and refuses decimals, grouping that groups nothing,
non-ASCII digits and more sats than exist; the preview reports which.
The field shows plain digits grouped and keeps what was typed.

Also plans the rest in docs/group-send-an-amount.md: send-an-amount
opens on every network at once, held on mainnet by the existing cap.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 12:15:17 +02:00
Kgothatso NgakoandClaude Opus 5.5 96055da584 feat(wallet): call it the group onchain wallet
The wallet screen's title, the room's detail row, the button that opens
one and the proposal summary a member agrees to all said "group wallet".
They now say "group onchain wallet", which is what it holds, and agrees
with GroupOnchainWallet in the code. Sentence case, as every string is.
Resource keys are unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:51:36 +02:00
Kgothatso NgakoandClaude Opus 5.5 707e1465e2 fix(wallet): escape the brace Android's regex engine refuses
DERIVATION_PAYLOAD closed its JSON object with a bare `}`. The JVM reads
that as a literal; ICU, which backs Regex on Android, rejects the
pattern. It was a private val of FrostSigningManager, so the throw came
from the class initialiser, which Android does not retry: every signing
session on the device failed with NoClassDefFoundError until restart.
The first symptom was a ceremony that "couldn't ask the group to agree
its signing key".

The JVM suite cannot ask ICU, so RegexPortabilityJvmTest reads every
Regex literal out of the main source sets and holds it to the stricter
rule: a `}` is escaped, inside a class, or the end of a quantifier. With
the old pattern restored it fails on FrostSigningManager.kt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 11:12:14 +02:00
Kgothatso NgakoandClaude Opus 5.5 cd7aa36cd0 Merge remote-tracking branch 'origin/bennu' into claude/group-chain-wallet-plan-93f0e1
Every conflict was the curated-lists removal on bennu meeting a wallet
line added beside it: the removal is taken and the wallet lines kept.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 10:04:53 +02:00
Kgothatso NgakoandClaude Opus 5.5 b8194a4ba3 refactor(wallet): GroupChainWallet is GroupOnchainWallet
And its registry, GroupChainWallets, is GroupOnchainWallets, with the
files, the test and the plan's references following.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 09:52:25 +02:00
Kgothatso NgakoandClaude Opus 5.5 f83fe35a45 feat(wallet): ship behind the rollout gates (Phase 10)
GroupWalletRollout holds the three gates, each with what lifts it. The
flag is on, its condition met. Send-an-amount is off, so the form sends
everything confirmed to one address and says so. A spend proposed from
this device on mainnet may send at most 100,000 sats; test networks
have no cap. The gates are on the composer and nothing else: a device
behind them still accepts, shows and signs what another member
proposes, through every check GroupSpend makes.

The plan is marked built, with its table of where the build chose
differently. Full JVM suite: 1474 tests, none failing; the Android
target compiles; every M3 budget is met.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:52:16 +02:00
Kgothatso NgakoandClaude Opus 5.5 0db1fe8fc8 feat(wallet): the group's spends on its wallet screen (Phase 9, part 2)
Every spend the room proposed, newest first, for every member whether
or not they have a node: what it sends and where it has got to --
waiting for signatures, abandoned, signed, sent (reported back by
Electrum, not merely broadcast), confirmed, or replaced by a later
spend. A signed spend Electrum has not reported can be sent again; a
signed, unconfirmed one can be bumped to twice its feerate, a new
session over the same coins that whichever confirms settles. Each row
opens its signing session.

Full JVM suite: 1473 tests, none failing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:48:19 +02:00
Kgothatso NgakoandClaude Opus 5.5 58da7c1285 feat(wallet): broadcast signed spends and settle what a confirmation decides (Phase 9, part 1)
GroupTransactionWatcher, one per identity beside its wallets: every
signed spend still on its way is sent from this device too, sent again
every ten minutes while Electrum has not reported it -- its broadcast
reports success whatever the server said -- and followed to a
confirmation. FrostSigningManager.recordConfirmed then settles every
other spend of the same coins: one still collecting is abandoned as
spent by another transaction, one already signed is marked replaced
rather than failed, and the room gets one line saying it confirmed.

GroupSpendBuilder.bump re-spends the same coins at a higher feerate,
the extra taken from the change or, for a send-all, the one payment.

The test caught a stale write: a pass followed each spend from the list
it started with, so settling one spend was undone by writing the next
back from its old copy. follow() reads its row again first.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:43:19 +02:00
Kgothatso NgakoandClaude Opus 5.5 b1d5963b53 feat(wallet): a form to propose a spend from the group's wallet (Phase 8, part 2)
GroupSendRoute and GroupSendScreen, behind a Send button on the wallet
screen for a member who holds a share and has a node to see the coins
with. Address, amount or send everything, and a feerate prefilled from
Electrum's six-block estimate. The preview is GroupSpendBuilder over the
same inputs the proposal is built from -- what leaves, the fee, what
comes back as change, or why it cannot be built -- and proposing moves
onto the signing session, replacing the form.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-23 08:38:19 +02:00