# Grant Application - Private Ironwood Memo Retrieval for iOS Wallets

**URL:** <https://forum.zcashcommunity.com/t/grant-application-private-ironwood-memo-retrieval-for-ios-wallets/59548>\
**Category:** Applications\
**Created:** [November 23, 2026, 5:39am UTC](https://forum.zcashcommunity.com/t/grant-application-private-ironwood-memo-retrieval-for-ios-wallets/59548 "2026-11-23T05:39:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Creativesonchain](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/creativesonchain/32/40751_2.png) [@Creativesonchain](https://forum.zcashcommunity.com/u/Creativesonchain)\
**Post date:** [November 23, 2026, 5:39am UTC](https://forum.zcashcommunity.com/t/grant-application-private-ironwood-memo-retrieval-for-ios-wallets/59548/1 "2026-11-23T05:39:21Z")

</div>

### **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](https://github.com/CreativesOnchain/zcash-ios-memo-proof/actions/runs/45073979280)

### **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](https://forum.zcashcommunity.com/t/announcing-fastz-cash-rpc-by-zcash-labs/59478/3)

### **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](https://github.com/Zkignal/zignal/tree/1341797872c97c21a7d9f83e1936f89d876fbcec/vendor/zcash-swift-wallet-sdk)  
[Valar’s wallet integration guide](https://github.com/valargroup/wallet-pir/blob/09bcd8c8b79b14f3dd6599a07fc9ba72017616a3/docs/enhance/integration.md)

### **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](https://github.com/Zkignal/zignal/tree/1341797872c97c21a7d9f83e1936f89d876fbcec/vendor/zcash-swift-wallet-sdk)

### **Open Source License**

MIT

### **Hardware/Software Costs (USD)**

1. 

### **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:

- Milestone: 2 — Missing memos after outages, upgrades and chain changes  
Amount (USD): 10000  
Expected Completion Date: 2027-01-12  
User Stories:

- Milestone: 3 — Physical-iPhone validation and public release  
Amount (USD): 6000  
Expected Completion Date: 2027-01-30  
User Stories:

### **Supporting Documents**

Native iOS proof, run #5

> <https://github.com/CreativesOnchain/zcash-ios-memo-proof/actions/runs/45073979280>

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

> <https://github.com/CreativesOnchain/zcash-ios-memo-proof/blob/618291485878c70d66856dc25cbfa853436eaa62/patches/zignal-sdk.diff>

Reproduction instructions and pass criteria

> <https://github.com/CreativesOnchain/zcash-ios-memo-proof/blob/618291485878c70d66856dc25cbfa853436eaa62/README.md#what-the-native-proof-measures>

---

<div class="post-metadata">

**Author:** ![AgentEmbassy](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/agentembassy/32/50901_2.png) [@AgentEmbassy](https://forum.zcashcommunity.com/u/AgentEmbassy)\
**Post date:** [November 23, 2026, 8:14am UTC](https://forum.zcashcommunity.com/t/grant-application-private-ironwood-memo-retrieval-for-ios-wallets/59548/2 "2026-11-23T08:14:05Z")

</div>

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.
