HMAC-SHA512 Gate.io-style signing pattern.
Used by: Gate.io
How it works
- Hash the body with SHA512 (empty string if no body)
- Generate timestamp (seconds)
- Build newline-separated payload:
METHOD\npath\nquery\nbody_hash\ntimestamp - Sign with HMAC-SHA512, encode as hex
- Secret used raw (NOT base64 decoded)
Configuration
signing: %{
pattern: :hmac_sha512_gate,
api_key_header: "KEY",
signature_header: "SIGN",
timestamp_header: "Timestamp",
signing_path_prefix: "/api/v4"
}