BlueWallet upstream integration — 2026-11-07

Upstream master: c4874c5aad91a72b8df7e3c72407456c07a47ffe
Prior upstream base: 629fcca52430a6ac5027c56b9f5f00f58b1b6359
Preserved build24 checkpoint: 6479d50d5
Integration merges all40 upstream commits; the six configuration conflicts are
resolved for the active minimal Resatoshi application. Upstream UI/iOS/Lightning
scaffolding remains in source but is not added to this Android product or its
runtime dependencies. Active entry is index.js -> resatoshi/App.tsx, with native
source set android/app/src/resatoshi.

Version0.1.20-preview retained, internal versionCode25.
Application ID and signing key unchanged. Existing seed/passphrase derivation,
network parameters, Keychain service and encrypted backup formats unchanged.
Server mode remains default; opening the app must not start Core automatically.
Core source/executable unchanged, commit89089ee5ae02aa4692d041f141487c1f2f5e782f.
ARM64 Core SHA256: 50f3afecc828914336580bde55022d8e4697bc20ef62fdeecbf243809b7dd464

Dependencies/toolchain
bitcoinjs-lib7.0.5, bip39 3.1.2, @noble/secp256k1 3.2.0,
React19.3.0/RN0.88.1 and matching codegen/Gradle plugin/Metro/Babel/TS config,
camera fork cc1ec91f85dcfc50336a49125ac287076a78005d (18.0.1), SVG15.16.0.
Gradle9.4.1, AGP9.2.1 (RN plugin catalog), Kotlin2.2.0, SDK37.0/build-tools37,
NDK28.2.13676358; target SDK36 and minimum SDK24 retained. Embedded Core keeps
its existing NDK27 build and API24 ABI. New tools do not alter its consensus code.

Compatibility decisions
- Keep the fork's minimal package manifest and postinstall/security patches.
- Regenerate the lockfile and notices for the actual installed dependency tree.
- Pin transitive stacktrace-parser0.1.11, matching upstream's lockfile: npm tried
  to fetch unavailable0.1.13 without this override. No new direct dependencies.
- Keep upstream's android.builtInKotlin=false / android.newDsl=false settings.
- Use upstream's react-native-legacy-deep-imports TypeScript condition for the
  camera fork. Public generated RN types reject its old Codegen deep imports.
- Remove the no-longer-supported StatusBar backgroundColor prop; the app root
  already owns its background. Keep the rest of the layout and wallet flow.
- Update the active React host, explicitly pass Application to PackageList, and
  retain WalletSecurityPackage and FullNodePackage registration.
- Native smoke now exercises registered FullNode/WalletSecurity/Keychain modules,
  and checks that app opening did not launch Core before the explicit start.
- Preserve TLS hostname validation, API<=29 PIN compatibility, frozen camera-prop
  protection, secure-window flags and private-key-disabled Core wallet policy.

Validation
PASS: strict TypeScript;97 active-wallet regression cases, no skips/failures.
PASS: actual two-node Core integration: balance, signing, P2P/mining, QR PSBT,
pruning/corruption gates and fresh reconstruction preserving wallet funds.
PASS: ARM64 Preview/Fullnode assembly and Preview lint; x86_64 native/test build.
PASS: Android35 update-install over build24: healthy existing descriptors remain,
corrupt metadata/cache isolation and repair, scan epoch reset, shared stop path.
Smoke uses the registered FullNode module and requires WalletSecurity/Keychain
modules to be present; app opening is checked not to automatically start Core.
PASS: original signing certificate and unchanged packaged ARM64 Core hash.
Physical-device camera/PIN/thermal/battery and real OS timeout scheduling remain
release checks. No mainnet signing/broadcasting, remote push or publication.
PASS: original workspace reinstalled the exact lockfile with offline npm ci;
postinstall reproduced the same notices/security patches;97 tests and strict
TypeScript passed again. Final ARM64 Preview/Fullnode builds and lint passed
from that original workspace, not only the integration worktree.
PASS: Android35 mainnet index/pruned sync at height15227, then fresh-chain
recovery and another node restart restored descriptor attestations. No private
keys entered Core and no mainnet transaction was signed or broadcast.
PASS: Android TLS handshake to the real Electrum endpoint with HTTPS hostname
validation, server.version and header0/genesis verification. The registered TCP
bridge is present; this read-only test sends no wallet public key to the server.
PASS: actual JS UI opens Settings -> connection mode, displays native stopped
and free-space status, retains server default, and switches to full-node mode
with the wallet tree remounted. Mode selection alone keeps Core stopped; pidof
confirmed no executable running. This checks JS/native promise dispatch as well
as direct native instrumentation. Evidence XML is stored with the artifacts.
