Skip to content

Move to MWC wallet 7.0.0 and node 7.2.0 - #18

Open
sneurlax wants to merge 5 commits into
mainfrom
mwc-7
Open

sneurlax wants to merge 5 commits into
mainfrom
mwc-7

Conversation

@sneurlax

@sneurlax sneurlax commented Dec 3, 2026

Copy link
Copy Markdown
Member

Moves the plugin to MWC wallet 7.0.0 and node 7.2.0.

  • The wallet crates come from cypherstack/mwc-wallet silent-7 (Update to upstream 7.0.0 with our hardening mwc-wallet#3), pinned by rev 1b06566e. The node crates come from tag 7.2.0.
  • Before a wallet opens, group write is cleared from its wallet_data tree. 5.3 created it under umask 002, and 7.x refuses group-writable directories.
  • Lockfile updates for url, curve25519-dalek and pin-project-lite.

The exported functions, their arguments and the JSON they return are unchanged, and no Dart file changes. What a caller sees differently:

  • A 5.3 wallet opens with the same password, and its seed file is rewritten in the 7.x format.
  • scanOutputs scans to the tip and returns the tip height, whatever block count it is given.
  • Right after the upgrade, spendable is 0 until the first refresh after a new block.
  • A slatepack send still pending from 5.3 cannot be finalized. It has to be cancelled and sent again.

dnix.lock still names the previous prebuilt libraries and needs regenerating.

Build against cypherstack/mwc-wallet silent-7 (7.0.0 plus our patches)
and cypherstack/mwc-node tag 7.2.0, and port the library to the 7.x API.
The exported functions, their arguments and the JSON they return are
unchanged.

- Each wallet directory gets one MWC context, reused across opens.
  Calls that take no wallet share one context per chain type.
- Sends, slatepack init and finalize pass no TxSession, so the context,
  locks and log entries are stored as each call returns, as in 5.3.
  Receive saves its TxSession before returning the response slate.
- Finalize posts through owner::post_tx, which runs 7.x's preflight.
- The Owner API gets no Tor config, so the wallet never starts Arti.
- Scanning always runs to the chain tip (7.x scans against an anchor at
  the tip) and returns the tip height; the block count is ignored.
- MQS listener start and stop go through the per-context broker.
- Transaction JSON gets "payment_proof": null back, since 7.x dropped
  the field from TxLogEntry.
Picks up the atomic seed replacement, the response size limits, the MQS
no_proxy change and the move of 5.3 transaction contexts to the current
format.
The 5.3 plugin created wallet_data and everything in it with the process
umask. On desktops with umask 002, the Ubuntu default, the directories
are group-writable, and MWC 7 refuses to open a wallet directory that
group or other can write ("has unsafe group/other write permissions
775"), so existing wallets would not open.

Before each open, clear group write on entries under wallet_data that we
own and whose group is our primary group. World-writable entries and
entries owned by another user are left for MWC 7 to reject.
cargo audit: url 2.5.9 fixes RUSTSEC-2026-0592, curve25519-dalek 5.1.0
fixes RUSTSEC-2026-0620, and pin-project-lite 0.2.17 was yanked.
Picks up the updater change that stops each balance query from printing
the chain height to stdout.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant