refactor: no node behind a recovery phrase (wallet removal, Phase 6)

PhraseKeys derives a phrase's nostr key (NIP-06, m/44'/1237'/0'/0/0) and
its profile id (hash160 of m/50'/0', the old node key) with bitcoin-kmp's
DeterministicWallet. ForkCompatibilityTest's Phase 0 pins pass unchanged
through it, so the same phrase is the same person with the same
preference files.

No profile starts a node: Identity.business, startupNode and its state
machine, the platform start/schedule/stop actuals, LightningApplication,
BusinessManager.initialize, the NFC hooks and POST_NOTIFICATIONS go. A
switch is clearing the identity and nothing else. Copy that promised funds
or a wallet is reworded, and the switcher's badge says Recovery phrase.

Forgetting a phrase profile is still refused (now PhraseAttached): the
phrase would derive the key again, and offering it is new UI.

iosMain was edited without an iOS build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Kgothatso NgakoandClaude Opus 5.5 committed 2026-11-18 16:03:47 +02:00
1 parent 9c2cbf0295
commit 84be1c5beb
40 files changed
+255 -618

No files matched your search

@@ -70,7 +70,7 @@
<string name="display_recovery_phrase">Display recovery phrase</string>
<string name="don_t_sign">Don't sign</string>
<string name="download">Download</string>
<string name="download_and_securely_store_everything">Download and securely store everything needed to recover this profile and the coins it holds.</string>
<string name="download_and_securely_store_everything">Download and securely store everything needed to recover this profile.</string>
<string name="edit_profile">Edit profile</string>
<string name="emergency_kit">Emergency kit</string>
<string name="ended">ENDED</string>
@@ -93,7 +93,7 @@
<string name="how_many_admins_have_to_approve_a_change">How many admins have to approve a change?</string>
<string name="how_many_members_will_it_take_to_sign">How many members will it take to sign?</string>
<string name="i_have_saved_my_recovery_phrase_somewhere">I have saved my recovery phrase somewhere safe.</string>
<string name="i_understand_that_if_i_lose_this_phone_and">I understand that if I lose this phone and my recovery phrase, I lose this profile and the funds in its wallet.</string>
<string name="i_understand_that_if_i_lose_this_phone_and">I understand that if I lose this phone and my recovery phrase, I lose this profile.</string>
<string name="if_you_are_new_to_torch_or_just_want_to">If you are new to Giza or just want to create a fresh profile</string>
<string name="input_npub_or_nip05">Input npub... or nip05</string>
<string name="introduce_yourself">Introduce yourself</string>
@@ -140,7 +140,7 @@
<string name="network_relays">Network relays</string>
<string name="no_proposal_is_being_signed">No proposal is being signed.</string>
<string name="no_proposal_is_waiting_on_members">No proposal is waiting on members.</string>
<string name="no_wallet_is_open_on_this_device_so_there">No wallet is open on this device, so there is no phrase to show.</string>
<string name="no_wallet_is_open_on_this_device_so_there">This profile was not opened from a recovery phrase on this device, so there is no phrase to show.</string>
<string name="not_backed_up_yet">Not backed up yet</string>
<string name="new_chat">New chat</string>
<string name="next">Next</string>
@@ -231,7 +231,6 @@
<string name="couldn_t_load_this_group">Couldn't load this group.</string>
<string name="couldn_t_read_your_keys">Couldn't read your keys.</string>
<string name="couldn_t_start_the_key_ceremony">Couldn't start the key ceremony.</string>
<string name="startup_error">Startup error</string>
<string name="taking_part_with_these_members">Taking part with these members</string>
<string name="tap_to_load">Tap to load</string>
<string name="tell_friends_to_join_you_so_your_feed_stays">Tell friends to join you so your feed stays lively and fresh.</string>
@@ -240,8 +239,8 @@
<string name="the_ceremony_was_abandoned">The ceremony was abandoned.</string>
<string name="the_group_can_hold_one_key_together_split_so">The group can hold one key together, split so that no single member holds it. Signing with it takes a quorum.</string>
<string name="the_group_has_a_shared_key">The group has a shared key.</string>
<string name="the_recovery_phrase_sometimes_called_a_seed">The recovery phrase (sometimes called a seed) is a list of 12 English words. It is the only way back to this profile: the key that signs as you, and the wallet that holds your coins, are both derived from it.\n\nOnly you have this phrase. Keep it private — nobody from Giza will ever ask you for it.\n\nDo not lose it. Write it down and keep it somewhere safe that is not this phone. If you lose both the phone and the phrase, this profile and its funds are gone for good.</string>
<string name="these_are_your_keys_keep_them_safe_so_they">These are your keys. Keep them safe so they can keep unlocking this profile and its coins, even when you lose or change your phone.</string>
<string name="the_recovery_phrase_sometimes_called_a_seed">The recovery phrase (sometimes called a seed) is a list of 12 English words. It is the only way back to this profile: the key that signs as you is derived from it.\n\nOnly you have this phrase. Keep it private — nobody from Giza will ever ask you for it.\n\nDo not lose it. Write it down and keep it somewhere safe that is not this phone. If you lose both the phone and the phrase, this profile is gone for good.</string>
<string name="these_are_your_keys_keep_them_safe_so_they">These are your keys. Keep them safe so they can keep unlocking this profile, even when you lose or change your phone.</string>
<string name="this_device_holds_no_phrase_for_the_profile">This device holds no phrase for the profile that is signed in.</string>
<string name="this_decides_who_can_change_the_group_later">This decides who can change the group later. You can't switch afterwards.</string>
<string name="this_group_has_not_been_asked_to_sign">This group has not been asked to sign anything yet.</string>
@@ -283,7 +282,7 @@
<string name="what_should_people_know_about_you">What should people know about you?</string>
<string name="what_vibrations_do_you_want_to_send_out">What vibrations do you want to send out?</string>
<string name="what_will_be_discussed_in_this_chat_room">What will be discussed in this chat room.</string>
<string name="write_down_and_secure_the_12_word_phrase">Write down and secure the 12 word phrase that this profile and its wallet are derived from.</string>
<string name="write_down_and_secure_the_12_word_phrase">Write down and secure the 12 word phrase that this profile is derived from.</string>
<string name="who_will_you_be_passing_the_aux_to">Who will you be passing the aux to?</string>
<string name="you">You</string>
<string name="you_agreed">You agreed.</string>
@@ -298,7 +297,7 @@
<string name="yolo">YOLO</string>
<string name="you_will_be_in_full_control_of_this_profile">You will be in full control of this profile. If you would like to use it for the long term please remember to backup the profile/keys.</string>
<string name="your_profile_is_almost_ready_just_getting_it">Your profile is almost ready... just getting it's first cryptographic signature together.</string>
<string name="your_share_of_it_is_on_this_device_only_your">Your share of it is on this device only. Your wallet backup restores it — nobody else's share can.</string>
<string name="your_share_of_it_is_on_this_device_only_your">Your share of it is on this device only. Nobody else's share can stand in for it.</string>
<string name="add_people_to">Add people to %1$s</string>
<string name="ask_all_again">Ask all %1$s again</string>
@@ -388,9 +387,9 @@
<string name="a_password_protected_key_ncryptsec_is_not">A password-protected key (ncryptsec) is not supported yet. Decrypt it in the app it came from and paste the nsec.</string>
<string name="enter_a_recovery_phrase_or_an_nsec_to_sign_in">Enter a recovery phrase or an nsec to sign in.</string>
<string name="paste">Paste</string>
<string name="recognised_as_a_nostr_secret_key_no_wallet">Recognised as a nostr secret key. No wallet comes with it.</string>
<string name="recognised_as_a_recovery_phrase_it_also">Recognised as a recovery phrase. It also restores the wallet.</string>
<string name="once_restored_here_stop_using_this_phrase">Once it is restored here, stop using this phrase in any other app or on any other device. One wallet running in two places at once can lose funds.</string>
<string name="recognised_as_a_nostr_secret_key_no_wallet">Recognised as a nostr secret key.</string>
<string name="recognised_as_a_recovery_phrase_it_also">Recognised as a recovery phrase.</string>
<string name="once_restored_here_stop_using_this_phrase">Giza keeps no wallet. Restoring the phrase here brings back the profile it signs as, and nothing else.</string>
<string name="recognised_as_a_public_key_you_will_see">Recognised as a public key. You will see this profile and the people it follows; messages stay closed and nothing can be sent. Paste the nsec later to open it.</string>
<string name="recovery_phrase_nsec_or_npub">Recovery phrase, nsec or npub</string>
<string name="sign_in_with_a_recovery_phrase_an_nsec_or">Sign in with a recovery phrase, an nsec, or an npub to look around</string>
@@ -428,7 +427,7 @@
<string name="nostr_secret_key">Nostr secret key</string>
<string name="remove_the_key_from_this_device_the_profile">Remove the key from this device. The profile stays on the relays.</string>
<string name="store_the_nsec_that_signs_as_this_profile">Store the nsec that signs as this profile. There is no phrase behind it: the key is the whole backup.</string>
<string name="the_nsec_is_the_key_that_signs_as_you_this">The nsec is the key that signs as you. This profile was signed in with it rather than made from a recovery phrase, so there is no phrase to write down and no wallet attached: the key is the whole of the backup.\n\nOnly you have it. Keep it private — nobody from Giza will ever ask you for it.\n\nDo not lose it. Store it somewhere safe that is not this phone. If you lose both the phone and the key, this profile is gone for good.</string>
<string name="the_nsec_is_the_key_that_signs_as_you_this">The nsec is the key that signs as you. This profile was signed in with it rather than made from a recovery phrase, so there is no phrase to write down: the key is the whole of the backup.\n\nOnly you have it. Keep it private — nobody from Giza will ever ask you for it.\n\nDo not lose it. Store it somewhere safe that is not this phone. If you lose both the phone and the key, this profile is gone for good.</string>
<string name="this_device_holds_no_key_for_the_profile">This device holds no nostr secret key for the profile that is open. If it was made from a recovery phrase, the phrase is its backup.</string>
<string name="unlocking_your_key">Unlocking your key…</string>
<string name="you_have_not_backed_up_your_nostr_secret_key">You have not backed up your nostr secret key</string>
@@ -436,19 +435,16 @@
<string name="you_said_you_stored_it">You said you stored it</string>
<!-- The bar on the note composer, which had no bar before it had a back button. -->
<string name="new_note">New note</string>
<!-- Several profiles on a device, docs/multiple-profiles.md. The startup screen's literals,
with "wallet" kept only where a wallet is what is starting. -->
<!-- Several profiles on a device, docs/multiple-profiles.md. The startup screen's literals. -->
<string name="choose_a_profile">Choose a profile</string>
<string name="could_not_load_the_profiles_on_this_device">Could not load the profiles on this device</string>
<string name="decrypting">Decrypting…</string>
<string name="opening_profile">Opening profile…</string>
<string name="preparing_profiles">Preparing profiles…</string>
<string name="starting_wallet">Starting wallet…</string>
<string name="unlock_to_continue">Unlock to continue</string>
<!-- The switcher: the profiles on this device, and what the device holds for each. -->
<string name="loading_profiles">Loading profiles…</string>
<string name="switch_profile">Switch profile</string>
<string name="wallet">Wallet</string>
<!-- Adding a profile from inside: the two rows under the list, and the duplicate that switches. -->
<string name="create_a_new_profile">Create a new profile</string>
<string name="sign_in_with_a_key">Sign in with a key</string>
@@ -461,12 +457,4 @@
<string name="you_already_have_a_chat_with_s">You already have a chat with %1$s.</string>
<string name="checking_whether_s_can_receive_messages_here">Checking whether %1$s can receive messages here.</string>
<string name="s_hasn_t_set_up_encrypted_messaging_yet">%1$s hasn't set up encrypted messaging yet. Try again later, or ask them to open Giza.</string>
<!-- The group's on-chain wallet. -->
<!-- The group's on-chain wallet, named for its group: "Treasury onchain wallet". -->
<!-- A subgroup's wallet policy, chosen by its parent at birth: docs/subgroup-wallet-policy.md -->
<!-- A guardian's delay in blocks and roughly in time: docs/guardian-delay.md, D5 -->
<!-- A member's guarded wallet: docs/member-guarded-wallets.md -->
</resources>