Skip to main content
Sign the request using your Ed25519 private key. The sign data is built by joining the sorted query string, the raw request body, and a Unix timestamp with \n:
  • sorted_query_string — query parameters sorted alphabetically by key, formatted as key1=value1&key2=value2. Empty string when there are no query parameters.
  • body — the raw request body (byte-for-byte). Empty string for requests with no body.
  • timestamp — Unix timestamp in seconds. Send the same value in the X-HSPay-Timestamp header.
Include the base64-encoded signature in the X-HSPay-Signature header and the timestamp in the X-HSPay-Timestamp header.

Go Example