From 4f3f0da3ca756737f586d12493f8a13b65bd83b6 Mon Sep 17 00:00:00 2001 From: Kgothatso Ngako Date: Wed, 18 Nov 2026 10:46:57 +0200 Subject: [PATCH] feat: Giza in everything a person reads and on the wire (fork, Phase 4) - Strings: app_name and the giza key say Giza, as do the eight values that named Bennu. Two keys that contained the name are renamed. Two messages that meant "has no Marmot key package yet" now say so, since a Bennu user counts. - Restore: when a recovery phrase is recognised, the sign-in screen says to stop using it anywhere else. A seed running in Bennu and Giza at once is two copies of one Lightning wallet, which can lose funds. - Desktop: the window title and the unlock heading come from the catalogue. The installers are named Giza (giza on Linux), with a fixed Windows upgrade UUID of their own so a Giza MSI never upgrades a Bennu one. - iOS: PRODUCT_NAME and the product reference are Giza.app. - Wire: the client tags are Giza and giza. Nothing compares them. - The twelve bennu/ derivation tags stay as they are. They are hash inputs like mantra/, and a Bennu peer and a Giza peer derive the same keys through them. Each now has a note saying so. The rebrand-history comments count four. jvmTest: 1643 run, 0 failed, 2 skipped. compileDebugKotlinAndroid passes. m3-audit: all budgets met. It differs from the baseline only by the new restore line (one more stringResource and one more bodyMedium). Co-Authored-By: Claude Opus 5.5 --- composeApp/build.gradle.kts | 13 +++++++++- .../src/androidMain/res/values/strings.xml | 2 +- .../composeResources/values/strings.xml | 24 ++++++++++--------- .../repository/DatabaseMarmotRepository.kt | 2 +- .../compose/managers/ChillDkgRitualManager.kt | 5 ++-- .../managers/GroupLightningCoSigner.kt | 5 +++- .../managers/GroupLightningDerivation.kt | 2 +- .../compose/managers/GroupWalletDerivation.kt | 6 ++++- .../compose/managers/GuardianDerivation.kt | 1 + .../mobi/giza/compose/managers/IcebergDkg.kt | 3 +++ .../managers/MemberWalletDerivation.kt | 5 +++- .../compose/managers/SharedKeyDerivation.kt | 8 ++++--- .../mobi/giza/compose/network/UserAgent.kt | 4 ++-- .../compose/nostr/DirectMessagePeerSync.kt | 2 +- .../kotlin/mobi/giza/compose/nostr/Relays.kt | 11 +++++---- .../nostr/wallet/MemberWalletRequestEvent.kt | 2 +- .../AddMemberToChatRoomConfirmationScreen.kt | 2 +- .../giza/compose/ui/composable/HomeScreen.kt | 16 +++++++------ .../ui/composable/KeyRecoveryScreen.kt | 2 +- .../compose/ui/composable/LandingScreen.kt | 4 ++-- .../ui/composable/NostrSecretScreen.kt | 4 ++-- .../ui/composable/ProfilePreviewScreen.kt | 4 ++-- .../compose/ui/composable/SignInScreen.kt | 9 +++++++ ...ddMemberToChatRoomConfirmationViewModel.kt | 2 +- .../view/model/ChatRoomMessagingViewModel.kt | 2 +- .../ui/view/model/ProfilePreviewViewModel.kt | 2 +- .../query/NostrEventFilterQueryTest.kt | 4 ++-- .../jvmMain/kotlin/mobi/giza/desktop/Main.kt | 13 +++++++--- .../compose/database/GizaDatabaseJvmTest.kt | 2 +- .../identity/AddProfileFromInsideJvmTest.kt | 4 ++-- .../compose/identity/IdentitySwitchJvmTest.kt | 4 ++-- .../compose/identity/IdentityWriterJvmTest.kt | 4 ++-- .../MultipleProfilesRoundTripJvmTest.kt | 4 ++-- .../identity/NpubPreviewRoundTripJvmTest.kt | 4 ++-- .../identity/NsecRestoreRoundTripJvmTest.kt | 4 ++-- .../identity/SeedCredentialsJvmTest.kt | 4 ++-- .../managers/GroupLightningRegtestJvmTest.kt | 2 +- .../LiquidityPurchaseRegtestJvmTest.kt | 2 +- .../composable/ProfilePreviewScreenJvmTest.kt | 4 ++-- .../model/ProfilePreviewViewModelJvmTest.kt | 2 +- iosApp/Configuration/Config.xcconfig | 2 +- iosApp/iosApp.xcodeproj/project.pbxproj | 6 ++--- 42 files changed, 128 insertions(+), 79 deletions(-) diff --git a/composeApp/build.gradle.kts b/composeApp/build.gradle.kts index 1e062768..eb84f847 100644 --- a/composeApp/build.gradle.kts +++ b/composeApp/build.gradle.kts @@ -339,8 +339,19 @@ compose.desktop { nativeDistributions { targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb) - packageName = "mobi.giza.desktop" + // The installers' product name, which is what the OS shows. It was the package + // name, `com.machankura.bennu.desktop`, until the Giza fork. + packageName = "Giza" packageVersion = "1.0.0" + linux { + packageName = "giza" + } + windows { + // Fixed, so one Giza MSI upgrades another, and its own, so it never upgrades + // a Bennu MSI (docs/giza-rebrand.md, Phase 4). Never change it: a new value + // makes the next release install beside the old one instead of over it. + upgradeUuid = "43e5b023-66d9-4c8c-ad31-efe28a96286b" + } } } } diff --git a/composeApp/src/androidMain/res/values/strings.xml b/composeApp/src/androidMain/res/values/strings.xml index bb141374..83fe729d 100644 --- a/composeApp/src/androidMain/res/values/strings.xml +++ b/composeApp/src/androidMain/res/values/strings.xml @@ -1,5 +1,5 @@ a - Bennu + Giza Channels watcher Shows up when you need to start Phoenix. diff --git a/composeApp/src/commonMain/composeResources/values/strings.xml b/composeApp/src/commonMain/composeResources/values/strings.xml index cccb40f5..7cb3f65b 100644 --- a/composeApp/src/commonMain/composeResources/values/strings.xml +++ b/composeApp/src/commonMain/composeResources/values/strings.xml @@ -11,7 +11,7 @@ actual 334 strings sat inside composables. The launcher label is a separate resource, in androidMain/res/values/strings.xml, - which is what AndroidManifest.xml points at. Both now say "Bennu". + which is what AndroidManifest.xml points at. Both now say "Giza". Externalising the 334 is the rest of phase 4 in docs/material-design-conformance.md. They land here. @@ -27,7 +27,8 @@ It ends for everyone in it. No key is created, and the ceremony can be started again. Abandoned. Nothing was signed. All - Bennu + Giza + Unlock %1$s Add to group After this there is no turning back. All broadcasts are queued so that we can manage data usage on metered connections. @@ -93,7 +94,7 @@ How many members will it take to sign? I have saved my recovery phrase somewhere safe. I understand that if I lose this phone and my recovery phrase, I lose this profile and the funds in its wallet. - If you are new to Bennu or just want to create a fresh profile + If you are new to Giza or just want to create a fresh profile Input npub... or nip05 Introduce yourself Invite @@ -129,7 +130,7 @@ Lose this phone before you do, and the profile goes with it. Lock prompt coming soon. Malformed note - Bennu + Giza Members members Name @@ -240,7 +241,7 @@ The ceremony was abandoned. The group can hold one key together, split so that no single member holds it. Signing with it takes a quorum. The group has a shared key. - 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 Bennu 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. + 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. 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. This device holds no phrase for the profile that is signed in. This decides who can change the group later. You can't switch afterwards. @@ -260,7 +261,7 @@ This device holds no key for %1$s, so there is nothing to lose. The profile stays on the relays, and you can sign in again any time. Could not sign out. Please try again. This will give you write access to the profile. - Bennu broadcasts what you publish to a distributed set of relays, so it stays decentralised. + Giza broadcasts what you publish to a distributed set of relays, so it stays decentralised. Transmit note Trending notes functionality coming soon. In the meantime search for what you are looking for. Try again @@ -332,7 +333,7 @@ Shared key for %1$s to join the %1$s chat room. Unsupported event kind: %1$s - %1$s was created, but %2$s couldn't be added yet. Invite them again from the chat once they're on Bennu. + %1$s was created, but %2$s couldn't be added yet. Invite them again from the chat once they've set up encrypted messaging. %1$s was created, but its shared key ceremony couldn't be started. Open the chat and start it from the group's details — until then the group has no key of its own. #%1$s You and %1$s others @@ -392,6 +393,7 @@ Paste Recognised as a nostr secret key. No wallet comes with it. Recognised as a recovery phrase. It also restores the wallet. + 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. 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. Recovery phrase, nsec or npub Sign in with a recovery phrase, an nsec, or an npub to look around @@ -401,7 +403,7 @@ That nostr secret key is not valid. That recovery phrase is not valid. Check each word and the order. The key could not be saved on this device. - Whatever you paste stays on this device. Bennu checks it, shows you the profile it opens, and writes nothing until you confirm. + Whatever you paste stays on this device. Giza checks it, shows you the profile it opens, and writes nothing until you confirm. This key is already on this device. Twelve words, nsec1… or npub1… Use a different key @@ -416,7 +418,7 @@ Copy nsec Could not forget the key. Please try again. Could not unlock your key. Please try again. - Bennu will delete the nsec for %1$s from this device. Anything not yet published is lost. The profile stays on the relays, and the key can be signed in again. + Giza will delete the nsec for %1$s from this device. Anything not yet published is lost. The profile stays on the relays, and the key can be signed in again. Display nostr secret key Forget Forget this key @@ -429,7 +431,7 @@ Nostr secret key Remove the key from this device. The profile stays on the relays. Store the nsec that signs as this profile. There is no phrase behind it: the key is the whole backup. - 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 Bennu 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. + 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. 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. Unlocking your key… You have not backed up your nostr secret key @@ -461,7 +463,7 @@ Start new chat You already have a chat with %1$s. Checking whether %1$s can receive messages here. - %1$s hasn't set up messaging on Bennu yet. Try again later, or ask them to open Bennu. + %1$s hasn't set up encrypted messaging yet. Try again later, or ask them to open Giza. Group onchain wallet diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/database/repository/DatabaseMarmotRepository.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/database/repository/DatabaseMarmotRepository.kt index 4db09fcd..59e7f59b 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/database/repository/DatabaseMarmotRepository.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/database/repository/DatabaseMarmotRepository.kt @@ -327,6 +327,6 @@ class DatabaseMarmotRepository( private const val TAG = "DatabaseMarmotRepository" /** The `client` tag on every kind:30443 this app publishes. */ - const val CLIENT_NAME = "bennu" + const val CLIENT_NAME = "giza" } } \ No newline at end of file diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/ChillDkgRitualManager.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/ChillDkgRitualManager.kt index 5072f374..c4ef6610 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/ChillDkgRitualManager.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/ChillDkgRitualManager.kt @@ -96,8 +96,9 @@ object ChillDkgRitualManager { * flaw in either can reach the other. Deriving it from the same seed keeps it * recoverable from the wallet backup without being the same key. * - * The `mantra/` prefix has now survived three rebrands on purpose -- Mantra to - * Curated, Curated to Curare, Curare to Bennu. It is an input to the hash, so renaming it derives + * The `mantra/` prefix has now survived four renames on purpose -- Mantra to + * Curated, Curated to Curare, Curare to Bennu, and Bennu to Giza, as a fork. It is an + * input to the hash, so renaming it derives * a different host key from the same seed -- * which loses the outputs of every DKG session already run, since ChillDKG needs * the host secret key to recover them. Renaming it is a protocol fork. diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningCoSigner.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningCoSigner.kt index c95259a3..be1741a2 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningCoSigner.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningCoSigner.kt @@ -78,7 +78,10 @@ object GroupLightningCoSigner { fun walletKey(chatRoomId: String, chain: Chain, wallet: Long): String = "$chatRoomId:${GroupWalletStatementEvent.chainName(chain)}:$wallet" - /** The label of pool counter [counter] for the group key [icebergKey]: every member computes the same. */ + /** + * The label of pool counter [counter] for the group key [icebergKey]: every member computes the same, + * on Bennu or on Giza, which is why the tag keeps its `bennu/` prefix. + */ fun poolLabel(icebergKey: HexKey, counter: Long): ByteVector32 = Crypto.taggedHash(ByteVector(icebergKey).toByteArray() + Pack.writeInt64BE(counter), "bennu/iceberg/pool/v1") diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningDerivation.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningDerivation.kt index 33e43974..1f93a665 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningDerivation.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupLightningDerivation.kt @@ -44,7 +44,7 @@ import fr.acinq.lightning.crypto.GroupBasepoints * TapTweak, because nothing commits a script tree to these keys -- they are the leaf. */ object GroupLightningDerivation { - /** Frozen once a channel exists under it, for the reason [GroupWalletDerivation]'s account tag is. */ + /** Frozen once a channel exists under it, `bennu/` and all, for the reason [GroupWalletDerivation]'s account tag is. */ private const val TAG = "bennu/group-lightning/basepoints/v1" const val PAYMENT: Long = 0L diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupWalletDerivation.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupWalletDerivation.kt index 1eadc31c..6f737e11 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupWalletDerivation.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GroupWalletDerivation.kt @@ -76,7 +76,11 @@ object GroupWalletDerivation { * The key of the account step's HMAC. An input to every wallet key, so it is * frozen the moment a group holds coins under it: changing it moves every * address, and the coins at the old ones are found by nobody. A rename is a - * protocol fork and belongs in a `v2`, never in an edit to this one. + * protocol fork and belongs in a `v2`, never in an edit to this one. That includes + * the `bennu/` prefix, which is not a brand string: it stayed when the app was forked + * as Giza, as `mantra/` stayed through the rebrands before it, and it is why a Bennu + * member and a Giza member derive the same wallet (docs/giza-rebrand.md). Every other + * `bennu/` tag in this package stays for the same reason. */ private const val ACCOUNT_TAG = "bennu/group-wallet/account/v1" diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GuardianDerivation.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GuardianDerivation.kt index 27849ba5..5931842c 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GuardianDerivation.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/GuardianDerivation.kt @@ -84,6 +84,7 @@ object GuardianDerivation { /** * The key of the guardian root's HMAC. An input to every guardian key, so it * is frozen the moment a certificate carries one: a rename moves every leaf. + * The `bennu/` prefix included -- see [GroupWalletDerivation]'s account tag. */ private const val ROOT_TAG = "bennu/group-wallet/guardian/v1" diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergDkg.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergDkg.kt index 99fe112f..06f3668b 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergDkg.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/IcebergDkg.kt @@ -66,6 +66,9 @@ object IcebergDkg { /** `SECP256K1_ICEBERG_MAX_PARTICIPANTS`, which sizes the library's ABI. */ const val MAX_PARTICIPANTS = 10 + // Inputs to every hash of the ceremony. `bennu/` is not a brand string: a Bennu + // member and a Giza member run one ceremony together, so the tags stayed when the app + // was forked (docs/giza-rebrand.md). private const val TAG_SESSION = "bennu/iceberg-dkg/session/v1" private const val TAG_CONTRIBUTION = "bennu/iceberg-dkg/contribution/v1" private const val TAG_COMMIT = "bennu/iceberg-dkg/commit/v1" diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/MemberWalletDerivation.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/MemberWalletDerivation.kt index b998baed..24d18c20 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/MemberWalletDerivation.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/MemberWalletDerivation.kt @@ -51,7 +51,10 @@ import fr.acinq.bitcoin.PublicKey * never the nostr key, never a key from the profile's seed. */ object MemberWalletDerivation { - /** The tag of a wallet id's hash. Frozen the moment a certificate carries one: a rename moves every leaf. */ + /** + * The tag of a wallet id's hash. Frozen the moment a certificate carries one: a rename moves every leaf. + * The `bennu/` prefix included -- see [GroupWalletDerivation]'s account tag. + */ private const val ID_TAG = "bennu/member-wallet/id/v1" /** diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/SharedKeyDerivation.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/SharedKeyDerivation.kt index ca6d6896..128e584e 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/SharedKeyDerivation.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/managers/SharedKeyDerivation.kt @@ -62,11 +62,13 @@ object SharedKeyDerivation { * coexist with keys already derived under this one, and distinct from any other * use of the same threshold key. * - * The `mantra/` prefix has now survived three rebrands on purpose -- Mantra to - * Curated, Curated to Curare, Curare to Bennu -- for the same reason [MARMOT_ADMIN_GROUP_PATH] has + * The `mantra/` prefix has now survived four renames on purpose -- Mantra to + * Curated, Curated to Curare, Curare to Bennu, and Bennu to Giza, as a fork -- for the + * same reason [MARMOT_ADMIN_GROUP_PATH] has * to stay put: this string is an input to the derivation, so changing it changes * every key derived under it. That would orphan every room already created, and - * split Bennu off from any peer still running an older build -- the two would + * split Giza off from any peer still running an older build, and from every Bennu + * peer, which shares the protocol -- the two would * derive different keys from the same threshold key and their partial signatures * would aggregate to nothing that verifies. * Renaming it is a protocol fork, and belongs in a `v2` tag if it is ever wanted. diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/network/UserAgent.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/network/UserAgent.kt index c6899aaa..0fde7147 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/network/UserAgent.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/network/UserAgent.kt @@ -1,8 +1,8 @@ package mobi.giza.compose.network object UserAgent { - const val APP_NAME = "Bennu" - const val CLIENT_NAME = "Bennu" + const val APP_NAME = "Giza" + const val CLIENT_NAME = "Giza" } fun String.asClientTag(): Array = arrayOf( diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/DirectMessagePeerSync.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/DirectMessagePeerSync.kt index fd5cf271..17f62df8 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/DirectMessagePeerSync.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/DirectMessagePeerSync.kt @@ -16,7 +16,7 @@ import mobi.giza.compose.database.model.types.SynchronizationFilter * hold the key package and the DM relay list, and the kind 0 of anyone who has * published one here; the indexer relays hold everyone's kind 0 and nothing else a * chat needs. A three-kind filter to the indexers comes back with the kind 0 alone; - * a kind-0-only filter to our relay finds a person who has never opened Bennu + * a kind-0-only filter to our relay finds a person who has never opened Giza * nowhere. * * Both at level 0, for the reason `MemberProfileSync` gives: it marks a request as diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/Relays.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/Relays.kt index eca7df34..cd71ba2b 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/Relays.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/Relays.kt @@ -6,11 +6,12 @@ import com.vitorpamplona.quartz.nip65RelayList.tags.AdvertisedRelayInfo import com.vitorpamplona.quartz.nip65RelayList.tags.AdvertisedRelayType object Relays { - // Still on the mantra.press host three rebrands later -- Mantra to Curated, Curated - // to Curare, Curare to Bennu -- because this is a running relay, not a brand string. It is in the - // bootstrap, publish, finder and DM sets, so pointing it at a name nobody has stood - // up yet would take the app off the network. Swap it when a Bennu relay exists to - // swap it for. + // Still on the mantra.press host four renames later -- Mantra to Curated, Curated + // to Curare, Curare to Bennu, Bennu to Giza -- because this is a running relay, not a + // brand string. It is in the bootstrap, publish, finder and DM sets, so pointing it at + // a name nobody has stood up yet would take the app off the network. When a Giza relay + // exists, add it beside this one rather than in its place: Bennu users are still here, + // and a group with members on both apps needs a relay they share. val ephemeral = RelayUrlNormalizer.normalize("wss://ephemeral.mantra.press") val nos = RelayUrlNormalizer.normalize("wss://nos.lol") diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/wallet/MemberWalletRequestEvent.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/wallet/MemberWalletRequestEvent.kt index 5347af43..8c6ada34 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/wallet/MemberWalletRequestEvent.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/nostr/wallet/MemberWalletRequestEvent.kt @@ -83,7 +83,7 @@ object MemberWalletRequestEvent { private const val POSSESSION_TAG = "possession" private const val POLICY_TAG = "member_wallet_policy" - /** The tag of the possession signature's message. Frozen once a request carries one. */ + /** The tag of the possession signature's message. Frozen once a request carries one, `bennu/` prefix included. */ private const val POSSESSION_HASH_TAG = "bennu/member-wallet/possession/v1" /** The longest label a request carries: a name for a wallet, not a note. */ diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/AddMemberToChatRoomConfirmationScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/AddMemberToChatRoomConfirmationScreen.kt index f997ce69..a78d75f1 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/AddMemberToChatRoomConfirmationScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/AddMemberToChatRoomConfirmationScreen.kt @@ -221,7 +221,7 @@ private fun ChatRoomDetailScreenPreview() { chatRoomId = "publicKey", relayHint = null, initialChatRoomDetailUIState = -// AddMemberToChatRoomConfirmationUIState.Error("Profile missing key package event.\n\nTry again later or tell Person to use Bennu."), +// AddMemberToChatRoomConfirmationUIState.Error("Profile missing key package event.\n\nTry again later or tell Person to use Giza."), AddMemberToChatRoomConfirmationUIState.Loaded( localChatRoom = LocalChatRoom( chatRoom = ChatRoom( diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/HomeScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/HomeScreen.kt index f027b358..a58a36aa 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/HomeScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/HomeScreen.kt @@ -65,7 +65,7 @@ import kotlinx.coroutines.launch import mobi.giza.compose.ui.theme.spacing import mobi.giza.compose.resources.Res import org.jetbrains.compose.resources.stringResource -import mobi.giza.compose.resources.bennu +import mobi.giza.compose.resources.giza import mobi.giza.compose.resources.new_chat import mobi.giza.compose.ui.composable.widgets.ErrorState import androidx.compose.material3.SnackbarHost @@ -167,14 +167,16 @@ fun HomeScreen( // default is `surface`/`onSurface` and needs no help. TopAppBar( title = { - // "Bennu". The launcher label, the desktop window title, the + // "Giza". The launcher label, the desktop window title, the // landing screen and the package name all say so, and since the - // rebrand so does `UserAgent.CLIENT_NAME` -- the one that goes on - // the wire, as the `client` tag on a published relay list. The three + // fork so does `UserAgent.CLIENT_NAME` -- the one that goes on + // the wire, as the `client` tag on a published relay list. The // brands before it are gone from live code too -- what was - // `TorchTheme`, then `CuratedTheme`, then `CurareTheme`, is - // `GizaTheme`, and no error string names any of them. - Text(stringResource(Res.string.bennu)) + // `TorchTheme`, then `CuratedTheme`, `CurareTheme` and + // `BennuTheme`, is `GizaTheme`, and no error string names any of + // them. Bennu survives only where it is protocol: the `bennu/` + // derivation tags, which a Bennu peer has to share. + Text(stringResource(Res.string.giza)) }, // No navigation icon and no actions. The avatar in the leading // slot and the search icon in the trailing one were the app's only diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/KeyRecoveryScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/KeyRecoveryScreen.kt index f513cecd..a97ea03e 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/KeyRecoveryScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/KeyRecoveryScreen.kt @@ -77,7 +77,7 @@ import mobi.giza.compose.ui.theme.spacing /** * Everything that can put this profile back on another phone. * - * A Bennu profile is its key: the npub that signs and, for a wallet, the coins + * A Giza profile is its key: the npub that signs and, for a wallet, the coins * it holds, both come out of one secret that never leaves the device -- twelve * words, or a bare nostr key that was signed in with. There is no account to * reset, so this screen is the only thing standing between a lost phone and a diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/LandingScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/LandingScreen.kt index 3a19577b..2f23b898 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/LandingScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/LandingScreen.kt @@ -25,7 +25,7 @@ import mobi.giza.compose.resources.create_profile import mobi.giza.compose.resources.if_you_are_new_to_torch_or_just_want_to import mobi.giza.compose.resources.keep_the_feed_alive import mobi.giza.compose.resources.learn_more -import mobi.giza.compose.resources.bennu +import mobi.giza.compose.resources.giza import mobi.giza.compose.resources.sign_in import mobi.giza.compose.resources.sign_in_with_a_recovery_phrase_an_nsec_or import androidx.compose.material3.SnackbarHost @@ -50,7 +50,7 @@ fun LandingScreen( horizontalAlignment = Alignment.CenterHorizontally ) { Text( - text = stringResource(Res.string.bennu), + text = stringResource(Res.string.giza), style = MaterialTheme.typography.headlineLarge ) diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/NostrSecretScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/NostrSecretScreen.kt index 22edadae..6316ac44 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/NostrSecretScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/NostrSecretScreen.kt @@ -52,7 +52,7 @@ import mobi.giza.compose.resources.copied_the_nsec import mobi.giza.compose.resources.copy_nsec import mobi.giza.compose.resources.could_not_forget_the_key_please_try_again import mobi.giza.compose.resources.could_not_unlock_your_key_please_try -import mobi.giza.compose.resources.bennu_will_delete_the_nsec_for_s_from_this +import mobi.giza.compose.resources.giza_will_delete_the_nsec_for_s_from_this import mobi.giza.compose.resources.display_nostr_secret_key import mobi.giza.compose.resources.forget import mobi.giza.compose.resources.forget_this_key @@ -184,7 +184,7 @@ private fun NostrSecretContent( onDismissRequest = onCancelForget, icon = { Icon(Icons.Default.DeleteForever, contentDescription = Decorative) }, title = { Text(stringResource(Res.string.forget_this_key_question)) }, - text = { Text(stringResource(Res.string.bennu_will_delete_the_nsec_for_s_from_this, npub ?: "")) }, + text = { Text(stringResource(Res.string.giza_will_delete_the_nsec_for_s_from_this, npub ?: "")) }, confirmButton = { TextButton(onClick = onForget) { Text(stringResource(Res.string.forget)) } }, diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreen.kt index d60b1685..9b3d92ad 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreen.kt @@ -53,7 +53,7 @@ import mobi.giza.compose.resources.checking_whether_s_can_receive_messages_here import mobi.giza.compose.resources.looking_for_this_profile_on_the_relays import mobi.giza.compose.resources.open_chat import mobi.giza.compose.resources.profile -import mobi.giza.compose.resources.s_hasn_t_set_up_messaging_on_bennu_yet +import mobi.giza.compose.resources.s_hasn_t_set_up_encrypted_messaging_yet import mobi.giza.compose.resources.start_new_chat import mobi.giza.compose.resources.try_again import mobi.giza.compose.resources.we_could_not_find_a_profile_for_this_key @@ -435,7 +435,7 @@ private fun ReadinessLine( Readiness.Checking -> SupportingLine(stringResource(Res.string.checking_whether_s_can_receive_messages_here, name)) Readiness.NotYetOnGiza -> { Column(verticalArrangement = Arrangement.spacedBy(MaterialTheme.spacing.relatedGap)) { - SupportingLine(stringResource(Res.string.s_hasn_t_set_up_messaging_on_bennu_yet, name)) + SupportingLine(stringResource(Res.string.s_hasn_t_set_up_encrypted_messaging_yet, name)) TextButton(onClick = onRetry) { Text(stringResource(Res.string.try_again)) } diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/SignInScreen.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/SignInScreen.kt index 53bdc2b5..3fdb2898 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/SignInScreen.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/composable/SignInScreen.kt @@ -44,6 +44,7 @@ import mobi.giza.compose.resources.next import mobi.giza.compose.resources.paste import mobi.giza.compose.resources.recognised_as_a_nostr_secret_key_no_wallet import mobi.giza.compose.resources.recognised_as_a_public_key_you_will_see +import mobi.giza.compose.resources.once_restored_here_stop_using_this_phrase import mobi.giza.compose.resources.recognised_as_a_recovery_phrase_it_also import mobi.giza.compose.resources.recovery_phrase_nsec_or_npub import mobi.giza.compose.resources.sign_in @@ -273,6 +274,14 @@ private fun Confirm( text = stringResource(Res.string.recognised_as_a_recovery_phrase_it_also), style = MaterialTheme.typography.bodyMedium, ) + // A phrase restored here may still be running somewhere else -- in Bennu, + // which shares the derivation, or on another device. Two copies of one + // Lightning wallet sign two versions of one channel, and the older one + // broadcast is a revoked state (docs/giza-rebrand.md, constraint 2). + Text( + text = stringResource(Res.string.once_restored_here_stop_using_this_phrase), + style = MaterialTheme.typography.bodyMedium, + ) } is SignInCredential.NostrSecret -> { Icon(Icons.Default.Key, contentDescription = Decorative) diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/AddMemberToChatRoomConfirmationViewModel.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/AddMemberToChatRoomConfirmationViewModel.kt index 62c8d280..6364a9fb 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/AddMemberToChatRoomConfirmationViewModel.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/AddMemberToChatRoomConfirmationViewModel.kt @@ -78,7 +78,7 @@ class AddMemberToChatRoomConfirmationViewModel( val lookupTimeout = launch { delay(RELAY_LOOKUP_TIMEOUT) addMemberToChatRoomConfirmationUIState = - AddMemberToChatRoomConfirmationUIState.Error("Profile missing key package event. Try again later or tell ${profile.humanReadableNameOrPubkey()} to use Bennu.") + AddMemberToChatRoomConfirmationUIState.Error("Profile missing key package event. Try again later or tell ${profile.humanReadableNameOrPubkey()} to use Giza.") } // Observe rather than read once: the key package usually lands a moment after diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ChatRoomMessagingViewModel.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ChatRoomMessagingViewModel.kt index e1b0fd6f..d1c7aa96 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ChatRoomMessagingViewModel.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ChatRoomMessagingViewModel.kt @@ -97,7 +97,7 @@ class ChatRoomMessagingViewModel( val lookupTimeout = viewModelScope.launch { delay(RELAY_LOOKUP_TIMEOUT) chatRoomMessagingUIState = ChatRoomMessagingUIState.Error( - "Couldn't find this profile's chat details on the relays yet. They may not have finished setting up Bennu." + "Couldn't find this profile's chat details on the relays yet. They may not have finished setting up encrypted messaging." ) } diff --git a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModel.kt b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModel.kt index 36bb8d7e..04831e7c 100644 --- a/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModel.kt +++ b/composeApp/src/commonMain/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModel.kt @@ -47,7 +47,7 @@ import kotlin.time.Duration.Companion.seconds * * One timeout, the one both DM view models use, and it only changes what is shown: * nothing found becomes not-found, and a person found without a key package becomes - * not-yet-on-Bennu. The collect stays live past it, so whatever arrives on the + * not-yet-on-Giza. The collect stays live past it, so whatever arrives on the * twenty-first second still lands. See docs/npub-profile-preview.md. */ class ProfilePreviewViewModel( diff --git a/composeApp/src/commonTest/kotlin/mobi/giza/compose/database/query/NostrEventFilterQueryTest.kt b/composeApp/src/commonTest/kotlin/mobi/giza/compose/database/query/NostrEventFilterQueryTest.kt index 6cae44fe..4767a7b1 100644 --- a/composeApp/src/commonTest/kotlin/mobi/giza/compose/database/query/NostrEventFilterQueryTest.kt +++ b/composeApp/src/commonTest/kotlin/mobi/giza/compose/database/query/NostrEventFilterQueryTest.kt @@ -144,13 +144,13 @@ class NostrEventFilterQueryTest { @Test fun `search still matches content`() { - val query = NostrEventFilterQuery.build(SynchronizationFilter(search = "bennu")) + val query = NostrEventFilterQuery.build(SynchronizationFilter(search = "giza")) assertEquals( "SELECT * FROM NostrEvent WHERE content LIKE '%' || ? || '%' ORDER BY createdAt DESC, id DESC", query.sql, ) - assertEquals(listOf("bennu"), query.boundValues()) + assertEquals(listOf("giza"), query.boundValues()) } private fun androidx.room3.RoomRawQuery.boundValues(): List = diff --git a/composeApp/src/jvmMain/kotlin/mobi/giza/desktop/Main.kt b/composeApp/src/jvmMain/kotlin/mobi/giza/desktop/Main.kt index 40a60b80..4471bf6e 100644 --- a/composeApp/src/jvmMain/kotlin/mobi/giza/desktop/Main.kt +++ b/composeApp/src/jvmMain/kotlin/mobi/giza/desktop/Main.kt @@ -40,6 +40,10 @@ import mobi.giza.compose.GizaApp import mobi.giza.compose.GizaGlobal import mobi.giza.compose.PlatformContext import mobi.giza.compose.defaultGizaDir +import mobi.giza.compose.resources.Res +import mobi.giza.compose.resources.app_name +import mobi.giza.compose.resources.unlock_s +import org.jetbrains.compose.resources.stringResource import mobi.giza.compose.ui.theme.GizaTheme import java.awt.Dimension import java.io.File @@ -52,7 +56,7 @@ import java.io.File * * - the wallet seed is protected by a passphrase, so nothing can start until one has been * entered (see [PassphraseGate]); - * - one directory is handed to both the bennu and the phoenix context, so a single install + * - one directory is handed to both the giza and the phoenix context, so a single install * keeps a single place on disk rather than two named after different projects. */ fun main() = application { @@ -60,7 +64,7 @@ fun main() = application { Window( onCloseRequest = ::exitApplication, - title = "Bennu", + title = stringResource(Res.string.app_name), // 1100dp is the expanded breakpoint -- 840 to 1199 -- which is the narrowest window // M3 recommends two panes in, and so the smallest opening size at which a desktop // user sees a desktop layout rather than a phone one stretched. It used to open at @@ -165,7 +169,10 @@ private fun PassphraseGate(appDir: File, onUnlocked: () -> Unit) { verticalArrangement = Arrangement.spacedBy(16.dp, Alignment.CenterVertically), horizontalAlignment = Alignment.CenterHorizontally, ) { - Text("Unlock Bennu", style = MaterialTheme.typography.headlineSmall) + Text( + stringResource(Res.string.unlock_s, stringResource(Res.string.app_name)), + style = MaterialTheme.typography.headlineSmall, + ) Text( "This desktop build protects your seed with a passphrase rather than a " + "hardware-backed keystore. Do not use it for real funds.", diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/database/GizaDatabaseJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/database/GizaDatabaseJvmTest.kt index ef2f5f33..585204da 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/database/GizaDatabaseJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/database/GizaDatabaseJvmTest.kt @@ -143,7 +143,7 @@ class GizaDatabaseJvmTest { */ @Test fun `the on-disk builder writes where the context says`() = runBlocking { - val dir = Files.createTempDirectory("bennu-db-test").toFile() + val dir = Files.createTempDirectory("giza-db-test").toFile() try { val onDisk = getRoomDatabase( PlatformDatabaseBuilder.getDatabaseBuilder(PlatformContext(dir)) diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/AddProfileFromInsideJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/AddProfileFromInsideJvmTest.kt index 8c6be326..48357bab 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/AddProfileFromInsideJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/AddProfileFromInsideJvmTest.kt @@ -68,8 +68,8 @@ class AddProfileFromInsideJvmTest { @BeforeTest fun setUp() { - storeDir = Files.createTempDirectory("bennu-add-inside-store").toFile() - appDir = Files.createTempDirectory("bennu-add-inside-app").toFile() + storeDir = Files.createTempDirectory("giza-add-inside-store").toFile() + appDir = Files.createTempDirectory("giza-add-inside-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) // No GlobalPrefs of the test's own: DataStoreManager caches one per process, and diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentitySwitchJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentitySwitchJvmTest.kt index 5dd27ce9..fb245da8 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentitySwitchJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentitySwitchJvmTest.kt @@ -85,8 +85,8 @@ class IdentitySwitchJvmTest { @BeforeTest fun setUp() { - storeDir = Files.createTempDirectory("bennu-switch-store").toFile() - appDir = Files.createTempDirectory("bennu-switch-app").toFile() + storeDir = Files.createTempDirectory("giza-switch-store").toFile() + appDir = Files.createTempDirectory("giza-switch-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) // No GlobalPrefs of the test's own -- see AddProfileFromInsideJvmTest.setUp: the diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentityWriterJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentityWriterJvmTest.kt index 011b30a2..301252c7 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentityWriterJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/IdentityWriterJvmTest.kt @@ -78,8 +78,8 @@ class IdentityWriterJvmTest { // to; a real dispatcher rather than a test one, because it reports after a real // one-second delay and a virtual clock would never reach it. Dispatchers.setMain(Dispatchers.Default) - storeDir = Files.createTempDirectory("bennu-identity-writer-store").toFile() - appDir = Files.createTempDirectory("bennu-identity-writer-app").toFile() + storeDir = Files.createTempDirectory("giza-identity-writer-store").toFile() + appDir = Files.createTempDirectory("giza-identity-writer-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) phoenixGlobal = PhoenixGlobal(PlatformContext(applicationDir = appDir)) diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/MultipleProfilesRoundTripJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/MultipleProfilesRoundTripJvmTest.kt index 1882e983..b4bf7da5 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/MultipleProfilesRoundTripJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/MultipleProfilesRoundTripJvmTest.kt @@ -85,8 +85,8 @@ class MultipleProfilesRoundTripJvmTest { @BeforeTest fun setUp() { - storeDir = Files.createTempDirectory("bennu-profiles-store").toFile() - appDir = Files.createTempDirectory("bennu-profiles-app").toFile() + storeDir = Files.createTempDirectory("giza-profiles-store").toFile() + appDir = Files.createTempDirectory("giza-profiles-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) // No GlobalPrefs of the test's own -- see AddProfileFromInsideJvmTest.setUp. diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NpubPreviewRoundTripJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NpubPreviewRoundTripJvmTest.kt index 8b35d1fa..cef518a1 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NpubPreviewRoundTripJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NpubPreviewRoundTripJvmTest.kt @@ -91,8 +91,8 @@ class NpubPreviewRoundTripJvmTest { @BeforeTest fun setUp() { - storeDir = Files.createTempDirectory("bennu-preview-store").toFile() - appDir = Files.createTempDirectory("bennu-preview-app").toFile() + storeDir = Files.createTempDirectory("giza-preview-store").toFile() + appDir = Files.createTempDirectory("giza-preview-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) phoenixGlobal = PhoenixGlobal(PlatformContext(applicationDir = appDir)) diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NsecRestoreRoundTripJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NsecRestoreRoundTripJvmTest.kt index 40faa4af..1583da84 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NsecRestoreRoundTripJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/NsecRestoreRoundTripJvmTest.kt @@ -68,8 +68,8 @@ class NsecRestoreRoundTripJvmTest { @BeforeTest fun setUp() { - storeDir = Files.createTempDirectory("bennu-round-trip-store").toFile() - appDir = Files.createTempDirectory("bennu-round-trip-app").toFile() + storeDir = Files.createTempDirectory("giza-round-trip-store").toFile() + appDir = Files.createTempDirectory("giza-round-trip-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) phoenixGlobal = PhoenixGlobal(PlatformContext(applicationDir = appDir)) diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/SeedCredentialsJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/SeedCredentialsJvmTest.kt index 0e695f44..a92a3e8d 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/SeedCredentialsJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/identity/SeedCredentialsJvmTest.kt @@ -64,8 +64,8 @@ class SeedCredentialsJvmTest { @BeforeTest fun setUp() { - storeDir = Files.createTempDirectory("bennu-seed-credentials-store").toFile() - appDir = Files.createTempDirectory("bennu-seed-credentials-app").toFile() + storeDir = Files.createTempDirectory("giza-seed-credentials-store").toFile() + appDir = Files.createTempDirectory("giza-seed-credentials-app").toFile() JvmKeyStore.lock() JvmKeyStore.unlock("correct horse battery staple".toCharArray(), storeDir) phoenixGlobal = PhoenixGlobal(PlatformContext(applicationDir = appDir)) diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/GroupLightningRegtestJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/GroupLightningRegtestJvmTest.kt index 19e92cb5..626dd607 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/GroupLightningRegtestJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/GroupLightningRegtestJvmTest.kt @@ -241,7 +241,7 @@ class GroupLightningRegtestJvmTest { val electrum = ElectrumClient(scope, loggerFactory) assertTrue(electrum.connect(ServerAddress("127.0.0.1", 28001, TcpSocket.TLS.DISABLED), TcpSocket.Builder()), "electrs is reachable") val clients = GroupChainClients.single(electrum) - val ctx = PlatformContext(Files.createTempDirectory("bennu-regtest").toFile()) + val ctx = PlatformContext(Files.createTempDirectory("giza-regtest").toFile()) val walletParams = LSP.from(Chain.Testnet3).walletParams.copy(trampolineNode = NodeUri(PublicKey.fromHex(lspId), "127.0.0.1", 29735)) val handles = mutableListOf() val real = GroupLightningNode.lightningKmpPeers( diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/LiquidityPurchaseRegtestJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/LiquidityPurchaseRegtestJvmTest.kt index 4f28f6b8..b6b81a36 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/LiquidityPurchaseRegtestJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/managers/LiquidityPurchaseRegtestJvmTest.kt @@ -189,7 +189,7 @@ class LiquidityPurchaseRegtestJvmTest { ) val electrum = ElectrumClient(scope, loggerFactory) check(electrum.connect(ServerAddress("127.0.0.1", 28001, TcpSocket.TLS.DISABLED), TcpSocket.Builder())) { "electrs is not reachable: testing/regtest/regtest.sh up" } - val ctx = PlatformContext(Files.createTempDirectory("bennu-liquidity").toFile()) + val ctx = PlatformContext(Files.createTempDirectory("giza-liquidity").toFile()) val databases = PhoenixDatabases( channels = createSqliteChannelsDb(createChannelsDbDriver(ctx, "channels.sqlite")), payments = createSqlitePaymentsDb(createPaymentsDbDriver(ctx, "payments.sqlite") {}, null, loggerFactory), diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreenJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreenJvmTest.kt index 3925e1bd..79505b0a 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreenJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/composable/ProfilePreviewScreenJvmTest.kt @@ -130,11 +130,11 @@ class ProfilePreviewScreenJvmTest { } @Test - fun `a person not yet on Bennu cannot be written to, and the reason is under the button`() = render( + fun `a person not yet on Giza cannot be written to, and the reason is under the button`() = render( ProfilePreviewUIState.Loaded(profile = alice, readiness = Readiness.NotYetOnGiza) ) { onNodeWithText("Start new chat").assertIsNotEnabled() - onNodeWithText("Alice hasn't set up messaging on Bennu yet. Try again later, or ask them to open Bennu.").assertIsDisplayed() + onNodeWithText("Alice hasn't set up encrypted messaging yet. Try again later, or ask them to open Giza.").assertIsDisplayed() onNodeWithText("Try again").assertIsDisplayed() } diff --git a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModelJvmTest.kt b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModelJvmTest.kt index ffa42c53..92f401d6 100644 --- a/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModelJvmTest.kt +++ b/composeApp/src/jvmTest/kotlin/mobi/giza/compose/ui/view/model/ProfilePreviewViewModelJvmTest.kt @@ -246,7 +246,7 @@ class ProfilePreviewViewModelJvmTest { } @Test - fun `a person with no key package is not yet on Bennu after the timeout, and a late one still counts`() = runBlocking { + fun `a person with no key package is not yet on Giza after the timeout, and a late one still counts`() = runBlocking { val recorder = Recorder(profile = MutableStateFlow(resolved(alice))) val rooms = Rooms() val viewModel = viewModel(recorder, rooms) diff --git a/iosApp/Configuration/Config.xcconfig b/iosApp/Configuration/Config.xcconfig index 10146f50..947d55ea 100644 --- a/iosApp/Configuration/Config.xcconfig +++ b/iosApp/Configuration/Config.xcconfig @@ -1,6 +1,6 @@ TEAM_ID=ZK3TQ662GB -PRODUCT_NAME=Bennu +PRODUCT_NAME=Giza PRODUCT_BUNDLE_IDENTIFIER=mobi.giza.ios CURRENT_PROJECT_VERSION=1 diff --git a/iosApp/iosApp.xcodeproj/project.pbxproj b/iosApp/iosApp.xcodeproj/project.pbxproj index c7cbb753..defe4b8d 100644 --- a/iosApp/iosApp.xcodeproj/project.pbxproj +++ b/iosApp/iosApp.xcodeproj/project.pbxproj @@ -7,7 +7,7 @@ objects = { /* Begin PBXFileReference section */ - 41CB266BF907B985085BE6EC /* Bennu.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Bennu.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 41CB266BF907B985085BE6EC /* Giza.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Giza.app; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ /* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ @@ -59,7 +59,7 @@ ECDAFDDED408A506DEFE0AF1 /* Products */ = { isa = PBXGroup; children = ( - 41CB266BF907B985085BE6EC /* Bennu.app */, + 41CB266BF907B985085BE6EC /* Giza.app */, ); name = Products; sourceTree = ""; @@ -87,7 +87,7 @@ packageProductDependencies = ( ); productName = iosApp; - productReference = 41CB266BF907B985085BE6EC /* Bennu.app */; + productReference = 41CB266BF907B985085BE6EC /* Giza.app */; productType = "com.apple.product-type.application"; }; /* End PBXNativeTarget section */