For me it was the conversion to hex that was messing with the subscription. Its been so long since I’ve looked at c++… what does your prehash look like?
Hi muktupavels. Good suggestion regarding changing the type of the timestamp to string. I changed this line:
root[“timestamp”] = now
to
root[“timestamp”] = std::to_string(now);
however I still get an authentication error when subscribing.
I have a test where I generate the signature using crypto-js in javascript. The signature matches the output of my c++ signature based on the same inputs.
Same output just shows that you are generating signature correctly. As other things looks correct my guess is that there are some problems with api key and/or secret.
Thanks muktupavels, I agree with your guess. I have a support ticket opened with coinbase. They weren’t able to provide any insight and suggested I post to this forum. I’ll get back to them with your suggestion about verifying that the api key and secret that I am using are valid.