Kraken REST 认证 nonce 与签名重放控制清单
本文正文暫以英文原文展示,翻譯版本需完成來源複核後再發布。
已验证事实边界
1. Kraken exchange API documentation describes private REST authentication using API-Key, API-Sign and a nonce. 2. Kraken exchange API documentation describes API-Sign construction with the request path, SHA256 nonce and POST data, and HMAC-SHA512 using the decoded API secret. 3. Kraken Support publishes API-key creation guidance that includes permission selection. 4. Kraken Support publishes general API context for account integrations and automation. 5. Kraken Support publishes account-security guidance covering device, email and account protections. 6. Public documentation cannot prove that a private bot protects secrets, handles nonce reuse correctly, is eligible for all endpoints, or will continue working after future policy changes.
收起完整分析
决策矩阵
文章表格:可橫向滑動,或聚焦表格區域後使用方向鍵。
| Check | What it means | Practical action | Unknown to keep explicit |
|---|---|---|---|
| Nonce generation | private REST calls need a nonce that cannot be casually reused across requests | choose one nonce generator per key and document sequence ownership | multi-process bots and retry races |
| Signature construction | API-Sign proves request construction, not general account safety | test signing with non-secret fixtures before storing live secrets | library bugs and hidden serialization differences |
| Permission boundary | a valid signature can still be unsafe if the key has broad permissions | record the exact non-secret permission inventory before private endpoint use | future permission changes and private account restrictions |
| Secret handling | API secret material must stay out of reports, logs and prompts | log only key nickname, scope and non-secret request IDs | vendor storage and incident response timing |
| Stop condition | automation should pause when nonce, signature, permission or revocation evidence is incomplete | stop before enabling private endpoints if replay controls or key disable path are unclear | future endpoint behavior and account-specific treatment remain unknown |
来源地图
- Kraken Exchange API Documentation:Spot REST Authentication(kraken-rest-auth)
- Kraken Support:How to create an API key(kraken-create-api-key)
- Kraken Support:What is an API? What does an API do?(kraken-api-overview)
- Kraken Support:Securing your Kraken account and digital life(kraken-account-security)
控制说明
1. Nonce generation
这一项要求读者把公开来源翻译成操作规则。这里的含义是:private REST calls need a nonce that cannot be casually reused across requests。可执行动作是:choose one nonce generator per key and document sequence ownership。仍然未知的是:multi-process bots and retry races。因此本文不会把未知部分包装成收益承诺、牌照承诺、审批保证、安全保证、恢复保证、平台排名或价格暗示。
2. Signature construction
这里的含义是:API-Sign proves request construction, not general account safety。可执行动作是:test signing with non-secret fixtures before storing live secrets。仍然未知的是:library bugs and hidden serialization differences。
操作测试也必须很窄。这就是本文坚持以清单形式呈现的原因。
3. Permission boundary
这里的含义是:a valid signature can still be unsafe if the key has broad permissions。可执行动作是:record the exact non-secret permission inventory before private endpoint use。仍然未知的是:future permission changes and private account restrictions。
操作测试也必须很窄。这就是本文坚持以清单形式呈现的原因。
4. Secret handling
这里的含义是:API secret material must stay out of reports, logs and prompts。可执行动作是:log only key nickname, scope and non-secret request IDs。仍然未知的是:vendor storage and incident response timing。
操作测试也必须很窄。这就是本文坚持以清单形式呈现的原因。
5. Stop condition
这里的含义是:automation should pause when nonce, signature, permission or revocation evidence is incomplete。可执行动作是:stop before enabling private endpoints if replay controls or key disable path are unclear。仍然未知的是:future endpoint behavior and account-specific treatment remain unknown。
操作测试也必须很窄。这就是本文坚持以清单形式呈现的原因。
仍需明确的未知项
- multi-process bots and retry races
- library bugs and hidden serialization differences
- future permission changes and private account restrictions
- vendor storage and incident response timing
- future endpoint behavior and account-specific treatment remain unknown
实用结论
Kraken REST authentication 是一份实现清单,而不仅是持有 API key 的检查。Kraken exchange API 文档描述 REST authentication 使用 API-Key、API-Sign 与 nonce;Kraken Support 另行说明 API-key creation、permission selection 与 account security practices。实际决策是在把任何 private endpoint 接入自动化前,把 nonce generation、signature construction、key permission、IP scope、clock/sequence handling、error logging 与 emergency key revocation 作为独立证据字段。 本文停在证据边界内,帮助读者决定下一步核验什么,而不是把公开文档改写成私人账户、钱包、API key、池子路径、稳定币余额、代币化资产或政策框架在任何未来条件下都能成功的承诺。
來源與證據
04- Spot REST Authentication · docs.kraken.com
- How to create an API key · support.kraken.com
- What is an API? What does an API do? · support.kraken.com
- Securing your Kraken account and digital life · support.kraken.com