Merge remote-tracking branch 'github-cs-check/feat/openalias' into feat/openalias
What changed, and why it matters
This commit is mostly routine maintenance: updating Rust compiler versions, refreshing third-party library references, switching block-explorer URLs, and adding a Linux packaging helper that removes an executable-stack flag from bundled wallet libraries. The most security-relevant change is the new helper script, which prevents modern Linux from rejecting (or potentially mishandling) certain native libraries. There is no clear vulnerability being fixed, no vendor security disclosure, and no independent researcher credited.
Treat as a normal maintenance merge. Review the new prepare_release_bundle.py helper for correctness and ensure CI uses it before packaging. Verify that the updated dependency commits and Rust toolchain do not introduce build regressions. No immediate security patch or incident response is indicated by the diff.
Security signals we found
New Linux release-bundle preparation script clears executable-stack flags on bundled native wallet libraries and validates remaining ELF files
Rust toolchain version bumped across CI, Docker, and documentation
Third-party git dependency refs updated, including one dependency moved to a project-owned fork
Block explorer domains changed for Dogecoin and Litecoin
iOS AppDelegate and Xcode project updated for Flutter-generated Swift Package Manager plugin registration
TOR service teardown simplified
Evidence from the diff
The merge commit touches CI, Docker, docs, iOS Flutter boilerplate, block-explorer URLs, dependency lock pins, and introduces scripts/linux/prepare_release_bundle.py. That script uses patchelf –clear-execstack on three known Monero-family wallet libraries and then validates with readelf that no remaining ELF in the bundle requests an executable stack. It includes unit tests. Other changes: Rust toolchain bumped from 1.89.0/1.90.0 to 1.99.1 across workflows/Dockerfile/docs; iOS AppDelegate updated for Flutter’s implicit engine registration; Dogecoin/Litecoin explorers moved from chain.so to sochain.com; git dependency refs updated for flutter_libepiccash, flutter_libmwc, frostdart, tor, and xelis_wallet_flutter (now a cypherstack fork); TOR service stop logic simplified from disable()+stop() to stop() only.
Changed components
Linux release build pipeline (.github/workflows/build.yaml, scripts/linux/prepare_release_bundle.py)Docker build environment (Dockerfile)Developer documentation (docs/building.md)iOS app bootstrap (ios/Runner/AppDelegate.swift, scripts/app_config/templates/ios/*)Dogecoin and Litecoin block explorer URLsGit-based Dart/Flutter dependencies (flutter_libepiccash, flutter_libmwc, frostdart, tor, xelis_wallet_flutter)TOR service implementation templateInspect captured patch +346 / −62
### .github/workflows/build.yaml
@@ -88,6 +88,9 @@ jobs:
USE_SYSTEM_SECURE_STORAGE_DEPS: "1"
run: flutter build linux --release --verbose
+ - name: Prepare Linux release bundle
+ run: python3 scripts/linux/prepare_release_bundle.py build/linux/x64/release/bundle
+
- name: Package
run: |
tar -czf "stack_wallet-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz" \
@@ -481,6 +484,9 @@ jobs:
USE_SYSTEM_SECURE_STORAGE_DEPS: "1"
run: flutter build linux --release --verbose
+ - name: Prepare Linux release bundle
+ run: python3 scripts/linux/prepare_release_bundle.py build/linux/x64/release/bundle
+
- name: Package
run: |
tar -czf "campfire-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz" \
@@ -545,6 +551,9 @@ jobs:
USE_SYSTEM_SECURE_STORAGE_DEPS: "1"
run: flutter build linux --release --verbose
+ - name: Prepare Linux release bundle
+ run: python3 scripts/linux/prepare_release_bundle.py build/linux/x64/release/bundle
+
- name: Package
run: |
tar -czf "stack_duo-linux-x86_64-${{ steps.ver.outputs.version }}.tar.gz" \
@@ -817,8 +826,8 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
- rustup toolchain install 1.89.0
- rustup default 1.89.0
+ rustup toolchain install 1.99.1
+ rustup default 1.99.1
- name: Configure app
run: |
@@ -903,8 +912,8 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
- rustup toolchain install 1.89.0
- rustup default 1.89.0
+ rustup toolchain install 1.99.1
+ rustup default 1.99.1
- name: Configure app
run: |
@@ -978,10 +987,10 @@ jobs:
- name: Install additional Rust toolchains
run: |
rustup toolchain install 1.85.1
- rustup toolchain install 1.89.0
- rustup default 1.89.0
- rustup target add aarch64-apple-ios --toolchain 1.89.0
- rustup target add x86_64-apple-ios --toolchain 1.89.0
+ rustup toolchain install 1.99.1
+ rustup default 1.99.1
+ rustup target add aarch64-apple-ios --toolchain 1.99.1
+ rustup target add x86_64-apple-ios --toolchain 1.99.1
- name: Configure app
run: |
@@ -1275,8 +1284,8 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
- rustup toolchain install 1.89.0
- rustup default 1.89.0
+ rustup toolchain install 1.99.1
+ rustup default 1.99.1
- name: Configure app
run: |
@@ -1361,9 +1370,9 @@ jobs:
- name: Install Rust toolchains
run: |
rustup toolchain install 1.85.1
- rustup toolchain install 1.89.0
- rustup default 1.89.0
- rustup target add aarch64-apple-darwin --toolchain 1.89.0
+ rustup toolchain install 1.99.1
+ rustup default 1.99.1
+ rustup target add aarch64-apple-darwin --toolchain 1.99.1
cargo install cargo-lipo
- name: Configure app
@@ -1438,10 +1447,10 @@ jobs:
- name: Install additional Rust toolchains
run: |
rustup toolchain install 1.85.1
- rustup toolchain install 1.89.0
- rustup default 1.89.0
- rustup target add aarch64-apple-ios --toolchain 1.89.0
- rustup target add x86_64-apple-ios --toolchain 1.89.0
+ rustup toolchain install 1.99.1
+ rustup default 1.99.1
+ rustup target add aarch64-apple-ios --toolchain 1.99.1
+ rustup target add x86_64-apple-ios --toolchain 1.99.1
- name: Configure app
run: |
### .github/workflows/test.yaml
@@ -1,6 +1,21 @@
name: Test
on: [pull_request]
jobs:
+ linux-release-bundle:
+ runs-on: ubuntu-24.04
+ permissions:
+ contents: read
+ steps:
+ - uses: actions/checkout@v6
+
+ - name: Install ELF test tools
+ run: |
+ sudo apt-get update -q
+ sudo apt-get install -y --no-install-recommends binutils build-essential patchelf python3
+
+ - name: Test Linux release bundle preparation
+ run: python3 -m unittest discover -s scripts/linux/tests -p 'test_*.py' -v
+
test:
runs-on: ubuntu-24.04
permissions:
### Dockerfile
@@ -11,7 +11,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates curl file git gnupg python3 sudo unzip xz-utils \
- automake build-essential cmake debhelper libtool meson ninja-build pkg-config rsync \
+ automake build-essential cmake debhelper libtool meson ninja-build patchelf pkg-config rsync \
clang libclang-dev llvm \
libgcrypt20-dev libgirepository1.0-dev libgit2-dev libglib2.0-dev libgtk-3-dev \
libjsoncpp-dev liblzma-dev libncurses5-dev libncursesw5-dev \
@@ -32,9 +32,9 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
- | sh -s -- -y --default-toolchain 1.89.0 --profile minimal --no-modify-path \
+ | sh -s -- -y --default-toolchain 1.99.1 --profile minimal --no-modify-path \
&& rustup install 1.85.1 1.71.0 stable --profile minimal \
- && rustup target add x86_64-unknown-linux-gnu --toolchain 1.89.0 \
+ && rustup target add x86_64-unknown-linux-gnu --toolchain 1.99.1 \
&& cargo install cargo-ndk \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"
@@ -119,10 +119,10 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
- | sh -s -- -y --default-toolchain 1.89.0 --profile minimal --no-modify-path \
+ | sh -s -- -y --default-toolchain 1.99.1 --profile minimal --no-modify-path \
&& rustup target add \
aarch64-linux-android armv7-linux-androideabi i686-linux-android x86_64-linux-android \
- --toolchain 1.89.0 \
+ --toolchain 1.99.1 \
&& cargo install cargo-ndk \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"
@@ -209,7 +209,7 @@ ENV RUSTUP_HOME=/usr/local/rustup \
PATH=/usr/local/cargo/bin:$PATH
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
- | sh -s -- -y --default-toolchain 1.90.0 --profile minimal --no-modify-path \
+ | sh -s -- -y --default-toolchain 1.99.1 --profile minimal --no-modify-path \
&& chmod -R a+rwX "$CARGO_HOME" "$RUSTUP_HOME"
ENV PATH=/usr/local/go/bin:$PATH
### docs/building.md
@@ -55,8 +55,8 @@ Install [Rust](https://www.rust-lang.org/tools/install) via [rustup.rs](https://
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
-rustup install 1.89.0 1.85.1 1.81.0
-rustup default 1.89.0
+rustup install 1.99.1
+rustup default 1.99.1
cargo install cargo-ndk
```
@@ -187,6 +187,29 @@ flutter pub get
flutter run linux
```
+#### Linux release bundle preparation
+
+After `flutter build linux --release`, run this from the repository root before
+archiving the bundle or using it to build an AppImage or Flatpak:
+
+```sh
+sudo apt-get install binutils patchelf python3
+python3 scripts/linux/prepare_release_bundle.py build/linux/x64/release/bundle
+```
+
+The helper clears the executable-stack flag on the bundled Monero, Wownero and
+Salvium wallet libraries, which modern Linux loaders can otherwise reject. It
+then checks every ELF in the bundle and fails if any still requests an executable
+stack. Other libraries are not patched automatically. Ubuntu 24.04's `patchelf`
+supports the required `--clear-execstack` option. CI runs this before producing
+the Linux tarball, so both downstream packagers inherit the prepared bundle.
+
+Standalone regression tests (also require a C compiler):
+
+```sh
+python3 -m unittest discover -s scripts/linux/tests -p 'test_*.py' -v
+```
+
## Mac host
### Dependencies
@@ -210,12 +233,12 @@ brew install brotli cairo coreutils gdbm gettext glib gmp libevent libidn2 libng
```
<!-- TODO: determine which of the above list are not needed at all. -->
-Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchains 1.81.0, 1.85.1, and 1.89.0 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
+Download and install [Rust](https://www.rust-lang.org/tools/install). [Rustup](https://rustup.rs/) is recommended for Rust setup. Use `rustc` to confirm successful installation. Install toolchain 1.99.1 as well as `cbindgen` and `cargo-lipo` too. You will also have to add the platform target(s) `aarch64-apple-ios` and/or `aarch64-apple-darwin`. You can use the command(s):
```
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
source ~/.bashrc
-rustup install 1.89.0 1.85.1 1.81.0
-rustup default 1.89.0
+rustup install 1.99.1
+rustup default 1.99.1
cargo install cargo-ndk
cargo install cbindgen cargo-lipo
rustup target add aarch64-apple-ios aarch64-apple-darwin
@@ -309,8 +332,8 @@ Install Flutter 3.47.2 on your Windows host (not in WSL2) by [following their gu
### Rust
Install [Rust](https://www.rust-lang.org/tools/install) on the Windows host (not in WSL2). Download the installer from [rustup.rs](https://rustup.rs), make sure it works on the commandline (you may need to open a new terminal), and install the following versions:
```
-rustup install 1.89.0 1.85.1 1.81.0
-rustup default 1.89.0
+rustup install 1.99.1
+rustup default 1.99.1
cargo install cargo-ndk
```
### ios/Runner/AppDelegate.swift
@@ -2,18 +2,21 @@ import UIKit
import Flutter
@main
-@objc class AppDelegate: FlutterAppDelegate {
+@objc class AppDelegate: FlutterAppDelegate, FlutterImplicitEngineDelegate {
override func application(
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
var flutter_native_splash = 1
UIApplication.shared.isStatusBarHidden = false
- GeneratedPluginRegistrant.register(with: self)
if #available(iOS 10.0, *) {
UNUserNotificationCenter.current().delegate = self as? UNUserNotificationCenterDelegate
}
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}
+
+ func didInitializeImplicitFlutterEngine(_ engineBridge: FlutterImplicitEngineBridge) {
+ GeneratedPluginRegistrant.register(with: engineBridge.pluginRegistry)
+ }
}
\ No newline at end of file
### lib/wallets/crypto_currency/coins/dogecoin.dart
@@ -241,9 +241,9 @@ class Dogecoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
Uri defaultBlockExplorer(String txid) {
switch (network) {
case CryptoCurrencyNetwork.main:
- return Uri.parse("https://chain.so/tx/DOGE/$txid");
+ return Uri.parse("https://sochain.com/doge/tx/$txid");
case CryptoCurrencyNetwork.test:
- return Uri.parse("https://chain.so/tx/DOGETEST/$txid");
+ return Uri.parse("https://sochain.com/dogetest/tx/$txid");
default:
throw Exception(
"Unsupported network for defaultBlockExplorer(): $network",
### lib/wallets/crypto_currency/coins/litecoin.dart
@@ -278,9 +278,9 @@ class Litecoin extends Bip39HDCurrency with ElectrumXCurrencyInterface {
Uri defaultBlockExplorer(String txid) {
switch (network) {
case CryptoCurrencyNetwork.main:
- return Uri.parse("https://chain.so/tx/LTC/$txid");
+ return Uri.parse("https://sochain.com/ltc/tx/$txid");
case CryptoCurrencyNetwork.test:
- return Uri.parse("https://chain.so/tx/LTCTEST/$txid");
+ return Uri.parse("https://sochain.com/ltctest/tx/$txid");
default:
throw Exception(
"Unsupported network for defaultBlockExplorer(): $network",
### pubspec.lock
@@ -1032,17 +1032,17 @@ packages:
dependency: "direct main"
description:
path: "."
- ref: "920ac94cf5295df3c3ae083c6a23ff602fb0f068"
- resolved-ref: "920ac94cf5295df3c3ae083c6a23ff602fb0f068"
+ ref: d5cfb763fa62928a6e6265e1f4412738772151eb
+ resolved-ref: d5cfb763fa62928a6e6265e1f4412738772151eb
url: "https://github.com/cypherstack/flutter_libepiccash.git"
source: git
version: "0.0.1"
flutter_libmwc:
dependency: "direct main"
description:
path: "."
- ref: eec0f5ae0ee49d2d6e14c925d61e5d29dbd17be4
- resolved-ref: eec0f5ae0ee49d2d6e14c925d61e5d29dbd17be4
+ ref: d8c5d5488cb00e21d0dc04ad306a65e2d54c4d3c
+ resolved-ref: d8c5d5488cb00e21d0dc04ad306a65e2d54c4d3c
url: "https://github.com/cypherstack/flutter_libmwc.git"
source: git
version: "0.1.0"
@@ -1245,8 +1245,8 @@ packages:
dependency: "direct main"
description:
path: "."
- ref: "3397cf62f30f1467aea781c23d84051441775f14"
- resolved-ref: "3397cf62f30f1467aea781c23d84051441775f14"
+ ref: c8be6a0ea892d744adfacc8e97df891feca49707
+ resolved-ref: c8be6a0ea892d744adfacc8e97df891feca49707
url: "https://github.com/cypherstack/frostdart.git"
source: git
version: "0.3.0"
@@ -2414,11 +2414,11 @@ packages:
dependency: "direct main"
description:
path: "."
- ref: "5586bfa3c48e495bc00f9b56fa18869daf768573"
- resolved-ref: "5586bfa3c48e495bc00f9b56fa18869daf768573"
+ ref: e30ed0d386a40ee4a999aeaf57aafd32921d601e
+ resolved-ref: e30ed0d386a40ee4a999aeaf57aafd32921d601e
url: "https://github.com/cypherstack/tor.git"
source: git
- version: "0.1.0"
+ version: "0.2.0"
tuple:
dependency: "direct main"
description:
@@ -2705,9 +2705,9 @@ packages:
dependency: "direct main"
description:
path: "."
- ref: dc953e2f2e960b7ffbf636fc72ed2142a71ef963
- resolved-ref: dc953e2f2e960b7ffbf636fc72ed2142a71ef963
- url: "https://github.com/xelis-project/xelis-wallet-flutter.git"
+ ref: "8630a2cf28947497ec67b7535ddf1fac4cedbaa8"
+ resolved-ref: "8630a2cf28947497ec67b7535ddf1fac4cedbaa8"
+ url: "https://github.com/cypherstack/xelis-wallet-flutter.git"
source: git
version: "0.4.1"
xml:
### scripts/app_config/templates/ios/Runner.xcodeproj/project.pbxproj
@@ -10,6 +10,7 @@
1498D2341E8E89220040F4C2 /* GeneratedPluginRegistrant.m in Sources */ = {isa = PBXBuildFile; fileRef = 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */; };
3B3967161E833CAA004F5970 /* AppFrameworkInfo.plist in Resources */ = {isa = PBXBuildFile; fileRef = 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */; };
74858FAF1ED2DC5600515810 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 74858FAE1ED2DC5600515810 /* AppDelegate.swift */; };
+ 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */ = {isa = PBXBuildFile; productRef = 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */; };
97C146FC1CF9000F007C117D /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FA1CF9000F007C117D /* Main.storyboard */; };
97C146FE1CF9000F007C117D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FD1CF9000F007C117D /* Assets.xcassets */; };
97C147011CF9000F007C117D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */; };
@@ -25,6 +26,7 @@
51604430FD0FD1FA5C4767A0 /* Pods_Runner.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_Runner.framework; sourceTree = BUILT_PRODUCTS_DIR; };
74858FAD1ED2DC5600515810 /* Runner-Bridging-Header.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Runner-Bridging-Header.h"; sourceTree = "<group>"; };
74858FAE1ED2DC5600515810 /* AppDelegate.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
+ 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = FlutterGeneratedPluginSwiftPackage; path = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage; sourceTree = "<group>"; };
7AFA3C8E1D35360C0083082E /* Release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = Release.xcconfig; path = Flutter/Release.xcconfig; sourceTree = "<group>"; };
9740EEB21CF90195004384FC /* Debug.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Debug.xcconfig; path = Flutter/Debug.xcconfig; sourceTree = "<group>"; };
9740EEB31CF90195004384FC /* Generated.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; name = Generated.xcconfig; path = Flutter/Generated.xcconfig; sourceTree = "<group>"; };
@@ -44,6 +46,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
+ 78A318202AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage in Frameworks */,
B49D91439948369648AB0603 /* Pods_Runner.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
@@ -72,6 +75,7 @@
9740EEB11CF90186004384FC /* Flutter */ = {
isa = PBXGroup;
children = (
+ 78E0A7A72DC9AD7400C4905E /* FlutterGeneratedPluginSwiftPackage */,
3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */,
9740EEB21CF90195004384FC /* Debug.xcconfig */,
7AFA3C8E1D35360C0083082E /* Release.xcconfig */,
@@ -146,6 +150,9 @@
dependencies = (
);
name = Runner;
+ packageProductDependencies = (
+ 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */,
+ );
productName = Runner;
productReference = 97C146EE1CF9000F007C117D /* Runner.app */;
productType = "com.apple.product-type.application";
@@ -176,6 +183,9 @@
Base,
);
mainGroup = 97C146E51CF9000F007C117D;
+ packageReferences = (
+ 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */,
+ );
productRefGroup = 97C146EF1CF9000F007C117D /* Products */;
projectDirPath = "";
projectRoot = "";
@@ -780,6 +790,20 @@
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
+
+/* Begin XCLocalSwiftPackageReference section */
+ 781AD8BC2B33823900A9FFBB /* XCLocalSwiftPackageReference "Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage" */ = {
+ isa = XCLocalSwiftPackageReference;
+ relativePath = Flutter/ephemeral/Packages/FlutterGeneratedPluginSwiftPackage;
+ };
+/* End XCLocalSwiftPackageReference section */
+
+/* Begin XCSwiftPackageProductDependency section */
+ 78A3181F2AECB46A00862997 /* FlutterGeneratedPluginSwiftPackage */ = {
+ isa = XCSwiftPackageProductDependency;
+ productName = FlutterGeneratedPluginSwiftPackage;
+ };
+/* End XCSwiftPackageProductDependency section */
};
rootObject = 97C146E61CF9000F007C117D /* Project object */;
}
### scripts/app_config/templates/ios/Runner/Info.plist
@@ -36,6 +36,27 @@
<string>This app requires Face ID permissions so that the user can securely lock their wallet if their device uses Face ID. It will be useful feature for all users, and especially those prone to forget their login pin on iPhones where Touch ID is not available.</string>
<key>NSPhotoLibraryUsageDescription</key>
<string>This app only reads images you select, such as a picture containing a QR code to scan. It will never access your photo library on its own.</string>
+ <key>UIApplicationSceneManifest</key>
+ <dict>
+ <key>UIApplicationSupportsMultipleScenes</key>
+ <false/>
+ <key>UISceneConfigurations</key>
+ <dict>
+ <key>UIWindowSceneSessionRoleApplication</key>
+ <array>
+ <dict>
+ <key>UISceneClassName</key>
+ <string>UIWindowScene</string>
+ <key>UISceneConfigurationName</key>
+ <string>flutter</string>
+ <key>UISceneDelegateClassName</key>
+ <string>FlutterSceneDelegate</string>
+ <key>UISceneStoryboardFile</key>
+ <string>Main</string>
+ </dict>
+ </array>
+ </dict>
+ </dict>
<key>UIFileSharingEnabled</key>
<true/>
<key>UILaunchStoryboardName</key>
### scripts/app_config/templates/pubspec.template.yaml
@@ -29,7 +29,7 @@ dependencies:
# frostdart:
# git:
# url: https://github.com/cypherstack/frostdart.git
-# ref: 3397cf62f30f1467aea781c23d84051441775f14
+# ref: c8be6a0ea892d744adfacc8e97df891feca49707
# %%END_ENABLE_FROST%%
# %%ENABLE_XEL%%
@@ -39,8 +39,8 @@ dependencies:
# ref: f1e912cf549d311f6ccbb065b1d1d5c70f42b578 # v0.36.0
# xelis_wallet_flutter:
# git:
-# url: https://github.com/xelis-project/xelis-wallet-flutter.git
-# ref: dc953e2f2e960b7ffbf636fc72ed2142a71ef963 # v0.4.1
+# url: https://github.com/cypherstack/xelis-wallet-flutter.git
+# ref: 8630a2cf28947497ec67b7535ddf1fac4cedbaa8 # v0.4.1 + Rust 1.99.1 (cypherstack fork)
# %%END_ENABLE_XEL%%
# %%ENABLE_FIRO%%
@@ -54,21 +54,21 @@ dependencies:
# flutter_libepiccash:
# git:
# url: https://github.com/cypherstack/flutter_libepiccash.git
-# ref: 920ac94cf5295df3c3ae083c6a23ff602fb0f068
+# ref: d5cfb763fa62928a6e6265e1f4412738772151eb
# %%END_ENABLE_EPIC%%
# %%ENABLE_MWC%%
# flutter_libmwc:
# git:
# url: https://github.com/cypherstack/flutter_libmwc.git
-# ref: eec0f5ae0ee49d2d6e14c925d61e5d29dbd17be4
+# ref: d8c5d5488cb00e21d0dc04ad306a65e2d54c4d3c
# %%END_ENABLE_MWC%%
# %%ENABLE_TOR%%
# tor_ffi_plugin:
# git:
# url: https://github.com/cypherstack/tor.git
-# ref: 5586bfa3c48e495bc00f9b56fa18869daf768573
+# ref: e30ed0d386a40ee4a999aeaf57aafd32921d601e
# %%END_ENABLE_TOR%%
# %%ENABLE_XMR%%
@@ -394,16 +394,16 @@ dependency_overrides:
# user_defines:
# tor_ffi_plugin:
# native_build: prebuilt
-# prebuilt_manifest_url: "https://github.com/cypherstack/tor/releases/download/native-0.1.0/manifest.json"
-# prebuilt_manifest_sha256: "00a988a2c0994dff300bb19493e935b0d4eae2b506d02af9dd69ddad65805a24"
+# prebuilt_manifest_url: "https://github.com/cypherstack/tor/releases/download/native-0.2.0/manifest.json"
+# prebuilt_manifest_sha256: "0008ecf60b52a5ba1ffecb2f5951a5d5c4bbffdb71ab470259d62d4abc314c4b"
# flutter_libepiccash:
# native_build: prebuilt
-# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libepiccash/releases/download/native-0.3.0/manifest.json"
-# prebuilt_manifest_sha256: "19be31940f7a58af98f315032d13c0a7c43a45bbcc86847587a6d1593985603a"
+# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libepiccash/releases/download/native-0.3.0-1/manifest.json"
+# prebuilt_manifest_sha256: "ab91bef838c8e658c5167e3ff6599eec1e0db24223de20394658a277913aec38"
# flutter_libmwc:
# native_build: prebuilt
-# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libmwc/releases/download/native-0.1.0-1/manifest.json"
-# prebuilt_manifest_sha256: "956fbf9a9d5d4624d9d7ea19fb4c07057c5612e32efa62f5f609a189ace16276"
+# prebuilt_manifest_url: "https://github.com/cypherstack/flutter_libmwc/releases/download/native-0.1.7/manifest.json"
+# prebuilt_manifest_sha256: "c83b8d57c4bde1f88d580587f8df91480bb083a95e58bbf0f0a3c47855e6522d"
# %%END_ENABLE_NATIVE_PREBUILTS%%
# For information on the generic Dart part of this file, see the
### scripts/linux/prepare_release_bundle.py
@@ -0,0 +1,76 @@
+#!/usr/bin/env python3
+"""Prepare a finished Flutter Linux bundle before tar/AppImage/Flatpak packaging.
+
+Requires patchelf with --clear-execstack support and readelf (binutils).
+Only the known Monero-family wallet libraries are patched; any other ELF that
+requests an executable stack fails validation rather than being silently changed.
+"""
+
+import argparse
+from pathlib import Path
+import shutil
+import subprocess
+import sys
+
+
+WALLET_LIBRARIES = {
+ "monero_libwallet2_api_c.so",
+ "wownero_libwallet2_api_c.so",
+ "salvium_libwallet2_api_c.so",
+}
+
+
+def prepare_bundle(bundle):
+ if not bundle.is_dir() or not (bundle / "lib").is_dir():
+ raise ValueError(f"Not a Flutter Linux bundle (missing lib directory): {bundle}")
+
+ for tool in ("patchelf", "readelf"):
+ if shutil.which(tool) is None:
+ raise ValueError(f"Required tool not found: {tool}")
+
+ files = sorted(path for path in bundle.rglob("*") if path.is_file())
+ for path in files:
+ if path.parent == bundle / "lib" and path.name in WALLET_LIBRARIES:
+ # Never patch a link into the pub cache or another source tree.
+ if path.is_symlink():
+ raise ValueError(f"Wallet library must be a bundled copy, not a symlink: {path}")
+ print(f"Clearing executable-stack flag: {path}", flush=True)
+ subprocess.run(["patchelf", "--clear-execstack", str(path)], check=True)
+
+ # Check the executable and all bundled libraries, including native assets.
+ # A library without PT_GNU_STACK has no explicit executable-stack request;
+ # do not require that header on unrelated artifacts generated by Dart.
+ executable_stacks = []
+ for path in files:
+ with path.open("rb") as source:
+ if source.read(4) != b"\x7fELF":
+ continue
+ result = subprocess.run(
+ ["readelf", "--wide", "--program-headers", str(path)],
+ check=True,
+ capture_output=True,
+ text=True,
+ )
+ for line in result.stdout.splitlines():
+ fields = line.split()
+ # readelf can print flags as either RWE or separate R / E fields.
+ if fields and fields[0] == "GNU_STACK" and "E" in "".join(fields[6:-1]):
+ executable_stacks.append(str(path))
+
+ if executable_stacks:
+ raise ValueError("Executable stack still requested by:\n" + "\n".join(executable_stacks))
+ print(f"Linux bundle executable-stack validation passed: {bundle}")
+
+
+def main():
+ parser = argparse.ArgumentParser(description=__doc__)
+ parser.add_argument("bundle", type=Path, help="Finished Flutter Linux bundle directory")
+ args = parser.parse_args()
+ try:
+ prepare_bundle(args.bundle.resolve())
+ except (OSError, ValueError, subprocess.CalledProcessError) as error:
+ parser.exit(1, f"Linux bundle preparation failed: {error}\n")
+
+
+if __name__ == "__main__":
+ main()
### scripts/linux/tests/test_prepare_release_bundle.py
@@ -0,0 +1,113 @@
+"""Core ELF regression tests; no Flutter, pub cache, network or wallet data.
+
+Run: python3 -m unittest discover -s scripts/linux/tests -p 'test_*.py' -v
+Requires a C compiler, binutils/readelf and patchelf with --clear-execstack.
+"""
+
+import ctypes
+import os
+from pathlib import Path
+import shutil
+import subprocess
+import sys
+import tempfile
+import unittest
+
+
+SCRIPT = Path(__file__).resolve().parents[1] / "prepare_release_bundle.py"
+
+
+class PrepareReleaseBundleTest(unittest.TestCase):
+ @classmethod
+ def setUpClass(cls):
+ cls.fixtures = tempfile.TemporaryDirectory(prefix="linux-elf-fixtures-")
+ cls.addClassCleanup(cls.fixtures.cleanup)
+ cls.exec_so = Path(cls.fixtures.name) / "exec.so"
+ cls.safe_so = Path(cls.fixtures.name) / "safe.so"
+ for path, stack in ((cls.exec_so, "execstack"), (cls.safe_so, "noexecstack")):
+ subprocess.run(
+ ["cc", "-shared", "-fPIC", f"-Wl,-z,{stack}",
+ "-x", "c", "-", "-o", str(path)],
+ input="int fixture_value(void) { return 42; }\n",
+ text=True,
+ check=True,
+ capture_output=True,
+ )
+
+ def setUp(self):
+ self.temp = tempfile.TemporaryDirectory(prefix="linux bundle 'quoted' ")
+ self.addCleanup(self.temp.cleanup)
+ self.bundle = Path(self.temp.name) / "bundle"
+ (self.bundle / "lib").mkdir(parents=True)
+
+ def run_prepare(self, *, expected=0, env=None):
+ result = subprocess.run(
+ [sys.executable, str(SCRIPT), str(self.bundle)],
+ text=True,
+ capture_output=True,
+ env=env,
+ )
+ self.assertEqual(result.returncode, expected, result.stdout + result.stderr)
+ return result
+
+ def copy_library(self, name, *, executable=True):
+ path = self.bundle / "lib" / name
+ shutil.copy2(self.exec_so if executable else self.safe_so, path)
+ return path
+
+ def tool_environment(self, patchelf_body):
+ tools = Path(self.temp.name) / "tools"
+ tools.mkdir()
+ patcher = tools / "patchelf"
+ patcher.write_text("#!/bin/sh\n" + patchelf_body + "\n")
+ patcher.chmod(0o755)
+ return {**os.environ, "PATH": str(tools) + os.pathsep + os.environ["PATH"]}
+
+ def test_all_wallets_are_nonexec_and_loadable(self):
+ for wallet in ("monero", "wownero", "salvium"):
+ self.copy_library(f"{wallet}_libwallet2_api_c.so")
+ self.run_prepare()
+ for path in (self.bundle / "lib").iterdir():
+ with self.subTest(library=path.name):
+ flags = subprocess.check_output(
+ ["patchelf", "--print-execstack", str(path)], text=True,
+ )
+ self.assertEqual(flags.strip(), "execstack: -")
+ self.assertEqual(ctypes.CDLL(str(path)).fixture_value(), 42)
+
+ def test_no_wallets_and_unrelated_files_are_unchanged(self):
+ library = self.copy_library("libunrelated.so", executable=False)
+ asset = self.bundle / "data.txt"
+ asset.write_text("not an ELF\n")
+ original = {path: path.read_bytes() for path in (library, asset)}
+ self.run_prepare()
+ for path, content in original.items():
+ self.assertEqual(path.read_bytes(), content)
+
+ def test_unexpected_executable_stack_is_rejected_not_patched(self):
+ for relative in ("lib/libunexpected.so", "stack_wallet",
+ "lib/native_assets/nested.so"):
+ with self.subTest(path=relative):
+ path = self.bundle / relative
+ path.parent.mkdir(parents=True, exist_ok=True)
+ shutil.copy2(self.exec_so, path)
+ before = path.read_bytes()
+ result = self.run_prepare(expected=1)
+ self.assertIn("Executable stack still requested", result.stderr)
+ self.assertIn(str(path), result.stderr)
+ self.assertEqual(path.read_bytes(), before)
+ path.unlink()
+
+ def test_patchelf_failure_aborts(self):
+ self.copy_library("monero_libwallet2_api_c.so")
+ result = self.run_prepare(expected=1, env=self.tool_environment("exit 23"))
+ self.assertIn("23", result.stderr)
+
+ def test_successful_noop_patchelf_cannot_bypass_validation(self):
+ self.copy_library("monero_libwallet2_api_c.so")
+ result = self.run_prepare(expected=1, env=self.tool_environment("exit 0"))
+ self.assertIn("Executable stack still requested", result.stderr)
+
+
+if __name__ == "__main__":
+ unittest.main()
### tool/wl_templates/TOR_tor_service_impl.template.dart
@@ -10,6 +10,7 @@ import '../../services/fusion_tor_service.dart';
import '../../services/tor_service.dart';
//ON
import '../../utilities/logger.dart';
+
//END_ON
TorService get torService => _getInterface();
@@ -115,8 +116,7 @@ class _TorServiceImpl extends TorService {
return;
}
- _tor!.disable();
- await _tor?.stop();
+ await _tor!.stop();
_updateStatusAndFireEvent(
status: TorConnectionStatus.disconnected,Why this scored 27/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.