> ## Documentation Index
> Fetch the complete documentation index at: https://docs.suiet.app/llms.txt
> Use this file to discover all available pages before exploring further.

# zkLogin 101

> All you need to know before getting started with zkLogin

# What is zkLogin

On sentence: `zkLogin lets you access your wallet and make transactions with just a login with Google, Facebook accounts, etc.`

# Why shoud I use / not use zkLogin?

## How zkLogin works?

Before we delve into whether or not to use zkLogin, let's quickly understand how zkLogin manages your assets through your Web2 account.

<AccordionGroup>
  <Accordion title="private key wallet">
    <Frame caption="private key wallet process">
      <img src="https://mintcdn.com/suiet/KqEJ6E4pjb_VkU7u/images/wallet/tutorial/zklogin-101/private-key-wallet-process.svg?fit=max&auto=format&n=KqEJ6E4pjb_VkU7u&q=85&s=030dc5009fe47e7c98e092327be1b837" width="782" height="235" data-path="images/wallet/tutorial/zklogin-101/private-key-wallet-process.svg" />
    </Frame>

    Your private key account is first generated locally based on device-generated
    random numbers, and all your transactions are signed using this locally generated
    private key.
  </Accordion>

  <Accordion title="zkLogin wallet">
    <Frame caption="zkLogin simplified process">
      <img src="https://mintcdn.com/suiet/KqEJ6E4pjb_VkU7u/images/wallet/tutorial/zklogin-101/zklogin-process.svg?fit=max&auto=format&n=KqEJ6E4pjb_VkU7u&q=85&s=188c676680f149c881b77ed2be4f9408" width="782" height="482" data-path="images/wallet/tutorial/zklogin-101/zklogin-process.svg" />
    </Frame>

    zkLogin will sign your first transaction through the following steps:

    1. Log in via your Login Provider (e.g., Google).
    2. The Login Provider sends a JWT to your wallet provider's domain.
    3. Your wallet provider returns the <Tooltip tip="Zero Knowledge Proof">ZKP</Tooltip> for your zkLogin account to your local device.
    4. Your local device signs your subsequent transactions using a temporary private key based on the <Tooltip tip="Zero Knowledge Proof">ZKP</Tooltip>.
  </Accordion>
</AccordionGroup>

| When to Use zkLogin Wallets                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  | When to Use Private Key Wallets                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. **User-Friendliness:** zkLogin wallets are more intuitive and simple for users who are not familiar with cryptocurrencies and blockchain technology. <br />2. **Reduced Complexity:** Users don't need to remember or securely store a private key or mnemonic phrase, lowering the risk of user error. <br />3. **Multi-Device Access:** Since credentials are managed through OAuth, users can easily access their account across multiple devices. <br />4. **Social and Network Effects:** If the dapps you are going to use involves social interaction or needs to integrate with other services, zkLogin might be more convenient. | 1. **Security:** Private key wallets are generally considered more secure as the private key is stored only on the user's device, not on a third-party server. <br />2. **Full Control:** Users have full control over their assets and data, without reliance on third-party services. <br />3. **Advanced Features:** Private key wallets usually support more advanced features like interacting with smart contracts, multi-signatures, etc. <br />4. **Privacy:** Private key wallets generally offer higher levels of privacy protection. <br />5. **Offline Storage:** Private keys can be stored in cold storage (e.g., hardware wallets), for added security. |

| Common Risks with zkLogin wallets                                                                                                                                                                                                                                                                                                                                                                                    | Common Risks with private key wallets                                                                                                                                                                                                                                                       |
| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1. **Third-Party Dependency:** zkLogin relies on OAuth, making it susceptible to attacks or vulnerabilities in the OAuth provider (e.g., Google, Facebook). <br />2. **Credential Leakage:** Wallet provider may acquire your OAuth token. <br />3. **Wallet Provider No Longer Maintained:** If the wallet provider discontinues service or is no longer maintained, all corresponding wallets will become invalid. | 1. **Private Key Leakage:** If the private key is accidentally exposed, all assets associated with that key are at serious risk.<br /> 2. **Physical Security:** If the private key is stored on a physical medium like paper or a hardware wallet, then physical damage or loss is a risk. |

In summary, if you are :

* new to cryptocurrencies
* don't anticipate transferring large assets

we recommend using zkLogin for a more convenient Crypto Wallet experience.

If you are:

* a seasoned cryptocurrency user
* prefer complete control over your wallet
* more concerned about security vulnerabilities

we recommend using a private key wallet. Even when you have a large amount of assets to manage, we suggest using it in conjunction with methods like MPC wallets to ensure both the security and recoverability of your assets.

## Deep dive into zkLogin
