35c9ea3bbc
The wallet pivoted from the Nym mixnet to Tor in build134; the Nym code had been left on disk behind an optional, always-off "nym" feature and never ran since. Delete it entirely: no Nym/mixnet fallback and no Nym/mixnet mentions remain. Tor is the sole transport. - Delete src/nym/ (mod, transport, streamexit, dns, nymproc) and its `#[cfg(feature = "nym")] pub mod nym;` declaration in lib.rs. - Cargo.toml: drop the `nym` feature and the commented-out Nym-only path deps (nym-sdk, smolmix, hickory-proto); rewrite the mixnet-era comments on the rustls/tokio-rustls/arti/openssl deps to the current Tor reality. No active dependency changed: rustls, tokio-rustls and webpki-roots stay (used by the Tor HTTPS client in tor/mod.rs). - settings/config.rs: remove the persisted nym_entry_gateway / nym_last_ipr fields and their getters/setters. No serde deny_unknown_fields, so existing on-disk configs that still carry those keys keep deserializing (the removed keys are ignored and dropped on next save; same path the price-cache-removal test guards). - Rename the Nym/mixnet-named i18n keys (values already said "Tor") across all 9 locales and their t!() call sites: connected_nym -> connected_tor, nym_ready -> tor_ready, connecting_nym -> connecting_tor, mixnet_routing -> tor_routing, over_mixnet -> over_tor. Displayed strings unchanged. - Rewrite the Nym/mixnet-referencing comments in the active Tor files (tor/engine.rs, tor/mod.rs, nostr/client.rs, nostr/pool.rs, nostr/mod.rs, lib.rs, wallet/wallet.rs, node/node.rs, gui widgets/mod/onboarding, Android BackgroundService) to describe Tor; drop the now-broken [crate::nym::*] intra-doc links. No active code behavior changed. The pool's `exit` schema slot and exit_for/exit_for_host/has_exit helpers are kept (comments de-Nym'd): they are inert under Tor but let a pool document that carries an exit still parse.
58 lines
1.5 KiB
Rust
58 lines
1.5 KiB
Rust
// Copyright 2026 The Goblin Developers
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
//! Nostr payment-messaging subsystem: contacts are nostr users, slatepacks
|
|
//! travel as NIP-17 private DMs (NIP-44 encrypted, NIP-59 gift-wrapped) over
|
|
//! relays reached through the embedded Tor client.
|
|
|
|
mod types;
|
|
pub use types::*;
|
|
|
|
pub mod config;
|
|
pub use config::{AcceptPolicy, NostrConfig};
|
|
|
|
pub mod pool;
|
|
pub mod relays;
|
|
|
|
mod store;
|
|
pub use store::NostrStore;
|
|
|
|
mod identity;
|
|
pub use identity::{
|
|
FullBackup, IdentitySource, NostrIdentity, build_full_backup, is_full_backup, open_full_backup,
|
|
};
|
|
|
|
pub mod identities;
|
|
pub use identities::{HeldError, HeldIdentities, MAX_IDENTITIES, catchup_since};
|
|
|
|
pub mod protocol;
|
|
pub use protocol::*;
|
|
|
|
pub mod wrapv3;
|
|
|
|
pub mod ingest;
|
|
pub use ingest::*;
|
|
|
|
mod client;
|
|
pub use client::{HeldIdentityKeys, NostrProfile, NostrService, send_phase};
|
|
|
|
pub mod avatar;
|
|
pub mod nip05;
|
|
|
|
pub mod authuri;
|
|
pub mod loginuri;
|
|
pub mod payuri;
|
|
pub mod session;
|
|
pub mod trusturi;
|