Interface: Signer
Builds the signed payload the private API expects. Isolated on purpose: this is the layer most likely to change, so everything that signs goes through this port and is pinned by golden vectors.
The app no longer HMACs the body. It sends signed_body=SIGNATURE.<payload> with the payload url-encoded the way Python's urllib.parse.quote_plus does (space becomes +), which is what the reference client produces.
Methods
sign()
ts
sign(payload): string;The body to send for a payload.
Parameters
| Parameter | Type |
|---|---|
payload | string |
Returns
string