feat(wallet): a member asks only an open group, and builds under its policy (Phase 4)

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>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-10-24 10:35:44 +02:00
1 parent b9c69589c3
commit a1b74ae818
12 files changed
+160 -10

No files matched your search

@@ -639,6 +639,8 @@
<string name="this_group_s_guardian_keys_can_t_be_read_to_guard_a_wallet">This group's guardian keys can't be read by this version of the app.</string>
<string name="member_wallets_are_not_offered_on_this_network">Guarded wallets for members aren't offered on this network yet.</string>
<string name="this_profile_cannot_watch_its_own_coins">This profile has no wallet of its own to watch the chain with, so it couldn't see its own coins.</string>
<string name="this_group_doesn_t_guard_members_wallets">This group doesn't guard members' wallets.</string>
<string name="this_group_has_stopped_guarding_members_wallets">This group has stopped guarding members' wallets.</string>
<string name="you_have_no_guarded_wallets">You have no guarded wallets.</string>
<string name="waiting_for_someone_in_s_to_put_it_to_the_group">Waiting for someone in %1$s to put it to the group</string>
<string name="s_is_signing">%1$s is signing</string>