From 58d88c9f53c0563d0c9f2d52fd0b2dea9ff84b83 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Wed, 15 Jul 2026 00:24:03 +0700 Subject: [PATCH 1/2] fix(wallet): adapt shielded spends to the SDK's per-operation resolver; pin at v4.1-dev tip MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The latest v4.1-dev (88949b7144) lands the seedless shielded bind (platform #4125/#4126): shieldedWithdraw/shieldedUnshield now take a per-operation MnemonicResolver supplying the Orchard spend authority. Pass MnemonicResolver() at both ShieldedTransferCoordinator call sites (the SDK holds it alive across the FFI call via withExtendedLifetime — same shape as SwiftExampleApp). Pin note refreshed to the newly verified tip. Co-Authored-By: Claude Fable 5 --- DASHSYNC_MIGRATION.md | 6 ++++-- .../InternalTransfer/ShieldedTransferCoordinator.swift | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/DASHSYNC_MIGRATION.md b/DASHSYNC_MIGRATION.md index 6222f916d4..746f6747e6 100644 --- a/DASHSYNC_MIGRATION.md +++ b/DASHSYNC_MIGRATION.md @@ -45,8 +45,10 @@ included. ## Platform pin The app builds against sibling `../platform` on **`v4.1-dev`** (verified -2026-07-12: dashpay arm64-sim build green at app tip `62a7eb40c` against -`origin/v4.1-dev` tip `0bfdc5745c`). Every app-required surface is upstream: +2026-07-15: dashpay arm64-sim build green at app tip `62a7eb40c` against +`origin/v4.1-dev` tip `88949b7144`; the seedless-shielded-bind API drift — +`shieldedWithdraw`/`shieldedUnshield` gaining a per-operation +`resolver:` — is adapted in `ShieldedTransferCoordinator`). Every app-required surface is upstream: tx decoding (`TransactionDecoder`, key-wallet-ffi route), DashPay fee threading, `RawKeySigner` (#4097), the testnet faucet client (#4098), classified SPV peers, and the filter-rescan FFI (#4099). The `local/tx-decode-plus-v4.1-dev-dashwallet` diff --git a/DashWallet/Sources/UI/Payments/InternalTransfer/ShieldedTransferCoordinator.swift b/DashWallet/Sources/UI/Payments/InternalTransfer/ShieldedTransferCoordinator.swift index 91ae3fb16d..87d906fb77 100644 --- a/DashWallet/Sources/UI/Payments/InternalTransfer/ShieldedTransferCoordinator.swift +++ b/DashWallet/Sources/UI/Payments/InternalTransfer/ShieldedTransferCoordinator.swift @@ -380,6 +380,10 @@ final class ShieldedTransferCoordinator: ObservableObject { do { try await env.manager.shieldedWithdraw( walletId: env.walletId, + // Per-operation Orchard spend authority (seedless shielded + // bind, platform #4125/#4126); the SDK holds the resolver + // alive across the FFI call via withExtendedLifetime. + resolver: MnemonicResolver(), account: 0, toCoreAddress: coreAddress, amount: amountCredits) @@ -444,6 +448,8 @@ final class ShieldedTransferCoordinator: ObservableObject { do { try await env.manager.shieldedUnshield( walletId: env.walletId, + // Per-operation Orchard spend authority — see above. + resolver: MnemonicResolver(), account: 0, toPlatformAddress: platformAddress, amount: amountCredits) From 2b4c061b8257ec16ab6f3a6950d6b566ed171d96 Mon Sep 17 00:00:00 2001 From: Quantum Explorer Date: Wed, 15 Jul 2026 00:24:38 +0700 Subject: [PATCH 2/2] docs(dashsync): tighten pin-note wording after tip refresh Co-Authored-By: Claude Fable 5 --- DASHSYNC_MIGRATION.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DASHSYNC_MIGRATION.md b/DASHSYNC_MIGRATION.md index 746f6747e6..3352b28963 100644 --- a/DASHSYNC_MIGRATION.md +++ b/DASHSYNC_MIGRATION.md @@ -54,8 +54,9 @@ tx decoding (`TransactionDecoder`, key-wallet-ffi route), DashPay fee threading, and the filter-rescan FFI (#4099). The `local/tx-decode-plus-v4.1-dev-dashwallet` integration branch is retired. -No open nuances: the verified tip `0bfdc5745c` IS the merge of -[platform #4049](https://github.com/dashpay/platform/pull/4049), so +No open nuances: the verified tip includes +[platform #4049](https://github.com/dashpay/platform/pull/4049) (merged as +`0bfdc5745c`), so `send_payment` returns the exact fee (Σinputs − Σoutputs via dashpay/rust-dashcore#872) and the faucet captcha's aggregate proof-of-work cap ([#4100](https://github.com/dashpay/platform/pull/4100))