monero-site/_i18n/zh-cn/resources/moneropedia/paymentid.md
erciccione 7575e6d8e1
Adopt versioning system used in the User Guides to keep track of the translation status of the Moneropedia entries
- Removed the 'untranslated.html' snippet (_includes/untranslated.html). Since now we are using 'disclaimer.html' everywhere
- Replaced the old snippet with the new disclaimer (introduced with #966) in all Moneropedia entries
- Add snippet where it was missing
- Updated instructions in the README
2020-10-04 15:00:43 +02:00

28 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
terms: ["payment-ID", "payment-IDs"]
summary: "an optional flag that is added to identify transactions to merchants, consisting of 64 hexadecimal characters"
---
{% include disclaimer.html translated="yes" translationOutdated="no" %}
### 基础知识
支付ID是一个**任意**和**可选**交易附件包含32字节64个十六进制字符或8字节在集成地址的情况下
支付ID通常用于识别商家和交易所的交易鉴于门罗币内置的固有隐私特性其中一个公共地址通常用于转入的交易支付ID对于将转入的款项与用户帐户绑定在一起尤其有用。
### 紧凑的支付ID和集成地址
自0.9 Hydrogen Helix 版本以来支付ID可以加密并嵌入到一个支付地址中。这种类型的支付ID应该是64位的并且使用只有发送方和接收方知道的随机一次性密钥进行加密。
### 创建一个支付ID
建议使用官方钱包的 `integrated_address` 命令自动生成包含紧凑支付ID的集成地址。如果你想使用命令行你可以用一下方法生成支付ID:
为综合地址创建一个紧凑的支付ID:
```# openssl rand -hex 8```
创建一个老式的支付ID:
```# openssl rand -hex 32```