Grant Application - Private Ironwood Memo Retrieval for iOS Wallets

Project Summary

We will add an opt-in feature to the Swift wallet SDK used by Zignal so an iOS app can read the memo on a confirmed Ironwood payment without sending that payment’s transaction ID to lightwalletd. If the private retrieval service is offline, the payment will remain visible and the wallet will fetch its memo on the next successful sync after service returns.

Project Description

We will release a version of Zignal’s Swift wallet SDK that an iOS developer can build from source, point at a compatible Valar private information retrieval (PIR) service, and use through the existing getMemos API.

We tested one synthetic payment in the iOS Simulator against local services. The unmodified SDK requested the full transaction by ID once. The patched SDK returned the same 512-byte memo through one successful encrypted Valar query. On receipt and refresh, it sent zero requests naming that transaction to the lightwalletd test server. With Valar offline, the wallet still recognized the confirmed payment, kept the memo pending and retried privately on refresh.

The outage test ended with Valar still offline. The grant funds the work to finish that pending memo after service returns, handle app restarts and wallet upgrades, and ship a release tested on an iPhone.

iOS Simulator run and decoded requests

Proposed Problem

Zignal carries messages inside Zcash shielded memos. Its wallet can recognize an incoming payment in Zcash’s Ironwood shielded pool from compact blocks before it has all the bytes needed to read the message. In the Swift SDK we tested, the next step was a GetTransaction request to lightwalletd. The message stayed encrypted. The request told the server exactly which transaction that connection wanted to read. Tor can conceal the phone’s IP address while the transaction ID remains visible to the server. Omitting the lookup leaves the app without the message bytes.

On November 21, 2026, Zignal’s developer described this decision while evaluating fastz.cash as a server option. They asked whether transaction IDs from GetTransaction requests were logged and whether a Swift wallet could use the private retrieval service available to Vizor.

Zignal developer’s question

Proposed Solution

When a wallet detects a confirmed Ironwood payment, it will use Valar to request the encrypted data needed for the memo. The wallet will check the response against the output it found on-chain, decrypt the memo locally and make it available to the app. During an outage, the app can display the payment with a “memo pending” status. The SDK will save the pending work and retry through the network route the app selected, without falling back to a transaction-ID lookup.

Solution Format

A tagged Swift SDK release with its Rust source, a small iOS example and an integration guide. The public repository will include pinned dependencies, synthetic test inputs and a GitHub Actions workflow that publishes the test verdicts and decoded requests.

Dependencies

The integration uses Zignal’s copy of the Swift SDK, its Rust wallet backend and Valar’s existing Enhance PIR client and service. A deployed app needs access to a compatible endpoint. Reviewers can run the endpoint locally. Builds require macOS, Xcode and Rust. Validation uses an iOS Simulator and one physical iPhone.

Swift SDK version used in the proof
Valar’s wallet integration guide

Technical Approach

The SDK will retain the output position and compact note data needed to verify a private response. If an existing wallet lacks those details for an earlier payment, the SDK will rescan the relevant compact blocks. Before writing a memo, it will compare Valar’s chain reference with the wallet’s scanned chain, confirm the output is still present and authenticate the returned data locally.

In the proof, a full-transaction request remained queued after the memo arrived. The release will track memo completion separately, so a refresh can skip a memo already stored and the app can see which transaction details are still pending. When an app requires Tor, Valar requests will use the SDK’s Tor HTTP client. If that route fails, the memo will remain pending.

Upstream Merge Opportunities

We will publish a patch against the ZcashLightClientKit source that Zignal builds into its app. The Swift changes cover retrieval and retry behavior. The Rust changes cover note verification and database updates. We will make the patch available for upstream review and publish a tagged version that compatible apps can build directly. The release schedule is independent of an upstream merge.

Target SDK source

Open Source License

MIT

Hardware/Software Costs (USD)

Hardware/Software Justification

None.

Service Costs (USD)

$500

Service Costs Justification

Up to $500 for temporary access to a physical iPhone and a macOS build environment for release testing.

Compensation Costs (USD)

$24,500

Compensation Costs Justification

245 hours at a blended rate of $100 per hour.

$9,000 — 90 hours for Swift and Rust integration, network routing and tracking pending memos.
$10,000 — 100 hours for retries after outages and restarts, existing-wallet database upgrades and handling replaced blocks.
$5,500 — 55 hours for physical-device tests, release builds, integration instructions and milestone reporting.

Total Budget (USD)

$25,000

Previous Funding

No

Previous Funding Details

No response

Other Funding Sources

No

Other Funding Sources Details

No response

Implementation Risks

An older wallet may lack the compact note data needed to read a memo privately. A service may also be behind the wallet or answer against a block that the network has since replaced. The SDK will rescan missing data, check the chain reference before writing and leave the memo pending when verification fails. We will test both an upgraded database and a delayed response from a replaced block.

Potential Side Effects

During an outage, recipients can see a confirmed payment before they can read its memo. Full transaction details, such as fees, may also remain unavailable after the memo arrives. The SDK will expose these states separately. The service can still observe connection timing and the IP address used to reach it. We will document the selected network route and measure the bytes transferred on an iPhone.

Success Metrics

  1. The private SDK returns the same 512 memo bytes as the stock SDK. Across receipt, refresh and retry, decoded lightwalletd requests contain zero lookups for the memo transaction or the separate ID used to test status checks.

  2. After an outage and app restart, the confirmed payment stays visible. The next successful sync after service returns fills the memo. Another refresh makes no duplicate memo query.

  3. An upgraded wallet reads a previously missing memo. If a block is replaced, a stale response cannot attach its memo to a payment shown as confirmed.

  4. A reviewer can build the tagged release and repeat the simulator checks. A physical-iPhone report gives the device model, iOS version, elapsed time from payment detection to memo availability, and bytes transferred for the same payment in stock and private modes.

Startup Funding (USD)

$0

Startup Funding Justification

None

Milestone Details

  • Milestone: 1 — Swift integration and pending memos
    Amount (USD): 9000
    Expected Completion Date: 2026-12-18
    User Stories:

    • As an iOS developer, I want to enable private retrieval while keeping my existing memo API and the network route my app requires.
      Deliverables:
    • A buildable SDK and sample app with opt-in retrieval, persistent memo state and Tor routing.
      Acceptance Criteria: The sample reads the expected memo through getMemos. A further refresh makes no duplicate memo query. A separate status request stays pending and visible to the app. With Tor selected, the test records use of the Tor HTTP client and no direct fallback when that route fails.
  • Milestone: 2 — Missing memos after outages, upgrades and chain changes
    Amount (USD): 10000
    Expected Completion Date: 2027-01-12
    User Stories:

    • As a recipient, I want the message on a confirmed payment to appear when service returns, even if I closed or updated the app.
      Deliverables:
    • Retries that survive restart, compact-block rescanning for older wallets, and handling for replaced blocks.
      Acceptance Criteria: Receive the test payment with Valar stopped, restart the app, bring Valar back and sync. The wallet retrieves the expected memo once. An upgraded test database passes the same byte check. After a block is replaced, a delayed reply cannot make its payment’s memo appear as confirmed. The request logs show zero ordinary lookups for the tested IDs.
  • Milestone: 3 — Physical-iPhone validation and public release
    Amount (USD): 6000
    Expected Completion Date: 2027-01-30
    User Stories:

    • As a wallet maintainer, I want to build the release myself and understand its effect on iPhone data use and memo loading time.
      Deliverables:
    • A tagged source release, device report, integration guide, CONTRIBUTING.md and reproducible CI results.
      Acceptance Criteria: A reviewer can build the example from the tag and repeat the simulator checks with synthetic data. The iPhone report records memo loading time and bytes transferred in stock and private modes for the same payment.

Supporting Documents

Native iOS proof, run #5

The ios-memo-proof artifact includes results.json with the three test verdicts and requests.jsonl with the decoded requests.

Exact Swift and Rust patch tested in run #5

Reproduction instructions and pass criteria

Welcome, and thank you for posting this here, Creativesonchain.

The part that stood out to us is the outage shape: in your proof the patched SDK returned the same 512-byte memo through one encrypted Valar query, with zero requests naming that transaction to the lightwalletd test server — and when Valar was offline, the payment stayed visible with the memo pending, rather than falling back to a transaction-ID lookup. Keeping the private route when things are working is one thing; refusing the leaky fallback when they are not is the harder choice, and it is good to see it designed in from the start.

We look forward to seeing the restart and upgrade cases covered as the work continues.