# 透明账户 (Transparent accounts)

Namada中的所有账户都有一个唯一地址，恰好有一个有效性谓词，并且可选地在其动态存储子空间中包含任何额外数据。

目前有3种类型的账户地址：

* 隐式地址（尚未完全支持）：隐式账户是从您的密钥对派生而来的，并且可以用于授权账户的某些交易。即使账户之前未在链上使用过，也可以将它们用作交易的接收方。
* 已建立地址：用于允许部署自定义验证逻辑的账户。必须通过交易（例如，[账户初始化](/namada-docs-chinese/yong-hu-zhi-nan-user-guide/tou-ming-zhang-hu-transparent-accounts/fa-song-he-jie-shou-nam-dai-bi-send-and-receive-nam-tokens.md)）在链上创建这些地址。地址是在链上生成的，直到应用交易后才能知道（用户提供随机性）。
* 内部地址：特殊的内部账户，例如协议参数账户、PoS和IBC。<br>

***

## 管理密钥对（Manage keypairs）

Namada使用[ed25519](https://en.wikipedia.org/wiki/EdDSA#Ed25519)密钥对进行区块链上的加密操作签名。<br>

要管理您的密钥，可以在以下命令下使用各种子命令：

```
namada wallet key
```

### 生成密钥对（Generate a keypair）

可以使用CLI生成密钥。通过这样做，还可以在过程中派生一个隐式账户地址并将其添加到存储中。

```
namada wallet key gen --alias keysha
```

{% hint style="info" %}
派生的隐式地址共享相同的`keysha`别名。上一个命令与`namada wallet address gen --alias keysha`具有相同的效果。
{% endhint %}

默认情况下，密钥是加密存储的。加密密码不是密钥生成随机性的一部分。<br>

Namada钱包支持使用[助记词](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)和[HD导出路径](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)生成密钥对。要为默认路径生成密钥对，请使用

```
namada wallet key gen --alias keysha --hd-path default
```

{% hint style="info" %}
Namada的默认HD路径为`m/44'/877'/0'/0'/0'`。
{% endhint %}

用户可以选择指定一个额外的密码，该密码用作密钥对生成随机性的一部分。

{% hint style="danger" %}
注意：请保管好您的助记词和密码。任何一项的丢失都会不可避免地导致无法恢复账户。
{% endhint %}

### 恢复密钥对（Restore the keypair）

要从您的助记词和密码中恢复密钥对，请使用

```
namada wallet key restore --alias keysha --hd-path default
```

### 列出所有已知密钥（List all known keys）

```
namada wallet key list
```

***

## 管理地址（Manage addresses）

要管理地址，与密钥类似，有多种子命令可用：

```
namada wallet address
```

## 生成隐式地址（Generate an implicit address）

我们将隐式地址命名为`accountant`：

```
namada wallet address gen --alias accountant
```

{% hint style="info" %}
请注意，这也将生成并保存从中派生地址的密钥，并在同一个`accountant`别名下保存它。因此，此命令与`namada wallet key gen --alias accountant`具有相同的效果。
{% endhint %}

```
namada wallet address gen --alias keysha --hd-path default
```

使用[助记词](https://github.com/bitcoin/bips/blob/master/bip-0039.mediawiki)和[HD导出路径](https://github.com/bitcoin/bips/blob/master/bip-0044.mediawiki)生成地址。<br>

## 恢复地址（Restore the address）

```
namada wallet address restore --alias keysha --hd-path default
```

## 列出所有已知地址（List all known addresses）

```
namada wallet address list
```


---

# 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://tantalum666.gitbook.io/namada-docs-chinese/yong-hu-zhi-nan-user-guide/tou-ming-zhang-hu-transparent-accounts.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.
