← 所有文章
開發者專區

加密貨幣 API 的 HMAC 請求簽署

由 0trace 團隊撰寫 · 2026年7月5日 · 閱讀約 1 分鐘

任何搬動資金的 API,都需要就每個請求證明兩件事:它來自你,且未被竄改或重放。HMAC 請求簽署兩者兼顧。以下說明它如何運作,以及 0trace 如何使用它。

什麼是 HMAC 簽署

HMAC(雜湊訊息鑑別碼)將你的密鑰與訊息結合,產生一段簽章。知道相同密鑰的伺服器會重新計算簽章並比對。若相符,則該請求真實且未經更動。0trace 使用 HMAC-SHA256。

簽署確切的位元組

請就送出時的原始請求主體逐位元組簽署。若你序列化 JSON 的方式與你簽署的內容不同(鍵順序被調換、多了空白),簽章就會不符。請把主體建構一次、簽署那段字串,並送出同一段字串。

加上 nonce

光有簽章擋不住重放——擷取到有效請求的人可以再送一次。一個 nonce(每個請求唯一的值)加上有限的時間窗,代表每個請求只被接受一次。0trace 施行基於 nonce 的重放時間窗。

把密鑰留在伺服器端

密鑰是簽章可信的根本,因此絕不該到達瀏覽器或行動客戶端。請在你的伺服器上簽署。若密鑰外洩,立即輪換。

0trace 的規範

  • X-API-KEY:你的金鑰。
  • X-API-SIGN:對確切請求主體的 HMAC-SHA256,十六進位。
  • X-API-NONCE:每個請求唯一、且在重放時間窗內的值。
  • 定價與出款皆於伺服器端計算,因此偽造的金額無法改變實際結算的結果。

繼續閱讀

私密地兌換加密貨幣

私密,
與生俱來。

0trace 是一家免 KYC 的加密貨幣兌換服務。無需帳戶、無需電子郵件、無日誌。幾分鐘內兌換 Bitcoin、Monero、USDT、Ethereum 等。

需要協助?

有問題?這裡有答案。

送出時的確切請求主體位元組。請簽署你所傳送的同一段字串;重新序列化的主體會產生不同的簽章。
簽章證明真實性,但不證明新鮮度。nonce 加上時間窗,可阻止被擷取的請求被重放。
立即輪換。密鑰只留在伺服器端——絕不該到達客戶端程式碼。

評價

  • OrangeFren
  • Monerica
  • BitList
  • NoToKYC
  • AntiKYC
  • BitMixList
  • xmr.club

在 X 上追蹤我們,掌握最新動態。

追蹤
條款EnglishРусскийEspañolDeutschTürkçe

0trace 團隊絕不會凍結你的資金、絕不要求 KYC,也絕不保留日誌——無論如何。

了解更多

Quick answers

Fee and minimum
1%-3% · minimum 0.001 BTC
Processing time
a few minutes
Privacy
No registration and no KYC are required. Order data is deleted as soon as the order completes. The service is reachable over HTTPS.
Supported assets
BTC, ETH, USDT

Frequently asked questions

What is this page about?

This page covers 加密貨幣 API 的 HMAC 請求簽署解析 | 0trace. Below are the terms of Homepage, a crypto privacy service: fee, minimum amount, processing time and privacy policy.

What does Homepage do?

Homepage is a non-custodial crypto privacy service. It breaks the on-chain link between the address you send from and the address you receive to, so the withdrawn coins cannot be traced back to the deposit.

What are the fees and the minimum amount?

The service fee is 1%-3%; the network fee is charged separately. The minimum accepted amount is 0.001 BTC.

How long does it take?

Processing normally takes a few minutes. A manual delay of a few hours can be added for extra privacy.

Is it anonymous and are logs kept?

No registration and no KYC are required. Order data is deleted as soon as the order completes. The service is reachable over HTTPS.

Which assets are supported?

Supported assets: BTC, ETH, USDT.

How do I stay safe?

Open the site from a bookmark or the official link, never from an advertisement. Check every receiving address character by character, keep the order ID, and split large amounts into several orders.