Terms and Conditions
- I agree to the Grant Agreement terms if funded
- I agree to Provide KYC information if funded above $50,000 USD
- I agree to disclose conflicts of interest
- I understand that this grant program is only eligible for completed work, as it is a retroactive grant program. Applications for planned or partially completed work will not be considered. All completed work will be verified and accepted by its intended users or their representatives, who will confirm that the outputs meet the required quality, functionality, and usability before the work is listed as an option for Coinholder voting.
- I agree that for any new open-source software, I will create a CONTRIBUTING.md file that reflects the high standards of Zcash development, using the
librustzcashstyle guides as a primary reference. - I understand when contributing to existing Zcash code, I am required to adhere to the project specific contribution guidelines, paying close attention to any merge, branch, pull request, and commit guidelines as exemplified in the librustzcash repository.
- I understand all grants are valued in USD but will be disbursed in Shielded ZEC. I acknowledge and accept that disbursement amounts may fluctuate based on the ZEC/USD exchange rate at the time of payment.
Application Owners (@octocat, @octocat1)
@kaladinlight, @gomesalexandre
Organization or Individual Name
ShapeShift DAO
Additional Team Members
- Name: kaladinlight
Role: Senior Engineer, ShapeShift DAO (current contributor)
Responsibilities: Zcash transactions in the bitcoinjs-lib fork, native signing, Zcash indexer, chain adapter, Maya, NU6.2/NU6.3/NU7 upgrades, ZEC in the public API, widget deposit-address flow, swap-service deposit detection
- Name: gomesalexandre
Role: ShapeShift DAO engineer Feb 2022 to Mar 2026, now at Vultisig
Responsibilities: Ledger and Trezor signing, ZEC on NEAR Intents, production rollout and wallet gating, Blockchair fallback
- Name: NeOMakinG
Role: ShapeShift DAO engineering, code review
Responsibilities: reviewed the Ledger, Trezor and fallback PRs (device tests listed under Proof of completion) (web#11337, web#11338, web#11346, web#11374)
How did you learn about the Lockbox: Coinholder Retroactive Grants Program?
Zcash Community Forum, Q4 2026 call for proposals.
Requested Grant Amount (USD)
$22,380
Category
Integration
Project Summary
ShapeShift, a free, open-source, self-custodial app, added Ledger and Trezor signing for transparent ZEC, ZEC swaps on NEAR Intents, ZEC in its public swap API and a widget you can pay by sending ZEC to a deposit address, and fixed sends after NU6.2, NU6.3 and NU7. ZCG#81 paid for hosting and marketing with $0 for engineering, and its milestones are excluded here; this request prices only the engineering outside them, at cost. 311 swaps carrying ShapeShift's referral have since moved $5.85M of ZEC.
Project Description
Read this first
- Transparent only. ShapeShift wallets hold and send transparent ZEC, and do not support shielded balances. October 2025 press reports of "shielded transactions" in ShapeShift overstated what exists. The widget's deposit address is transparent. You can pay it from a shielded wallet (we tested with Zodl) and our swap service finds the deposit. We refuse unified addresses as a swap destination because we have not yet proven shielded delivery through NEAR Intents.
- Prior grant. ZCG#81 (2025, $50,000) paid for a year of node hosting ($36,000) and marketing ($14,000), with "Compensation Costs: None". Its milestones (node, native wallet, Maya swapper, testing, go-to-market) are excluded from this request; see "Scope intentionally excluded". ShapeShift said it would return about $8,420 of the marketing money and we found no record that it did, so this request subtracts it.
- Fees. ShapeShift takes an affiliate fee on swaps, ZEC included: $34,866 to the DAO on ZEC swaps from 5 Dec 2025 to 6 Nov 2026 (see Usage). That is more than this ask. We don't net the two: the fees fund the DAO across every chain, including the ZCG#81 milestone engineering it paid for itself, and this ask prices only engineering no grant covered.
What ZEC users can do today
| Capability | Where | Live since | In ZCG#81? |
|---|---|---|---|
| Balance, history, send and receive (transparent) | ShapeShift app, built-in wallet | Dec 2025 | yes, excluded |
| Signing with Ledger | hdwallet-ledger | Dec 2025 | no |
| Signing with Trezor | hdwallet-trezor | Dec 2025 | no |
| Swaps via Maya | swapper | Jan 2026 | yes, excluded |
| Swaps via NEAR Intents | swapper | Dec 2025 | no (see below) |
| Swaps via THORChain | swapper | Oct 2026 | no |
| ZEC quotes and trades for third-party integrators | public API | Jun 2026 | no |
| ZEC listed in the embeddable swap widget (signing handed to the app) | swap widget | Jun 2026 | no |
| Pay a ZEC swap by sending to a transparent deposit address, no wallet connection | widget, public API, swap-service | Sep 2026 | no |
NEAR Intents was not a ZCG#81 deliverable (the proposal named only Maya). The completion post called it a bonus. We price it here.
Usage. From 5 Dec 2025 to 6 Nov 2026, swaps carrying ShapeShift's referral (app, API and widget) settled 311 ZEC trades worth $5.85M on the ZEC leg, and 72% of them bought ZEC. THORChain is shown apart because those swaps mostly did not come from our app (below).
| NEAR Intents | Maya | Total | THORChain (apart) | |
|---|---|---|---|---|
| Completed swaps | 246 | 65 | 311 | 55 |
| ZEC-leg volume (USD) | $3,243,413 | $2,606,143 | $5,849,556 | $200,668 |
| Buy ZEC / sell ZEC | 172 / 74 | 52 / 13 | 224 / 87 | 53 / 2 |
| Affiliate fees received by the DAO | $19,077 | $15,789 | $34,866 | $20 |
- The median swap is $116 and the largest $490,673 (DAI to ZEC, 9 Oct 2026). 89% of the volume came in April, July and October 2026, mostly swaps of 2 to 7 BTC into ZEC.
- 243 distinct transparent ZEC addresses took part. That is a proxy, not a user count: one person can use many addresses.
- The window starts 5 Dec 2025, three days before the production switch-on, so it includes 13 NEAR Intents swaps ($102 in all) and 2 Maya buys ($11) from before the release, most likely our own testing. They are included; without them it is 296 swaps and still $5.85M.
- THORChain swaps carry ShapeShift's
ssaffiliate at only 1 bps, far below our app's 60 bps default, and it is a secondary affiliate on three of them. The first two (3 Oct) came before the app could route ZEC on THORChain (5 Oct), and 51 of the 55 ($198K) pay out to one address on 27 and 28 Oct. They are most likely another integrator's swaps, so we leave them out of the totals. - Swaps made through our public API and widget carry the same referral and are included.
- ZEC is 15.6% of all USD volume ShapeShift has routed through NEAR Intents since 1 Dec 2025: $3.29M of $21.08M counted on the input side (so slightly above the $3.24M ZEC-leg figure in the table), in 246 of 2,536 completed swaps (9.7%). The share swings with a few large swaps, from 2 to 12% in the other full months to 42%, 51% and 77% in April, July and October 2026 (24% for 1 to 6 Nov).
- Any single swap can be checked without an account on 1Click's public status endpoint, for example the largest one:
/v0/status?depositAddress=0xabe5...Af9b. - Source and method, reproducible from public data: the NEAR Intents explorer (ZEC sold, ZEC bought), and Midgard's actions endpoint for Maya (
ssmaya) and THORChain (ss), each priced with the venue's own USD values. DAO fees are what reached the DAO's own accounts; on NEAR Intents the app requests twice the DAO's fee because 1Click keeps half (APP_FEE_SPLIT_MULTIPLIER = 2), and only the DAO's half is counted here.
Work packages claimed (all merged and public):
-
Ledger. Every Ledger send was rejected at broadcast. Four causes, documented in
ZCASH_LEDGER_IMPLEMENTATION.md(hdwallet#765):splitTransactionneeded the["zcash","sapling"]additionals to parse previous transactions;- the wrong
isSegwitflag made the Ledger Zcash app quit over USB; - the Ledger library version we had pinned still used the NU6 branch ID after NU6.1 activated, fixed by moving to
@ledgerhq/hw-app-btc10.13.0; - the main one, inside Ledger's own
@ledgerhq/hw-app-btc: it computes each previous txid with Bitcoin's double SHA-256, while Zcash v5 uses the ZIP-244 txid, so the device signed a spend of an input that does not exist. We replacedgetTrustedInputBIP143for Zcash inputs only and feed it the real txid from our indexer. Every other coin still runs Ledger's code.
Then:
- shared UTXO derivation fixed for bs58check v4 (hdwallet#763);
- Ledger PSBTs moved onto our own bitcoinjs-lib fork, which also fixed back-to-back sends spending unconfirmed change (hdwallet#768, web#11374);
- Ledger enabled in the app (web#11337);
- the fix kept working when hdwallet moved into the web monorepo (commit 5df2c1b0b6);
- later folded into one pnpm patch of
hw-app-btc@10.13.0(web#12638).
ZCG#81 said Ledger would only be "considered", and its completion post listed it under "what's next".
-
Trezor. Version, version group ID and branch ID passed to Trezor Connect, fixing "incorrect consensus branch id" (hdwallet#766); Trezor enabled in the app (web#11338); ZEC hidden on wallets that can't sign it (web#11307, web#11327).
-
NEAR Intents and THORChain. ZEC mapped to NEAR Intents 1Click, live at launch (web#11298). That mapping is two lines because it sits on our NEAR Intents swapper (web#11016, Nov 2025), so we also price ZEC's share of that swapper by USD volume (15.6%, about half a day). THORChain ZEC swaps first appear in October 2026 (3 Oct in our affiliate data), and our automated asset regeneration picked ZEC up on 5 Oct (web#12732) with no new code, because the adapter and memo path were already there.
-
Network upgrades. Every upgrade changes the consensus branch ID that signatures commit to. NU6.2 (web#12443) restored native and Trezor; NU6.3 (web#12638) did the same and found Ledger had been broken since NU6.2, fixed its branch table, and moved the Zcash consensus constants into one shared file. An upgrade still touches that file plus the branch table in our Ledger library patch, and needs a release and a send test on each wallet. NU7 is fixed in web#12825, and mainnet sends after the fix went through from native (2676d2d3…) and Ledger (771b5388…). Trezor takes the branch ID from the host, so the same fix applies; we have not made a Trezor mainnet send since NU7.
-
Public API. ZEC in the API's supported chains (web#12432) and a Zcash adapter wired into the API (web#12446), so third parties quote and execute ZEC swaps with no Zcash infrastructure of their own. Deposit-address swaps tracked from the quote alone (web#12652).
-
Swap widget and swap-service. ZEC in the embeddable widget (web#12435, web#12588, web#12768). Then a deposit-address flow, so anyone can swap by sending funds from any wallet on NEAR Intents and Chainflip routes. The widget cannot sign Zcash transactions, so a ZEC sell inside the widget goes through the deposit flow (web#12663). Most of this code serves every chain, so we price only the Zcash share:
- quote, QR, amount, countdown and status (web#12594);
- deposit addresses for NEAR Intents and Chainflip, with a longer quote deadline when either leg is on a UTXO chain such as Zcash (web#12650);
- Zcash address validation: t1/t3 accepted, unified addresses refused with a Zcash-specific message (web#12653);
zcash:payment URIs (web#12651) and explorer links for ZEC deposits (web#12670);- NEAR reports no origin hash for a payment from a shielded pool, so swap-service scans the deposit address's history to find it (microservices#67).
Tested on mainnet: ZEC to ETH paid from Zodl, and ZEC to Base USDC.
-
Reliability. A Blockchair fallback when our indexer fails (web#11346, closing web#11344, "Zcash sends failing in all envs"); retries when a new block is not yet indexed, a race production logged on Zcash and Litecoin (unchained#1308, priced at the Zcash share).
Scope intentionally excluded (ZCG#81 milestones and budget lines, listed for context, priced at $0):
- Zcash transaction support in our bitcoinjs-lib fork, ZIP-243/244 (bitcoinjs-lib#3), and built-in wallet signing (hdwallet#760): milestone 2.
- The Zcash coinstack and its fee endpoint (unchained#1198, unchained#1225): milestone 1. Hosting: the $36,000 line.
- The app's chain adapter and production rollout (web#11290, web#11308): milestone 2.
- Maya, including zcashd RPC for OP_RETURN memos (web#11299, unchained#1254): milestone 3.
- Keeping the node up inside ZCG#81's hosting year: the NOWNodes migration (unchained#1267) and BIP44 xpub paths (unchained#1275).
- Marketing: the $14,000 line.
Technical Approach (how you did it)
- Signing. Transparent v5 transactions with the ZIP-244 sighash and txid (and v4 with ZIP-243 for earlier network upgrades), in ShapeShift's bitcoinjs-lib fork, used by the built-in wallet and, since hdwallet#768, for Ledger PSBTs. Branch ID and activation height live in one file,
packages/hdwallet-core/src/bitcoin.ts, shared by native, Ledger and Trezor; the Ledger library patch below carries its own copy of the branch table. - Ledger. Rather than fork Ledger's library for one coin, the Zcash path is one pnpm patch of
@ledgerhq/hw-app-btc@10.13.0: the branch-ID table for each upgrade plus the ZIP-244 trusted-input fix, applied to Zcash inputs only. - Fees (ZCG#81 scope, not priced). ZIP-317 fee-aware coin selection (5,000 zat marginal fee, 2 grace actions), counting the OP_RETURN output on memo swaps.
- Widget and API. Swaps are quoted and tracked by deposit address, so the user's wallet never connects. When NEAR reports no origin hash (as it does for a payment from a shielded pool), swap-service searches the transparent deposit address's history to find the payment.
- What we send to swap venues. In the app, NEAR Intents 1Click quotes are requested from the user's browser, so 1Click sees the user's IP; through the public API and widget, ShapeShift's server makes the request, and the request it builds has no user-IP field. Each request carries the swap parameters, the refund and destination addresses, the
shapeshiftreferral, the DAO's fee account and our partner key, and no name, email or account data (helpers.ts). NEAR Intents screens those addresses (its compliance page), including on price quotes once a wallet is connected. Maya and THORChain quotes go through ShapeShift-hosted nodes, and the only extra data on chain is the standard swap memo. - For the next team.
ZCASH_LEDGER_IMPLEMENTATION.mdwalks through each Ledger failure and fix, for anyone integrating Zcash through@ledgerhq/hw-app-btc.
Time Period of Work Completion
7 Nov 2025 to 6 Nov 2026: from the NEAR Intents swapper (web#11016) to the NU7 fix (web#12825). ZEC live in production since v1.980.0 (9 Dec 2025).
Total Budget (USD)
$22,380
Budget Breakdown
-
Compensation: $(USD) 30,800 at cost (table below), less $8,420 of ZCG#81 marketing funds with no record of return = $22,380. Rate: ShapeShift DAO's public senior engineer rate, $17,500 per month (SCP-224), about $101 an hour at 40 hours a week. Months are estimated from each package's public GitHub history: active days on the Zcash part of the work, doubled for the research and device and mainnet testing that commits don't show, plus review rounds, capped at the package's calendar span. Line 8 is other people's time on the same PRs: code reading at 500 lines an hour (SmartBear), half an hour per recorded hardware test, and releases cut by someone other than the author. Every PR is linked under Proof of Completion.
Package Engineer Months USD 1. Ledger gomesalexandre 0.66 $11,550 2. Trezor and wallet gating gomesalexandre 0.11 $1,925 3. NEAR Intents, incl. ZEC's 15.6% usage share of the swapper (THORChain needed no new code: $0) gomesalexandre 0.12 $2,100 4. Network upgrades NU6.2, NU6.3, NU7 kaladinlight 0.29 $5,075 5. Public API (ZEC share) kaladinlight 0.04 $700 6. Swap widget and swap-service (ZEC share) kaladinlight 0.45 $7,875 7. Reliability (ZEC share) gomesalexandre, kaladinlight 0.05 $875 8. Review, hardware tests and releases by others NeOMakinG, kaladinlight, 0xApotheosis 0.04 $700 Subtotal 1.76 (about 305 hours) $30,800 Less ZCG#81 marketing funds, return not on record -$8,420 Requested $22,380 - Justification: ZCG#81 work is excluded. We deduct $8,420 of ZCG#81 marketing money ShapeShift said it would return, since we found no record of a return (details under Other Funding Sources). Subtracting it means the DAO receives from Zcash programs no more than ZCG#81's hosting money, the marketing ShapeShift said it would use, and the engineering priced here ($36,000 + $5,580 + $30,800 = $50,000 + $22,380). We raise the $8,420 with ZCG on t/52080 at filing; it is subtracted here once, whatever ZCG decides.
-
Technology/Software: $0
-
Infrastructure/Hosting: $0 (ZCG#81 covered a year of node hosting)
-
Services/Contractors: $0
-
Other: $0
-
Total $(USD): 22,380
Previous Funding
No
Previous Funding Details
No previous funding from this program. The separate ZCG grant is under Other Funding Sources.
Other Funding Sources
Yes
Other Funding Sources Details
- ZCG#81, Zcash Community Grants, $50,000. Approved 17 Sep 2025, paid 201.06 ZEC on 25 Feb 2026 (txid
4df03fc8…2329). $36,000 for twelve months of node and indexer hosting, $14,000 for marketing, $0 for engineering. Milestones: node, native wallet support, Maya swapper, testing, go-to-market, reported at t/53818. In December 2025 ShapeShift said it would use about $5,580 of the marketing budget and return about $8,420 (t/53818 #6). The full $50,000 was paid in February and we found no record of a return, so this request subtracts $8,420. ZCG#81 also asked for monthly forum updates, which we did not post. - ShapeShift DAO contributor pay. Both engineers were paid by the DAO as contributors while doing this work, and kaladinlight still is. The grant goes to the DAO, which carried that cost.
- Nothing else. No previous application to this program.
Success Metrics
| Metric | Result |
|---|---|
| ZEC swaps, 5 Dec 2025 to 6 Nov 2026 | 311 completed with ShapeShift's referral, $5.85M on the ZEC leg, 72% buying ZEC, median $116; 15.6% of ShapeShift's NEAR Intents volume since 1 Dec 2025. THORChain apart: 55 swaps, $201K |
| ZCG#81's own targets: "1,000+ unique wallets" in 3 months, "$1M+" quarterly Maya volume | wallets: not measured; 243 distinct transparent ZEC addresses swapped, a proxy, not a user count. Maya: above $1M in Q2 ($1.32M) and Q3 2026 ($1.28M), below it in Q1 ($6K) and Q4 so far ($3K), driven by a few large swaps |
| Wallets that can send ZEC | built-in, Ledger, Trezor. Before hdwallet#765 every Ledger send was rejected |
| Network upgrades | NU6.2, NU6.3 and NU7 fixed and tested on mainnet; the next one before activation (commitment) |
| Third-party access | ZEC quotable and swappable through the public API and widget, with no Zcash code on the integrator's side |
| Walletless payment | a ZEC swap paid from a shielded Zodl balance to a transparent deposit address, detected by swap-service and completed on mainnet |
| Affiliate fees received by the DAO on ZEC swaps | $34,866: NEAR Intents $19,077, Maya $15,789 (plus $20 on THORChain). 60 bps by default (src/lib/fees/constant.ts) |
Commitment regardless of the vote: keep ZEC signing current through future network upgrades and ship the next branch ID before activation, which anyone can check against the activation height; keep ZEC in the app, API and widget. kaladinlight is funded by the DAO through June 2027 (SCP-224).
Proof of completion
- Repository/Commit:
- Ledger: hdwallet#763, hdwallet#765, hdwallet#768, web#11337, web#11374, commit 5df2c1b0b6
- Trezor and gating: hdwallet#766, web#11338, web#11307, web#11327
- Swaps: web#11016 (ZEC's usage share only), web#11298, web#12732
- Network upgrades: web#12443, web#12638, web#12825
- Public API: web#12432, web#12446, web#12652
- Widget and swap-service: web#12435, web#12588, web#12594, web#12650, web#12651, web#12653, web#12663, web#12670, web#12768, microservices#67
- Reliability: web#11346, unchained#1308
- Review and releases by others: hardware tests by NeOMakinG on hdwallet#765 (recording), hdwallet#766, hdwallet#768 (recording) and web#11346; releases web#11305, web#11318, web#11359, web#12449, web#12643, web#12660
- Deployment/Release:
- App: app.shapeshift.com, ZEC live since v1.980.0 (web#11318, 9 Dec 2025)
- Public API: api.shapeshift.com/docs
- Swap widget: widget.shapeshift.com, npm @shapeshiftoss/swap-widget
- Zcash indexer: api.zcash.shapeshift.com
- Other Evidence:
Conflict of Interest Disclosure
- Recipient. The grant is paid to ShapeShift DAO, which decides custody and use through its own governance (SCP-228). If no SCP-228 vote has closed by 16 Dec, we withdraw this application.
- Applicants. gomesalexandre was a ShapeShift DAO contributor until March 2026 and prepared this application; kaladinlight is a current paid contributor. Both were paid by the DAO for the engineering at the time. Either could benefit if the DAO's governance so decides.
- Swap fees. ShapeShift earns an affiliate fee on swaps, ZEC swaps included (60 bps by default), paid to the DAO, not to contributors: $34,866 on ZEC swaps from 5 Dec 2025 to 6 Nov 2026 ($19,077 NEAR Intents, $15,789 Maya), plus $20 on THORChain not counted. The fees fund the DAO's running costs across all chains; the ask is priced on Zcash engineering time only and does not net fees against it.
- Prior grant. ZCG#81, under Other Funding Sources.
- Vultisig. gomesalexandre now works at Vultisig. Vultisig's Zcash work, including the Vultisig/SwapKit work referenced in Cryppit #87 and ZCG#513, is separate and gets nothing from this application.
- None of us has a role at FPF, ZF, ECC, Shielded Labs, ZCG or any keyholder organization.
Community Forum Posting
- I understand it is my responsibility to post a link to this issue on the Zcash Community Forums after this application has been submitted so the community can give input. I understand this is required in order for the community to discuss and vote on this grant application. Note: If you are unable to post on the forum (for example, due to new user restrictions), please leave a comment below, and we will adjust your posting permissions.