# How viable is zkLogin without an independent backend proving service?

**URL:** <https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090>\
**Category:** zkLogin\
**Tags:** sui\
**Created:** [October 26, 2023, 4:02pm UTC](https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090 "2023-10-26T16:02:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kylebuildsstuff](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/kylebuildsstuff/32/30939_2.png) [@kylebuildsstuff](https://forums.sui.io/u/kylebuildsstuff)\
**Post date:** [October 26, 2023, 4:02pm UTC](https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090/1 "2023-10-26T16:02:53Z")

</div>

I noticed most implementations of zkLogin require a separate backend proving service, but am interested in trying to keep things as simple as possible and wonder how viable would it be to use zkLogin just in the client?

From the latest article, “Set Up a Proving Service for zkLogin”:

> As generating a ZK proof can be resource-intensive and potentially slow on the client side, it’s advised to use a backend service endpoint dedicated to ZK proof generation.

Are we talking just a couple extra seconds? Minutes? Timeouts? Are there any open-source implementation examples using just the client?

---

<div class="post-metadata">

**Author:** ![kylebuildsstuff](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/kylebuildsstuff/32/30939_2.png) [@kylebuildsstuff](https://forums.sui.io/u/kylebuildsstuff)\
**Post date:** [October 27, 2023, 4:58pm UTC](https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090/2 "2023-10-27T16:58:25Z")

</div>

Is it even possible, or is a separate backend proving service required?

---

<div class="post-metadata">

**Author:** ![will](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/will/32/1116_2.png) [@will](https://forums.sui.io/u/will)\
**Post date:** [October 29, 2023, 2:05am UTC](https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090/3 "2023-10-29T02:05:48Z")

</div>

Latency from Mysten Labs’ prover service is between 2 and 3 seconds. ZK proofs do not have to be generated very often - only once a transaction that needs a signature take place, and then the proof is cached for some period of time (as established by the application).

For a one-time proof generation, 2 to 3 seconds is fine to bake into the UX, but if this was run client side it would be significantly slower.

---

<div class="post-metadata">

**Author:** ![deepak](https://avatars.discourse-cdn.com/v4/letter/d/7bcc69/32.png) [@deepak](https://forums.sui.io/u/deepak)\
**Post date:** [November 2, 2023, 9:22pm UTC](https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090/4 "2023-11-02T21:22:59Z")

</div>

When we experimented with browser-based proof generation, it was either taking a few minutes or even crashing some times. We have not tested with mobile where the situation maybe slightly better.

---

<div class="post-metadata">

**Author:** ![JoakimeQ](https://dub1.discourse-cdn.com/sui/user_avatar/forums.sui.io/joakimeq/32/30517_2.png) [@JoakimeQ](https://forums.sui.io/u/JoakimeQ)\
**Post date:** [November 21, 2023, 4:27pm UTC](https://forums.sui.io/t/how-viable-is-zklogin-without-an-independent-backend-proving-service/45090/5 "2023-11-21T16:27:08Z")

</div>

Could also use something like [Gevulot Docs - Gevulot Docs](https://gevulot.gitbook.io/gevulot-docs/) for a decentralized proving service?
