# zkLogin

如果您是Sui生态系统的新用户，且尚未拥有Sui钱包，则一种名为zkLogin的[Sui-native primitive](https://sui.io/zklogin)使得设置新账户变得非常简单。不再需要记下种子短语，您只需具有现有的Web2凭证（如Google或Twitch）即可创建一个新钱包。这是通过零知识证明技术实现的，该技术确认用户是账户所有者而不会在链上暴露任何信息。

<figure><img src="/files/YUnMZwYPVzlzbTUm0RFB" alt=""><figcaption><p>导航栏中的登录/连接按钮</p></figcaption></figure>

要开始，请启动[Aftermath dApp](https://aftermath.finance/)，并单击屏幕顶部导航栏右侧的登录/连接按钮。一旦您点击登录/连接，钱包连接模态框将出现。

<figure><img src="/files/d1mT3ocHXl0LvmWpVvTw" alt="" width="375"><figcaption><p>钱包连接框</p></figcaption></figure>

在菜单顶部，您将看到 Google 和 Twitch 的图标。点击这些图标将允许您使用已存在的 Google 或 Twitch 凭据创建一个新的 Sui 钱包，在 Aftermath 上使用。

如果您尚未登录到您的 Google 或 Twitch 帐户，继续之前会提示您进行登录。登录后会自动带您回到 Aftermath，在那里你会看到“正在完成登录...”消息短暂出现。一旦 zkLogin 创建了您的新钱包，你将在 Connect / Login 按钮先前显示位置看到你的 Sui 地址。Google 或 Twitch 将出现在钱包下拉菜单顶部，提醒您当前使用哪个凭证进行签入。

<figure><img src="/files/mH21yy5C9CIJqZN2tTAb" alt="" width="375"><figcaption><p>钱包下拉菜单显示了Sui地址和已使用的zkLogin凭证</p></figcaption></figure>

您现在已准备好开始与Aftermath互动。最后一步是为您的新钱包充值，您可以通过点击Sui地址（以0x开头）旁边的剪贴板图标来完成此操作。您可以通过[桥接](/kai-shi-shi-yong/aftermath-dao-hang/qiao.md)、从另一个Sui钱包或支持Sui网络的中心化交易所向您的新钱包转账资金。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ch-docs.aftermath.finance/kai-shi-shi-yong/chuang-jian-yi-ge-zhang-hu/zklogin.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
