Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Invalid order signature #24

Closed
GoldRat opened this issue Jun 9, 2018 · 4 comments
Closed

Invalid order signature #24

GoldRat opened this issue Jun 9, 2018 · 4 comments

Comments

@GoldRat
Copy link

GoldRat commented Jun 9, 2018

I'm trying to open order through API.

This is my payload:
{"contractAddress":"0x2a0c0dbecc7e4d658f48e01e3fa353f44050c208",
"tokenBuy":"0x0000000000000000000000000000000000000000",
"amountBuy":"50000000000000000",
"tokenSell":"0xcdcfc0f66c522fd086a1b725ea3c0eeb9f9e8814",
"amountSell":"100000000000000000000",
"expires":10000,
"nonce":1,
"address":"0x351296f44a5bf3f05eaa7d78a560f50dd736b728",
"v":28,
"r":"0xf58101acdb189a21a18d4b504b124dbfd3cfe67126b2fdc132eb3b3dea86664a",
"s":"0x50100b3e391b4fed0e6dcf81e3c833b971506b48d5c837bb81bbb1c6240c4c61"}

Private key: 0xce8291ae3e3f6db1f7d763fa543c1aa7c76080f69880d695bf131f4ca7bde67a

But it returns the error:
{"error":"Invalid order signature. Please try again."}

What's wrong with order signature? What v, r, s parameters values should be in this case? Please, help!

@purplebrabus
Copy link

Hm, I had the same issue, looks like it's server problem. Sometimes it disappears and u can use api normally

@GoldRat
Copy link
Author

GoldRat commented Jun 9, 2018

Is there any examples to test hashing and signing? Like input parameters -> raw hash -> salted hash - > v, r, s

@fubar
Copy link
Contributor

fubar commented Jul 20, 2018

The documentation includes a JS code sample for creating signatures, and I've added a code sample with more detailed instructions specific to the OP's case to the other issue opened by the OP at #26. Closing.

@fubar fubar closed this as completed Jul 20, 2018
@GoldRat
Copy link
Author

GoldRat commented Oct 14, 2018

I've tested my algorithm by example you've given at #26. The result is perfect match to your r, s, v values. However the error "Invalid order signature" still appears (not always but sometimes).

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

No branches or pull requests

3 participants