# 公鑰

> **最後更新：2026 年 1 月**

\*\*公鑰（英文：Public Key）就是使用者在區塊鏈帳本中可以公開的帳號本體，而私鑰則是絕對不可洩漏的密碼。\*\*對比網路 2.0 時代的電子郵件系統，公鑰就像使用者帳號，公鑰地址（又稱作錢包地址）就像該帳號使用者的電子郵件地址；而私鑰，則就像是可以取得所有信件的密碼了。

| 技術 | 區塊鏈            | 電子郵件                   |
| -- | -------------- | ---------------------- |
| 帳號 | 2CD0684...     | 0x1academy             |
| 地址 | 0x2CD0684...   | <0x1academy@gmail.com> |
| 密碼 | A53D942A43A... | ThisIsMyPassword       |

一般來說，電子郵件系統中，使用者可以自由選擇 Email 帳號密碼；而區塊鏈系統，則是是由系統創建私鑰給你，公鑰又再由私鑰衍生出來，兩者都無法自行選擇。

### 公鑰 = 錢包地址？

許多人會誤以為公鑰就是錢包地址，錢包地址就是公鑰，但實際上兩者相同之處在於：

1. 都是由私鑰所產生
2. 都可以公開，不用躲藏
3. 都可以拿來收錢

而不同之處則在於：錢包地址為了使之有可讀性，會將公鑰再做一次運算或包裝（如以太幣地址固定於公鑰字串前加上 0x 開頭，詳見「[錢包地址](/bao-guan-ni-de-jia-mi-zi-chan/address.md)」）

{% hint style="info" %}
註：公鑰和私鑰是密碼學裡頭普遍有的觀念，本條目說明的公鑰和私鑰概念僅適用於區塊鏈世界。
{% endhint %}

***

#### 相關條目

* [錢包地址](/bao-guan-ni-de-jia-mi-zi-chan/address.md)
* [助記詞](/bao-guan-ni-de-jia-mi-zi-chan/seed.md)

#### 參考資料


---

# 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://www.0x1.academy/bao-guan-ni-de-jia-mi-zi-chan/gong.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.
