feat(wallet): every signer judges a member's request by the group's policy (Phase 5)

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>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-10-24 10:42:25 +02:00
1 parent a1b74ae818
commit b57979f577
8 files changed
+242 -13

No files matched your search

@@ -639,6 +639,10 @@
<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="s_would_refuse_this_request_asked_before">%1$s would refuse this request: it was asked before the group said it guards members' wallets. Asking again makes a new one.</string>
<string name="s_has_changed_its_delay_since_you_asked">%1$s has changed its delay since you asked. Asking again makes a new request at the new delay.</string>
<string name="s_has_stopped_guarding_members_wallets_discard">%1$s has stopped guarding members' wallets, so this request won't be signed. You can discard it.</string>
<string name="s_would_refuse_this_request">%1$s would refuse this request. Asking again makes a new one.</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>