1. http请求约定
DeepSafe开发者文档
  • Getting Started
    • 快速开始
    • 创建Api Key
    • 其他说明
    • http请求约定
      • 请求头
      • 请求方法
      • 返回值与错误码
      • Body加密与签名
      • Webhook事件解密与校验
    • Webhook
      • Webhook说明
      • Webhook事件解密与校验
  • Api文档
    • README
    • 钱包
      • 获取钱包列表
      • 获取单个钱包
    • 白名单
      • 获取白名单列表
      • 获取可用的白名单列表
      • 查询白名单转账限制开关状态
    • Schemas
      • wallet
        • list_wallet_resp
        • wallet_base_info
        • get_wallet_resp
        • pending_tx_count
        • wallet_coin_balance
        • wallet_coin_balance_with_price
        • list_wallet_item
      • config
        • coin_info
        • chain_info
        • coin_with_chain
        • whitelist_chain_config
      • sub_wallet
        • sub_wallet_base_info
        • sub_wallet_balance_item
      • whitelist
        • list_whitelist_resp
        • whitelist_with_chain
        • whitelist_tag_info
        • whitelist
        • whitelist_group_info
        • whitelist_transfer_restriction
        • restriction_status_res
      • audit
        • change_whitelist_info
      • base response
      • pageData
  • Webhook文档
    • README
    • 白名单
      • 创建白名单
      • 删除白名单
      • 修改白名单
    • Schemas
      • 白名单
      • base response
      • base event
  • 签名机
    • REAME
    • 对接说明
  1. http请求约定

Body加密与签名

所有通过api发送和webhook接收Body都是加密数据,结构如下:
{
    "a": "加密的请求数据",
    "b": "RSA 加密的aes key+nonce",
    "c": "RSA 签名的认证数据"
}
加密数据生成规则如下:
1.
生成待加密数据
注意 如果没有参数,请使用空字典 {}
2.
生成aad并签名 (RSA-PSS)
3.
生成AES密钥,并加密数据 (AesGcm-256)
4.
加密aes_key与nonce (RSA-OAEP)
5.
组装最终发送的body
Modified at 2026-07-14 08:13:56
Previous
返回值与错误码
Next
Webhook事件解密与校验
Built with