0

I'm getting an error trying to sign a transaction with bitcore-wallet-client.

I create the transaction, publish it and when I try to sign it, I'm getting the error: "SERVER_COMPROMISED - Server response could not be verified"

bws server: https://bws.bitpay.com/bws/api

can anyone point me in the right direction?

ps: using wallet-client (CLI) I can sign the same transaction (created and published from bitcore-wallet-client)

edit: I'm using a testnet account

  • Is it the bitcoin core wallet (as in headline) where you have problem, or the API of Bitpay? Maybe adopt the headline? – pebwindkraft Jul 13 '18 at 15:43
  • so far could track the problem to the bitcore-wallet-client/lib/verifier.js (line 159) where my transaction doesn't have a proposalSignature. To fully answer your question, I'm pretty sure the problem as nothing to do with the API of Bitpay. – enemabandit Jul 13 '18 at 15:52
0

The problem was that I was creating the transaction proposal and publishing it, after that I used the result from createTxProposal and passed it to signTxProposal.

turns out that the txProposal returned from createTxProposal doesn't have the property proposalSignature (which is filled when the transaction is published).

so, to solve this I had to get the transaction proposals (after publishing) and send the transaction fetched as argument to signTxProposal.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.