# Zcash Browser Wallet Library

**URL:** <https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897>\
**Category:** Applications\
**Created:** [June 10, 2024, 10:15am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897 "2024-06-10T10:15:51Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![bryant.gnosisguild](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bryant.gnosisguild](https://forum.zcashcommunity.com/u/bryant.gnosisguild)\
**Post date:** [June 10, 2024, 10:15am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/1 "2024-06-10T10:15:51Z")

</div>

Hey Zcash community!

ChainSafe Systems has submitted a proposal to expand the ZCash ecosystem by building and offering developers a browser-compatible library offering essential primitives for web wallets and browser plugins.

[You can view the full grant application here.](https://zcashgrants.org/gallery/25215916-53ea-4041-a3b2-6d00c487917d/46685258/)

Thank you so much for your support! \<3

Bryant  
[bryant@chainsafe.io](mailto:bryant@chainsafe.io)

---

<div class="post-metadata">

**Author:** ![aquietinvestor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/aquietinvestor/32/34528_2.png) [@aquietinvestor](https://forum.zcashcommunity.com/u/aquietinvestor)\
**Post date:** [June 10, 2024, 10:50am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/2 "2024-06-10T10:50:27Z")

</div>

Hi @bryant.gnosisguild - Thank you for submitting your grant proposal! We will review it in the upcoming weeks and reach out if we have any questions.

In the meantime, if you have any questions for us, you can post them to this thread or DM us at [@ZcashGrants](https://forum.zcashcommunity.com/groups/zcashgrants).

Zcash Community - We want to hear your feedback on this grant! You can post your comments to this thread or DM us at [@ZcashGrants](https://forum.zcashcommunity.com/groups/zcashgrants) if you’d like to provide feedback in private.

---

<div class="post-metadata">

**Author:** ![offchain](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/offchain/32/29417_2.png) [@offchain](https://forum.zcashcommunity.com/u/offchain)\
**Post date:** [June 11, 2024, 2:52am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/3 "2024-06-11T02:52:13Z")

</div>

wonderful!

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [June 11, 2024, 4:01am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/4 "2024-06-11T04:01:08Z")

</div>

It is a library only? A wallet (like Metamask) isn’t part of the grant?  
Personally, I am not keen on proposals that don’t have a user facing app.

---

<div class="post-metadata">

**Author:** ![skyl](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/skyl/32/2938_2.png) [@skyl](https://forum.zcashcommunity.com/u/skyl)\
**Post date:** [June 11, 2024, 4:07am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/5 "2024-06-11T04:07:26Z")

</div>

Can we have a roundup and accounting on all the web/wasm attempts at a Zcash wallet? This is an idea that I have always liked but several people have thrown some hours at the problem without a ringing success (even I). What exactly happened with these efforts and what are the current statuses?

---

<div class="post-metadata">

**Author:** ![GGuy](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/gguy/32/19036_2.png) [@GGuy](https://forum.zcashcommunity.com/u/GGuy)\
**Post date:** [June 11, 2024, 7:29am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/6 "2024-06-11T07:29:07Z")

</div>

FYI for anyone who missed the chainsafe research phase [Zcash SDK Implementation [JS/TS] - Proposal - #49 by ec2](https://forum.zcashcommunity.com/t/zcash-sdk-implementation-js-ts-proposal/46158/49)

---

<div class="post-metadata">

**Author:** ![bryant.gnosisguild](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bryant.gnosisguild](https://forum.zcashcommunity.com/u/bryant.gnosisguild)\
**Post date:** [June 11, 2024, 11:57am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/7 "2024-06-11T11:57:03Z")

</div>

Hey! For full transparency our v1 of this proposal actually included the following as part of Milestone 5:  
" **Implement simple PoC wallet page using API**

Upon running the proposal by the foundation it was suggested that we attempt to reduce the scope so as to bring the overall cost of the project down, without limiting the outcome of the project.

With this in mind, we reduced the cost significantly (as highlighted in the cost breakdown here: [WebZjs Grant Application Breakdown - Google Docs](https://docs.google.com/document/d/1j6hhLeCSjBG4VtaQ0lSHnxqxBm4If3HoXBh52o6xTqU/edit#heading=h.xczd0a1z9dh3) )

In light of our completed feasibility study (see above) and pending further feedback from the foundation and community, should it be decided that the PoC is still essential in getting this passed, ChainSafe will be willing to support this request.

I hope that this helps!! 🙂  
Bryant

---

<div class="post-metadata">

**Author:** ![hanh](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/hanh/32/27853_2.png) [@hanh](https://forum.zcashcommunity.com/u/hanh)\
**Post date:** [June 11, 2024, 12:11pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/8 "2024-06-11T12:11:26Z")

</div>

Well, I wasn’t referring to a PoC but a full fledged wallet.

Anyway, it is up to the committee to decide.

---

<div class="post-metadata">

**Author:** ![artkor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/artkor/32/28573_2.png) [@artkor](https://forum.zcashcommunity.com/u/artkor)\
**Post date:** [June 11, 2024, 6:53pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/9 "2024-06-11T18:53:49Z")

</div>

In my opinion, this is a step forward.

---

<div class="post-metadata">

**Author:** ![bryant.gnosisguild](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bryant.gnosisguild](https://forum.zcashcommunity.com/u/bryant.gnosisguild)\
**Post date:** [June 12, 2024, 8:54am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/11 "2024-06-12T08:54:43Z")

</div>

Does the link to the research phase address this concern @skyl ? If not, cc’ing my colleague @Wollum-ChainSafe in here should he have anything more to add. 🙂

---

<div class="post-metadata">

**Author:** ![skyl](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/skyl/32/2938_2.png) [@skyl](https://forum.zcashcommunity.com/u/skyl)\
**Post date:** [June 12, 2024, 5:48pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/12 "2024-06-12T17:48:32Z")

</div>

I’m not referencing chainsafe or these efforts directly but there were more efforts historically. I think “Zephyr” was one … I think there were more … I can maybe look more closely later but chatgpt found a few things.

> **[ChatGPT](https://chatgpt.com/share/4566fdb7-44c9-4f83-8f7f-37ea93511952)**
>
> A conversational AI system that listens, learns, and challenges

---

<div class="post-metadata">

**Author:** ![aarnott](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@aarnott](https://forum.zcashcommunity.com/u/aarnott)\
**Post date:** [July 19, 2024, 2:55am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/13 "2024-07-19T02:55:48Z")

</div>

FWIW, the Nerdbank.Zcash library (which a Minor Grant funded) is something I’d like to expose to browsers through wasm, but I’ve been blocked by `ring` (and possibly other dependencies of librustzcash) not compiling to wasm. If we can overcome that problem, I expect I can get a web-based wallet going fairly quickly based on this library and the eZcash wallet that is already available on other platforms.

---

<div class="post-metadata">

**Author:** ![ZcashFoundation](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/zcashfoundation/32/21548_2.png) [@ZcashFoundation](https://forum.zcashcommunity.com/u/ZcashFoundation)\
**Post date:** [August 6, 2024, 4:30pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/14 "2024-08-06T16:30:42Z")

</div>

@bryant.gnosisguild at the most recent meeting, the [@ZcashGrants](https://forum.zcashcommunity.com/groups/zcashgrants) Committee voted to approve this proposal. MetaMask has matched $150,000 to support the development of a MetaMask Snap that will support Shielded ZEC. ZCG also requested that you provide monthly updates via the forum in this thread.

---

<div class="post-metadata">

**Author:** ![zklim](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/zklim/32/30477_2.png) [@zklim](https://forum.zcashcommunity.com/u/zklim)\
**Post date:** [August 7, 2024, 5:03am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/15 "2024-08-07T05:03:37Z")

</div>

I’m interested to help develop this, who should I connect with or how can I start?

---

<div class="post-metadata">

**Author:** ![bryant.gnosisguild](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bryant.gnosisguild](https://forum.zcashcommunity.com/u/bryant.gnosisguild)\
**Post date:** [August 9, 2024, 3:10pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/16 "2024-08-09T15:10:20Z")

</div>

We should be okay for support right now, but would cetainly love to speak with you to see if we can collaborate in another way! 🙂 feel free to hit me up on telegram @ bryanteurope

---

<div class="post-metadata">

**Author:** ![kworks](https://avatars.discourse-cdn.com/v4/letter/k/c67d28/32.png) [@kworks](https://forum.zcashcommunity.com/u/kworks)\
**Post date:** [September 2, 2024, 5:00pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/17 "2024-09-02T17:00:48Z")

</div>

Hi @bryant.gnosisguild, any chance you can point interested parties in a direction to follow the project.

Thanks

---

<div class="post-metadata">

**Author:** ![bryant.gnosisguild](https://avatars.discourse-cdn.com/v4/letter/b/3ab097/32.png) [@bryant.gnosisguild](https://forum.zcashcommunity.com/u/bryant.gnosisguild)\
**Post date:** [September 3, 2024, 10:07am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/18 "2024-09-03T10:07:43Z")

</div>

Hello! Yes certainly. Let me get back to you asap. We are just coordinating internally as to how best to make sure the community can follow along, and have the right person within this forum to do so. I’m on it!! 🙂

---

<div class="post-metadata">

**Author:** ![Wollum-ChainSafe](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/wollum-chainsafe/32/30675_2.png) [@Wollum-ChainSafe](https://forum.zcashcommunity.com/u/Wollum-ChainSafe)\
**Post date:** [September 4, 2024, 10:39pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/19 "2024-09-04T22:39:00Z")

</div>

Hi Zcash Community. I’m excited to deliver our first update from our work on WebZjs. Updates will continue to be posted here at least once a month and possibly more frequently as we hit more milestones.

* * *

Compared with the PoC this time around we are aligning ourselves more with librustzcash and specifically their `zcash_client_backend` traits for creating wallets. This is to better take advantage of the existing work and test suites, benefit from future improvements, and all-round reduce duplication.

There are some challenges bringing this to the web, the main one being that the `zcash_client_backend` traits assume you have access to a lot of very fast storage (e.g. sqlite). This is not something a browser can provide so we have opted to write a memory-backed wallet backend (something that was already on the roadmap for librustzcash). These last two weeks have been primarily focused on this.

In order to prevent having to reload keys and rescan the wallet on every page refresh we are making the memory-backed wallet serializable. This way we can schedule flushing to storage (e.g IndexedDB or SnapStorage) outside of the main loops and write in larger chunks less frequently.

* * *

## Milestones Acchieved

- In-memory zcash\_client\_backend synced to testnet using the zec-cli front-end

- Memory wallet compiled to Wasm and tested in-browser with blocks retrieved via gRPC-web

- Javascript API sketched out and automatic documentation page generation from rustdocs

## Next Steps

- Completing serialization for memory-wallet
- Solidifying the Javascript/Typescript interface
- Modifying tests for `zcash_client_sqlite` to be backend agnostic (thanks to @nuttycom for the help here)
- Transaction building and proving

* * *

You can track our progress on the mem-wallet in [our fork of librustzcash](https://github.com/ChainSafe/librustzcash/pull/1) and our [WebZjs Repo](https://github.com/ChainSafe/WebZjs)

---

<div class="post-metadata">

**Author:** ![skyl](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/skyl/32/2938_2.png) [@skyl](https://forum.zcashcommunity.com/u/skyl)\
**Post date:** [September 24, 2024, 4:44am UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/20 "2024-09-24T04:44:49Z")

</div>

Awesome! Congratulations!

> [@Wollum-ChainSafe](#):
>
> in [our fork](https://github.com/ChainSafe/librustzcash/pull/1)

What’s the longterm plan for version and dependency management? Might this get merged at some point?

---

<div class="post-metadata">

**Author:** ![aquietinvestor](https://sea2.discourse-cdn.com/zcash/user_avatar/forum.zcashcommunity.com/aquietinvestor/32/34528_2.png) [@aquietinvestor](https://forum.zcashcommunity.com/u/aquietinvestor)\
**Post date:** [September 25, 2024, 12:01pm UTC](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897/21 "2024-09-25T12:01:08Z")

</div>

Nice work @ec2 and @Wollum-ChainSafe!

> <https://x.com/erktu/status/1838654692550668777>

[Next page](https://forum.zcashcommunity.com/t/zcash-browser-wallet-library/47897.md?page=2)
