Commit graph

464 commits

Author SHA1 Message Date
488eb94e28 Merge pull request 'wallet: derive readiness from the wallet's get_height, not a nonexistent get_info' (#204) from wt/t_e4e55a04 into main
All checks were successful
android-ci / android (push) Successful in 11m31s
ci / test (push) Successful in 29m44s
ci / sdk (push) Successful in 2m6s
v0.8.0
Reviewed-on: #204
2026-10-31 05:49:06 +00:00
717a33b4c2 Merge branch 'main' into wt/t_e4e55a04
Some checks failed
ci / test (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
2026-10-31 05:48:56 +00:00
83e9527a5f Merge pull request 'wallet_child: spawn errors must name argv[0] and refuse a bin that is not an executable file' (#203) from wt/t_af5bbc1a into main
All checks were successful
ci / test (push) Successful in 7s
ci / sdk (push) Successful in 7s
android-ci / android (push) Successful in 11m37s
Reviewed-on: #203
2026-10-31 05:47:27 +00:00
3092b9d63e Merge branch 'main' into wt/t_af5bbc1a
Some checks failed
ci / test (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
android-ci / android (pull_request) Has been cancelled
2026-10-31 05:47:21 +00:00
rust-dev
3aafaefae8
wallet: derive readiness from the wallet's get_height, not a nonexistent get_info
Some checks failed
ci / test (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
monero-wallet-rpc does not implement get_info (-32601 Method not found); it
exists on the daemon only. Every wallet therefore sat in syncing forever:
no balance, spends refused, receipts never verified.

Readiness is now the pair:
- the wallet RPC's own get_height (its scanned height), and
- the chain tip from the existing daemon client (GET /get_height).

ready = height > 0 && (tip == 0 || height + 2 >= tip). The 2-block slack is
deliberate: the tip moves every ~2 min and the two reads are not a snapshot.
A daemon that does not answer, a missing height and -13 No wallet file are
all not-ready, never an error banner.

ChildConfig::daemon_probe_addr resolves a tip source for clearnet remotes
(the wallet child already dials them); a .onion daemon is not dialled without
the SOCKS child and stays fail-closed. docs/WALLET.md now documents the real
rule. Tests cover -32601 get_info, equal tip, slack boundary, dead daemon and
the no-wallet-file answer.
2026-10-31 01:35:15 -04:00
dddf74f274 Merge pull request 'android wallet: self-heal the stored wallet_rpc_bin, gate Start/Create, one info banner' (#202) from wt/t_d63f9279 into main
All checks were successful
android-ci / android (push) Successful in 11m30s
Reviewed-on: #202
2026-10-31 05:33:17 +00:00
a0b704cd09 Merge branch 'main' into wt/t_d63f9279
Some checks failed
android-ci / android (pull_request) Has been cancelled
2026-10-31 05:33:07 +00:00
agent
a375ef9d1e
wallet_child: name argv[0] in spawn errors and pre-flight the RPC bin
All checks were successful
ci / test (pull_request) Successful in 29m37s
ci / sdk (pull_request) Successful in 10s
The Android report was `spawn monero-wallet-rpc: No such file or directory
(os error 2)` — the label, not the argv[0] that failed, so a bare name and
an absolute jniLibs path read identically.

- spawn() now prints the label and argv[0]: `spawn monero-wallet-rpc
  (/data/app/.../libmonerowalletrpc.so): ...`, errno verbatim.
- check_wallet_rpc_bin() pre-flights the resolved bin before anything is
  spawned: not found / not a file / not executable, with the configured
  path in the message. No PATH search, no fallback.
- A bare wallet_rpc_bin is refused where a child has no PATH to resolve it
  (cfg(target_os = "android")), in ChildConfig::validate() and in the
  start-path pre-flight. Desktop keeps the bare-name default.
- Tests for each refusal and for the argv[0] error; the node test that
  asserted the old `spawn` copy now asserts the path.
2026-10-31 01:23:18 -04:00
agent
3cd70ca9b5
android wallet: self-heal the stored wallet_rpc_bin, gate Start/Create, one info banner
All checks were successful
android-ci / android (pull_request) Successful in 11m51s
Device report (v0.7.0): Start died with `spawn monero-wallet-rpc: No such
file or directory`, and Create answered with the desktop TUI's `wallet not
configured — open F7 …`. Both were reachable states on the phone, so the
screen offered two dead ends.

- WireViewModel: `healStoredWalletBin()` re-points a stored wallet_rpc_bin
  that this device cannot execute at the resolved nativeLibraryDir path,
  preserving kind/mode/host/port/datadir/filename, skipping receive-only,
  and never overwriting a stored path that is a real executable file. It
  runs on wallet-screen open and again at the top of `startWalletChild()`,
  which then re-reads the stored record and refuses to spawn when the path
  still cannot run — writing the named path instead of ENOENT.
- Gate: `startGateReason()` = existing `startBlockedReason()` plus
  `storedWalletBinBlockedReason()`, which names the stored path, the
  resolved path, or the absent-binary message (unchanged strings).
  `shouldStartAfterSelectingChain()` now takes that reason, so a mode tap
  stores the source but cannot launch what Start would refuse.
- Create/Import: `walletSetupBlockedReason()` disables both controls with a
  sentence until the child answers; the TUI's unconfigured copy is mapped by
  `walletFailureText` to a phone sentence, so `open F7` and
  ONIONWIRE_WALLET_RPC never render.
- Banner: `walletFailureBanner()` paints `WALLET_NOT_OPEN_TEXT` as one info
  banner (or nothing when the No-wallet-open hint is already up), never as
  the red `Wallet error`; the sticky error is cleared when a wallet opens.
  Real failures (connect refusals, exited) still paint red.

Tests: 241/241 `:app:testDebugUnitTest`, including the four required cases.
Not verified on a device — no adb/device on this host.
2026-10-31 01:10:34 -04:00
b5f3829c23 Merge pull request 'fuzz: pass the 4th bootstrap arg (hybrid ML-KEM peer key)' (#201) from wt/t_a866e490 into main
Reviewed-on: #201
2026-10-31 03:29:04 +00:00
7c1da42e7b Merge branch 'main' into wt/t_a866e490 2026-10-31 03:28:55 +00:00
agent
9d93fb5cfa
fuzz: pass the 4th bootstrap arg (hybrid ML-KEM peer key)
RatchetState::bootstrap gained remote_kem_pub in b22abd7 (PR #185), so the
fuzz target has not compiled since 2026-10-20 and the nightly fuzz job has
been red for ten days.

Pass None for the classical shape and a real ML-KEM-768 encapsulation key
(crate::kem::PK_LEN bytes, built once from a fixed 64-byte seed) for the
hybrid shape, so both bootstrap paths are fuzzed. The invariants are
unchanged: arbitrary bytes never panic, a parsed state re-serializes, and a
rejected frame rolls back to the exact pre-decrypt state.
2026-10-30 23:24:58 -04:00
fb45143695 Merge pull request 'docs: point the docs at v0.7.0, and name the Android UI overhaul' (#200) from docs/release-v0.7.0 into main v0.7.0 2026-10-31 03:03:02 +00:00
sirius
6216475b13
docs: point the docs at v0.7.0, and name the Android UI overhaul
The README and VERIFY.md pinned downloads to v0.5.0 while v0.6.0 had already
shipped, so every documented asset URL was two versions stale. A release tags
the default-branch tip, so the fix has to land before the cut, not after.

Also one sentence on the Android section: the APK's UI is now a design-token
system with a three-tab shell, which android/README.md documents in detail.
2026-10-30 23:04:43 -04:00
20d2d00e4d Merge pull request 'ui: wallet hero card, node card and the P4/P5 verification sweep' (#199) from ui/refactor-wallet-node into main
Some checks failed
android-ci / android (push) Has been cancelled
Reviewed-on: #199
2026-10-29 06:19:57 +00:00
76f6661171 Merge branch 'main' into ui/refactor-wallet-node
All checks were successful
android-ci / android (pull_request) Successful in 11m4s
2026-10-29 06:19:45 +00:00
890620763f Merge pull request 'ui: design system, app shell and messenger refactor (plan P1-P3)' (#198) from ui/refactor-shell-messenger into main
All checks were successful
android-ci / android (push) Successful in 11m19s
Reviewed-on: #198
2026-10-29 05:13:59 +00:00
agent
9b3a0ad177
ui: drop two imports the wallet screen no longer uses
All checks were successful
android-ci / android (pull_request) Successful in 11m57s
2026-10-29 01:03:51 -04:00
agent
ef149ac496
ui: one door to the saved-wallet catalogue
All checks were successful
android-ci / android (pull_request) Successful in 15s
The wallet tab was carrying "Saved wallets" twice: once as a top-bar action
(the alpha screen's "Wallets" text link, which I kept when I moved the screen
onto OwTopBar) and once in the hero card's header, where the plan puts it. Two
controls that do the same thing on one page is how a screen starts to look
unfinished.

The hero header keeps it; the top bar is a title and nothing else.
2026-10-29 01:02:59 -04:00
agent
0d0b0b975d
ui: saved-wallets screen and profile copy on the shared components (plan P4.1)
All checks were successful
android-ci / android (pull_request) Successful in 14m2s
The catalogue screen was still the alpha build: a TopAppBar with a text "Back"
and a text "Refresh", eight hand-rolled Cards on Material's surfaceVariant,
outlined twins for the two secret actions, and every failure — including "no
wallet is open", which is a state the app is in, not a failure — printed as a
raw red Text. It now uses the shared components: a chevron top bar, OwCard rows
with an "In use" pill, and OwButton tiers.

Copy, verbatim from the plan:

  "No wallet is open in the wallet child yet. Open a saved wallet on the Saved
   wallets screen, or create or import one here."
      -> "Select a saved wallet or create a new one to view your balance and
         transact."

  "No wallet is open in the wallet child yet. Open one from the list below — a
   wallet that needs a passphrase asks for it here — and the balance, address
   and backups work again."
      -> "Open or create a wallet to enable balance, address, and backup
         controls."

WALLET_NOT_OPEN_TEXT is now rendered as an info banner with its own title, not
as an error; ErrorText picks the variant from the text, so the same string
cannot read as a crash on one screen and a state on the other. The "no wallet
open" hint, the passphrase prompt's blocked reasons and its "wallet is not
running" line, and the catalogue/keys failures are banners too.

The two remaining user-facing mentions of the daemon process are gone: the
passphrase card says "the wallet is pointed at <file>" and the secrets block
reason says "the wallet is not running". ProfileScreen's empty-address notice
loses its copy of the same phrase ("then comes from the running wallet"), and
its test now asserts the consequence instead of the internal name.

No behaviour change: every predicate (walletSecretsEnabled,
walletPassphraseSubmitEnabled, walletChildReadable, walletFailureText,
displayLastError) is the same function with the same branches; only strings and
layout moved. The four WalletManagerTest assertions that pinned the old strings
are updated here, in the same commit, as the card requires.
2026-10-29 01:01:50 -04:00
agent
1d7cbd8503
ui: hero wallet card and node card, and the status copy behind them (plan P4)
The wallet tab was nine equal boxes: a balance card, a daemon card, and then
four outlined twins (Invoice/Tip, Create/Import) pushed below the fold under a
wall of grey helper text. This rebuilds it as two cards.

Hero card. While no wallet file is open the card says "No Wallet Active" with
the plan's subtitle and puts Create Wallet (primary) / Import Wallet
(secondary) first, with Saved wallets in the card header. Once a wallet is
open the balance is the headline at 28sp bold with a sync-state pill, then the
gated receive address and its QR, then Receive / Invoice and Send / Tip, and a
destructive Lock Wallet. Creating and importing a further wallet stay reachable
in both states, and so does invoicing in the no-wallet state: the core resolves
a payee address from the profile, so hiding the action there would drop a path
that works ("no receive address - set profile xmr or ONIONWIRE_WALLET_RPC" is
the both-missing case). A tip really does need the wallet, so it appears only
when one is open.

Node card. The raw "connecting . in-process mainnet pruned . node starting .
sync 485253/3794383" line is replaced by a status sentence, a percentage, a 6dp
progress track and "Block 485,253 of 3,794,383" with the free disk on the
right; the full line is still the header's contentDescription, so a screen
reader loses nothing. The three stacked mode buttons become one segmented
control, Remote vs On-Device is a second one, and the lifecycle is a single
context-aware control (Start Node and Wallet, or Stop Node while it runs)
instead of a permanently disabled twin. Every raw paragraph (no binary, no
wallet open, start blocked, core error) is now an AlertBanner.

Fail-closed rules are unchanged and now tested: target_height == 0 prints no
percentage (it is "no target reported", never "caught up", which is what
Cuprate reports at the tip), a height past the target clamps at 100.0%, and an
unrecognised state is never green. The wallet off / err sentinels still come
back from the core untouched; only their display changed, to "No Wallet Loaded"
and "Balance unavailable".

Deliberate, and named in the handoff: WalletScreen drops its onBack parameter
because Wallet is a top-level tab now (MainActivity updated; Chats and Settings
already have no back affordance), and OwSegmentedControl gains an optional
testTags list - additive, defaulting to empty, so no existing call site
changes.
2026-10-29 01:01:39 -04:00
apk-dev
dc45d9cb81
ui: route the last raw buttons through OwButton, with a content slot
All checks were successful
android-ci / android (pull_request) Successful in 14m48s
Chat's send, Profile's save, and both Rotate actions were still material
Buttons — the 50%-rounded pill the design pass exists to remove. They now
take the design-system shape and height.

OwButton gains an optional RowScope content slot so a caller that needs a
spinner beside its label (chat send while a message is pending) keeps that
behaviour without dropping back to a raw Button. The slot is additive: the
existing text/leading-icon path is unchanged for every other caller.

Rotate's confirm is the Destructive tier — it destroys the current onion —
and the post-rotation action is labelled "Share the new invite" instead of
"Back — share the new invite": the top bar already owns the chevron back.
2026-10-29 00:44:22 -04:00
apk-dev
5a4701992e
ui: mute the empty-state shield and set its heading to the plan's 18sp
All checks were successful
android-ci / android (pull_request) Successful in 14m56s
The plan asks for a *muted* mint/grey icon inside the subtle surface circle and
an 18px/600 heading. The first pass drew the shield in full accent at 16sp
SemiBold, which made the empty state read as a warning and competed with the
primary CTA under it. The accent now stays on the button only.
2026-10-29 00:22:16 -04:00
apk-dev
7d86fd6a03
ui: drop the stale key-type phrase and pin the DrawableRes param target
All checks were successful
android-ci / android (pull_request) Successful in 14m54s
Two nits the plan's own greps would have flagged:

- `ChatScreen`'s `peer` KDoc still spelled out the key type. It is an
  internal comment, but the acceptance grep for the removed identity copy
  (`ed25519 pubkey`) should come back empty across `ui/`, not empty-except-
  a-comment.
- `OwTab`'s `@DrawableRes` is now `@param:`-targeted, which silences Kotlin's
  KT-73255 warning about the annotation moving to the backing field.
2026-10-29 00:15:47 -04:00
agent
a7b7792b3f
ui: About rows, and drop the removed copy from the roster's own KDoc
The SDK/key-type footnote moved to Node and Settings, so it should not survive
as a quoted string in ui/ either — the About card now shows IDENTITY ed25519 and
SDK <version> as label plus mono value, which is the design system's idiom for a
machine fact. Same reasoning for the KDoc: it describes the change instead of
pasting the strings that were removed.
2026-10-29 00:06:07 -04:00
agent
b65c990014
ui: cap the invite payload card and shorten the settings tab label
Two things the emulator run surfaced:

- The invite payload is about a kilobyte, so the plain Text card grew past the
  screen and pushed Copy invite / Done below the fold on a phone. Four lines
  with an ellipsis: the copy button carries the whole string, and the QR is the
  primary path anyway.
- "Node & Settings" as a 10sp label in a third of the bottom bar is one OEM font
  scale away from wrapping. The tab says "Settings"; the destination screen keeps
  its "Node & Settings" title.
2026-10-29 00:05:17 -04:00
agent
0283e6bf48
ui: app shell, messenger and invite refresh (plan P2 and P3)
Plans P2 and P3 are one change: the shell decides who calls the roster, so the
roster cannot land before it. The tree is green at this commit, which is why
they are not split.

Shell (P2)
- The horizontal text-link bar is gone. Three top-level destinations hang off a
  persistent 64dp bottom bar — Chats (default), Wallet, Node and Settings — and
  everything else is a sub-screen behind a chevron.
- MainActivity owns the shell: a Scaffold with the tab bar around a NavHost of
  chats / wallet / settings plus share, paste, chat, profile, wallets and
  rotate. Tab selection pops back to the start destination and restores saved
  state, so a chat left open behind the Wallet tab survives a trip to Settings.
- The node keeps living on the wallet screen, where its card already is, so the
  third tab is the security surface: profile, saved wallets, rotate identity,
  delete message history, the keep-alive status row, and — disclosed here
  instead of under the roster — the identity/SDK lines that made the home screen
  read as a test build.
- OwTopBar: 20sp bold title, optional "Tor active" pill beneath it, a 36dp
  padlock surface for Lock, and the overflow. Rotate identity, saved wallets and
  delete history live in the overflow; the destructive two go through a typed
  confirmation dialog or the typed ROTATE screen, never a single tap.
- Insets: the tab bar consumes the navigation-bar inset and
  LocalBottomBarPresent tells screens inside the shell not to pad for it again,
  so there is no double gap above the tabs and the IME still wins when the
  keyboard is up.
- window.isNavigationBarContrastEnforced = false on Q+, so the system's
  translucent scrim does not draw a second band over the canvas.

Messenger (P3)
- The identity block is one bar: identicon, "Your identity", the truncated
  fingerprint in mono, a copy-invite icon and a QR icon. Gone from here: the
  YOU (stable forever) card, the "sdk … · identity = ed25519 pubkey" line and
  the keep-alive paragraph. The full fingerprint and locator stay on the profile
  and invite screens.
- The empty state says what to do and offers both ways out ("Add contact",
  "Share my invite"), and keeps the honest sentence: invites are not
  discoverable.
- Friend rows: petname, short mono fingerprint, and a locator shortened as
  head…tail.onion — the suffix is never the part that is cut, and a v3 onion is
  never soft-wrapped.
- Invite sharing shows a QR of the payload beside the copyable text; the clip is
  marked sensitive on API 33+.

No ViewModel, SDK, Tor or wallet call changed. Every callback is the call the
old screens made; the wallet screens are untouched for the next card.
2026-10-28 23:51:51 -04:00
agent
5f2a6a184f
ui: design tokens and the shared component set (plan P1)
One palette, one geometry, one button. The alpha build had a four-colour
darkColorScheme and every screen inventing its own pill, which is why the app
read as a debug harness; `ui/Theme.kt` now carries the tokens and new UI takes
them from `OwColors` / `OwRadius` / `OwSize` instead of Material defaults.

Tokens (§1.1, §1.2): canvas #0A0C0E, surface #12161A, interactive #1C2228,
border #262E36, mint accent #2EE59D, text #F3F5F7 / #9BA3AE / #5E6773, and the
amber/crimson status triples. Cards are 16dp; buttons and inputs are 12dp
squircles; 999dp survives only for status pills. Typography is system sans for
chrome, and `MonoStyle` is the single mono style, reserved for pubkeys,
truncated locators, seeds, host:port and block heights.

Primitives (§1.3), in `ui/components/`:
- OwButton — primary / secondary / outline / destructive, exact heights and
  radii, no elevation;
- OwSegmentedControl — one track, accent selected segment, animated;
- OwAlertBanner — warning / error / info with a status icon and a tinted
  surface;
- OwCard, OwDivider, OwPill, OwStatusDot, TorStatusPill, OwSectionTitle,
  OwIconButton (36dp), Identicon, OwConfirmDialog (typed confirmation),
  OwQrCode (zxing, light plate for scanning).

Fourteen single-colour vector icons, so no `material-icons-extended` (a
multi-MB dependency) and no icon font. `Label`/`Mono` moved here from the
roster so the design system is not owned by one screen.

Behaviour: none. These are pure view helpers.
2026-10-28 23:51:29 -04:00
4e8342b2d8 Merge pull request 'kdf: version Argon2id profiles (legacy stores still open) and raise the default to 64 MiB / t=3' (#194) from onionwire/t_fb6ffa87-strengthen-and-version-the-store-backup into main
All checks were successful
android-ci / android (push) Successful in 13m0s
ci / test (push) Successful in 45m56s
ci / sdk (push) Successful in 2m16s
v0.6.0
Reviewed-on: #194
2026-10-26 16:13:08 +00:00
4cf0a09ceb Merge branch 'main' into onionwire/t_fb6ffa87-strengthen-and-version-the-store-backup
Some checks failed
ci / sdk (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
2026-10-26 16:13:01 +00:00
713dbd9006 Merge pull request 'pay: domain-separate tip and make legacy signature acceptance one switch' (#193) from onionwire/t_438331aa-close-the-legacy-signature-surface-and-d into main
Some checks failed
android-ci / android (push) Has been cancelled
ci / test (push) Successful in 36m49s
ci / sdk (push) Successful in 2m8s
Reviewed-on: #193
2026-10-24 22:11:53 +00:00
d3f1a44ef6 Merge branch 'main' into onionwire/t_438331aa-close-the-legacy-signature-surface-and-d
Some checks failed
ci / sdk (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
android-ci / android (pull_request) Has been cancelled
2026-10-24 22:11:41 +00:00
56c0b67cdf Merge pull request 'docs: ADR for a post-quantum bootstrap epoch (epoch 0)' (#190) from onionwire/t_8fb1a517-decision-doc-post-quantum-bootstrap-epoc into main
Reviewed-on: #190
2026-10-24 22:10:48 +00:00
d1a8aeccd0 Merge branch 'main' into onionwire/t_8fb1a517-decision-doc-post-quantum-bootstrap-epoc
Some checks failed
android-ci / android (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
ci / test (pull_request) Has been cancelled
2026-10-24 22:10:35 +00:00
d3a28a5c1c Merge pull request 'wallet: keep RPC spend credentials out of env, argv and error strings' (#192) from onionwire/t_79e98511-wallet-rpc-keep-spend-credentials-out-of into main
All checks were successful
android-ci / android (push) Successful in 12m16s
ci / test (push) Successful in 23m25s
ci / sdk (push) Successful in 4m7s
Reviewed-on: #192
2026-10-23 02:46:27 +00:00
af9077046b Merge branch 'main' into onionwire/t_79e98511-wallet-rpc-keep-spend-credentials-out-of
Some checks failed
android-ci / android (pull_request) Successful in 11m10s
ci / test (pull_request) Has been cancelled
ci / sdk (pull_request) Has been cancelled
2026-10-23 02:46:18 +00:00
rust-dev
8f959e937f
kdf: version Argon2id profiles and raise the default to 64 MiB / t=3
All checks were successful
ci / test (pull_request) Successful in 29m38s
ci / sdk (pull_request) Successful in 2m7s
The store and identity backup shared one hard-coded Argon2id profile
(m=19456 KiB, t=2, p=1) with nothing recorded on disk, so changing it
would have bricked every existing store and backup.

Record the profile with the data and raise the default:
- KdfProfile { Legacy = 0, Current = 1 }; Current is m=65536 KiB,
  t=3, p=1, out=32.
- Backups: seal() writes a profile byte after owbak1. Legacy blobs
  (exactly SEALED_BODY_LEN after MAGIC) still open; an unknown id is
  an error, never a fallback.
- Stores: store_meta gains kdf_profile (additive, default 0). The
  SQLCipher file key has no place to record a profile before the db
  opens, so a legacy file is detected by trial-opening with the
  legacy profile, then rekeyed to Current in one SQLCipher
  transaction; store_meta is re-wrapped (salt + ciphertext + profile)
  in a single transaction on the first successful unlock. Both are
  one-shot: the next start takes the current path.
- docs/THREAT_MODEL.md states the new params and the versioning.

Measured in release on this host: kdf legacy 0.018s / current 0.095s;
Store reopen current 0.354s, legacy upgrade path 0.528s.
2026-10-22 22:29:28 -04:00
rust-dev
b8c52ca97d
pay: domain-separate tip and gate legacy signature acceptance
All checks were successful
ci / test (pull_request) Successful in 19m52s
ci / sdk (pull_request) Successful in 2m16s
`tip` was the one payment frame with no domain tag: sign_tip signed the
LF-joined fields, so its signature could be confused with any other
newline-joined preimage. Mirror inv/rcp: sign_tip now emits
"onionwire-tip-v1" || 0x00-separated txid/amount/address/memo/ts, and
verify_tip tries that form then the historical layout.

Legacy acceptance is now one switch instead of nine call sites:
`pay::LEGACY_SIGS` (default true) plus `pay::legacy_sigs()`. Every v1 /
concat fallback reads it — the `onionwire:v1` invite string and its two
historical signature forms, `loc`, `inv`, `rcp`, and `tip`. `prf` is not
gated here because src/profile.rs is outside this card's file scope; the
spec says so.

Tests: legacy-on keeps every untagged form verifying (incl. a new tip
case); legacy-off rejects each untagged form while the tagged form still
verifies (loc, inv, rcp, tip, invite); sign_tip is pinned to the tagged
layout.

docs/PROTOCOL.md gains the emitted/accepted table per signed frame and
the mixed-fleet consequence.
2026-10-22 22:23:44 -04:00
1b562ca149 Merge pull request 'android: gate the Keystore passphrase key on device unlock, and migrate old installs' (#191) from onionwire/t_a84365da-android-gate-the-keystore-passphrase-key into main
All checks were successful
android-ci / android (push) Successful in 12m53s
Reviewed-on: #191
2026-10-23 02:20:40 +00:00
agent
625879e000
wallet: redact RPC creds everywhere and warn once on a login from env
All checks were successful
ci / test (pull_request) Successful in 19m31s
ci / sdk (pull_request) Successful in 2m3s
The app-spawned child already takes its login from the sealed store record
and only falls back to ONIONWIRE_WALLET_RPC_LOGIN; make that order explicit
in the code and name the exposure once per process when the fallback is used.

The dial URL still carries user:pass (Wallet::from_url needs it), but no
rendering path repeats it: Endpoint::redacted and WalletClient::redacted_url
print http://<redacted>:<redacted>@host:port/json_rpc, WalletClient has a
hand-written Debug, and error/status copy redacts the whole login, not just
the password half.

Residual, documented at the top of wallet_child.rs: --rpc-login is visible in
/proc/<pid>/cmdline to same-uid processes because monero-wallet-rpc has no
other credential channel.
2026-10-22 22:20:12 -04:00
apk-dev
d64114ca1c
android: gate the Keystore passphrase key on device unlock, and migrate old installs
All checks were successful
android-ci / android (pull_request) Successful in 11m41s
`setUnlockedDeviceRequired(true)` is now set on the key that wraps the store
passphrase (API 28+; below that the pre-gate path is unchanged and logs which
branch ran). `setUserAuthenticationRequired(false)` is untouched: the gate only
refuses while the lock screen is up, it is not a biometric prompt, so an
unattended unlock on an unlocked device still works.

A Keystore key cannot be retrofitted, so the gate needs a second alias:
`onionwire.store.unlock-gated` is generated with the flag and is the only key a
fresh install creates; `onionwire.store` is the pre-gate key and exists only on
installs that stored a passphrase earlier. Migration runs the next time the
passphrase is in hand (save(), or a successful load() — never inside open(),
which must not generate keys):

  1. seal under the unlock-gated key (created here if needed)
  2. write the blob to `…bin.tmp`
  3. read those bytes back, open them with the gated key alone, compare to the
     passphrase in hand — failure drops the temp file, throws SecretUnavailable
     with the reason, and leaves the previous blob and key untouched
  4. rename the temp file over the blob
  5. only now delete the pre-gate alias

A crash before 4 leaves the old blob and key intact; a crash between 4 and 5
leaves a working gated blob plus a stale alias the next save/unlock retires.
`open()` tries the gated key first and falls back to the pre-gate key, so that
window is harmless. `forget()` deletes both aliases.

Reporting is honest about a platform limit: `KeyInfo` exposes
`isUserAuthenticationRequired` but has no getter for the unlock requirement, so
nothing can ask the Keystore whether the flag stuck.
`KeystorePassphraseCipher.unlockGateReport()` reports our own bookkeeping (which
alias the live key was generated under) plus `platformReportsGate = false`, and
a device whose Keystore refuses the flag falls back to the ungated alias and
says so instead of claiming the gate. A locked device that makes the gated key
unusable is reported as "the device is locked", not as a GCM tag failure.

Instrumentation: migration happy path (gated key appears, pre-gate alias gone
only after the on-disk blob opens under the new key), a failed re-wrap (old key
and blob byte-identical, no temp file), the gated proof refusing a pre-gate
blob, and the crash window still unlocking. Logcat lines print
MANUFACTURER/MODEL/SDK_INT and the branch taken. Not run here: no device or
emulator on this host. JVM suite still 213 tests / 0 failures; androidTest
sources compile.
2026-10-22 22:08:06 -04:00
rust-dev
53d7f47b89
docs: ADR for a post-quantum bootstrap epoch (options A/B/C, decision C)
Records why epoch 0 is prekey-derived: one-shot Noise sessions plus
both-send-first convergence forbid a per-session secret with no wire field.
Evaluates a one-time prekey batch in the invite, a per-session epoch field in
the hybrid header, and accepting the window; picks accept with named revisit
triggers. No code or protocol change.

Measured facts used: v2 invite is 1930 chars; each ML-KEM-768 OPK adds 1584
base64url chars; MAX_INVITE is 4096; the TUI QR path (qrcode 0.14.1,
EcLevel::M) caps at 2331 bytes.
2026-10-22 22:01:34 -04:00
36969a7e95 Merge pull request 'ci: give android-release publish job the always() prefix' (#189) from fix/android-release-publish-if into main 2026-10-21 03:40:35 +00:00
sirius
99ea4e17ac
ci: give android-release's publish job the always() prefix it needs
Run 770 built the APK and AAR and uploaded them as an artifact, then the release
never received them: /actions/runs/770/jobs lists only `android`, because a
job-level `if` that reads `needs.android.result` on this runner is evaluated as
unset and the job is dropped before it is created. A dropped job is invisible -
it is not a red job and not a skipped job in the job list - so the run reads
green while the release is missing two assets.

release.yml's publish job already carries `always() &&` for exactly this reason
(its comment cites run 135). Mirror it. Nothing else changes: the job is still
gated on android succeeding and on dry_run being false.
2026-10-20 23:42:21 -04:00
08bf6649df Merge pull request 'release: stage dist before signing, and sign via a named volume' (#188) v0.5.0 2026-10-21 02:59:22 +00:00
Hermes DevOps
46baf67a14
release: stage dist before signing, and sign via a named volume
The publish job has never completed. Two plumbing bugs, no crypto involved:

1. The sign step ran `docker run -v "${GITHUB_WORKSPACE}:/work"`.
   GITHUB_WORKSPACE is a path INSIDE the job container, but docker resolves a
   bind mount's source on the HOST, where that path does not exist — so /work
   arrived empty and the script was absent. Run 768 failed with
   "bash: .ci-tools/scripts/sign-release.sh: No such file or directory" (127).
   Rehearsed locally against the pinned image: the bind mount yields an empty
   /work, the same command with a named volume + docker cp signs and
   self-verifies all four assets. Use the build jobs' pattern.

2. Signing ran before the files it signs existed. The find+cp loop that fills
   dist/ lived in the publish step, after the signature step. Move it into its
   own "Stage both arch artifacts into dist" step before signing, and let
   publish only validate dist/.

Fail-closed design unchanged: no MINISIGN_SECRET_KEY stops before any upload,
signing still precedes publishing, and the tag cleanup step is untouched.
docs/RELEASING.md described the old publish job; it now matches the workflow.
2026-10-20 23:01:09 -04:00
5d10cb3d00 Merge pull request 'release: commit the minisign public key' (#187) from release/signing-pubkey into main 2026-10-21 02:34:18 +00:00
sirius
37b08595a4
release: commit the minisign public key
The signing step has never run: there was no keypair, so no .pub in the tree and
no MINISIGN_SECRET_KEY secret. scripts/sign-release.sh resolves its public key at
.ci-tools/scripts/onionwire-signing.pub, which is this path in the CI checkout,
so it exited on "no public key" before minisign was ever invoked. Release run 767
died here and its fail-closed cleanup deleted the tag it had created; nothing was
published.

Generated with `minisign -G -W` (no passphrase: CI cannot answer a prompt, and a
passphrase stored beside the key in the same secret store protects nothing). The
secret half lives only in the Forgejo Actions secret MINISIGN_SECRET_KEY; it is
not in this repository and never has been. Procedure: docs/VERIFY.md,
"Maintainer: the signing key".

Public key: RWRWHhuty5VhgHpdAsbzMVNLmu1mztJblfxv06HjtVcrKHKS75792Jb+
2026-10-20 22:36:10 -04:00
bd806a1f50 Merge pull request 'docs: point the docs at v0.5.0, and say why a download 404s or 403s' (#186) from docs/release-version into main
All checks were successful
android-ci / android (push) Successful in 13m23s
2026-10-21 00:02:51 +00:00
sirius
57d1bb0bd2
docs: point the docs at v0.5.0 and explain why a download 404s or 403s
All checks were successful
android-ci / android (pull_request) Successful in 12m20s
README, android/README, VERIFY and the two release scripts all named v0.14.0,
a version that was never tagged or released - the newest tag is v0.4.0, so the
documented download URLs were dead. Align them with the version this release
cuts (minor bump off v0.4.0 -> v0.5.0).

VERIFY.md gains a Check 0: /releases/latest/download/... is not served by this
Forgejo (404, pin the tag), and Cloudflare answers a non-browser User-Agent with
403 error code 1010 even on a correct URL (measured: browser 206, curl 206,
Python-urllib 403).
2026-10-20 19:51:50 -04:00