FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Fix signature error with email in params #862 by koders · Pull Request #863 · ccxt/node-binance-api · GitHub

Repository navigation

Fix signature error with email in params #862 - #863

Open
koders wants to merge 1 commit into
ccxt:masterfrom
koders:fix-signature-with-email-params
Open

koders wants to merge 1 commit into
ccxt:masterfrom
koders:fix-signature-with-email-params

Conversation

koders commented Nov 6, 2022

Copy link
Copy Markdown

There is an issue with signature creation for requests involving emails (subaccount requests).

The query params are encoded and then the signature is created from encoded query, but for the signature to be correct, it has to be created on decoded query, and encoded after signature is created.

email=xxx%40xxx.com this is encoded, and therefore creates wrong signature, so we need to decode it, when creating the signature.

I encountered this only for emails in params, but could also happen in other cases

Issue #862

There is an issue with signature creation for requests involving emails (subaccount requests).

The query params are encoded and then the signature is created from encoded query, but for the signature to be correct, it has to be created on decoded query, and encoded after signature is created.

email=xxx%40xxx.com this is encoded, and therefore creates wrong signature, so we need to decode it, when creating the signature.

I encountered this only for emails in params, but could also happen in other cases
koders force-pushed the fix-signature-with-email-params branch from b9a4915 to 58996a8 Compare November 7, 2022 15:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant


Back | FazBrowse Home | New Git URL